Borderou de evaluare (job #644928)

Utilizator avatar Ioana_Izvoreanu Ioana Izvoreanu Ioana_Izvoreanu IP ascuns
Problemă Xy (clasa a 6-a) Compilator cpp-32
Rundă Arhiva de probleme Status evaluat
Dată 29 mar. 2022 22:55:00 Scor 0

Raport evaluator

Eroare de compilare: main.cpp: In function 'int main()': main.cpp:10:5: error: expected initializer before 'if' 10 | if(a[x][y]!=0) | ^~ main.cpp:15:9: error: 'xs' was not declared in this scope; did you mean 'x'? 15 | xs=x-1; | ^~ | x main.cpp:16:9: error: 'xj' was not declared in this scope; did you mean 'x'? 16 | xj=x+1; | ^~ | x main.cpp:17:9: error: 'ys' was not declared in this scope; did you mean 'y'? 17 | ys=y-1; | ^~ | y main.cpp:18:9: error: 'yd' was not declared in this scope; did you mean 'y'? 18 | yd=y+1; | ^~ | y main.cpp:22:13: error: 'c' was not declared in this scope 22 | c=c+(a[xs][ys]==0)+(a[xs][yd]==0)+(a[xj][ys]==0)+(a[xj][yd]==0); | ^