Borderou de evaluare (job #710584)

Utilizator avatar Wuffleee Dima Radu Stefan Wuffleee IP ascuns
Problemă Furnica (clasa a 6-a) Compilator cpp-32
Rundă Arhiva de probleme Status evaluat
Dată 23 mar. 2023 17:54:11 Scor 0

Raport evaluator

Eroare de compilare: main.cpp:8:1: error: 'm' does not name a type; did you mean 'tm'? 8 | m[0][0] = 1; | ^ | tm main.cpp: In function 'void move(int)': main.cpp:12:5: error: 'x' was not declared in this scope 12 | x--; | ^ main.cpp:14:5: error: 'x' was not declared in this scope 14 | x--; | ^ main.cpp:15:5: error: 'y' was not declared in this scope 15 | y++; | ^ main.cpp:17:5: error: 'y' was not declared in this scope 17 | y++ | ^ main.cpp:19:5: error: 'x' was not declared in this scope 19 | x++; | ^ main.cpp:20:5: error: 'y' was not declared in this scope 20 | y++; | ^ main.cpp:22:5: error: 'x' was not declared in this scope 22 | x++; | ^ main.cpp:24:5: error: 'x' was not declared in this scope 24 | x++; | ^ main.cpp:25:5: error: 'y' was not declared in this scope 25 | y--; | ^ main.cpp:27:5: error: 'y' was not declared in this scope 27 | y--; | ^ main.cpp:29:5: error: 'y' was not declared in this scope 29 | y--; | ^ main.cpp:30:5: error: 'x' was not declared in this scope 30 | x--; | ^ main.cpp: At global scope: main.cpp:35:1: error: 'x' does not name a type 35 | x = y = 0; | ^ main.cpp: In function 'int main()': main.cpp:38:30: warning: unused variable 'sumvis' [-Wunused-variable] 38 | int n, k, a, sumfir = 2, sumvis = 0; | ^~~~~~