Borderou de evaluare (job #793283)
Utilizator |
|
IP | ascuns |
---|---|---|---|
Problemă | Furnica (clasa a 6-a) | Compilator | cpp-32 |
Rundă | Arhiva de probleme | Status | evaluat |
Dată | 6 nov. 2024 17:11:58 | Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:11:10: error: expected ',' or ';' before '=' token
11 | int vl{} = {0, -1, 0, 1, 0};
| ^
main.cpp:12:10: error: expected ',' or ';' before '=' token
12 | int vc{} = {0, 0, 1, 0, -1};
| ^
main.cpp: In function 'int main()':
main.cpp:36:17: error: 'dir' was not declared in this scope; did you mean 'div'?
36 | dir = 1;
| ^~~
| div
main.cpp:42:35: error: invalid types 'int[int]' for array subscript
42 | col = col + vc[col];
| ^
main.cpp:48:40: error: expected ';' before '}' token
48 | m[lin][col] = 0
| ^
| ;
49 | }
| ~
main.cpp:58:35: error: invalid types 'int[int]' for array subscript
58 | col = col + vc[col];
| ^
main.cpp:64:40: error: expected ';' before '}' token
64 | m[lin][col] = 0
| ^
| ;
65 | }
| ~
main.cpp:74:35: error: invalid types 'int[int]' for array subscript
74 | col = col + vc[col];
| ^
main.cpp:80:40: error: expected ';' before '}' token
80 | m[lin][col] = 0
| ^
| ;
81 | }
| ~