Borderou de evaluare (job #3328273)

Utilizator DavidPopPopescu David DavidPop Data 7 decembrie 2025 15:50:19
Problema Kdrum Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp:5:1: error: two or more data types in declaration of 'x' 5 | int int x[52][52],di[]={-1,0,0,1},dj[]={0,-1,1,0}; | ^~~ main.cpp:5:1: error: two or more data types in declaration of 'di' main.cpp:5:1: error: two or more data types in declaration of 'dj' main.cpp: In function 'int main()': main.cpp:13:7: error: 'x' was not declared in this scope 13 | {fin>>x[i][j];} | ^ main.cpp:16:9: error: 'x' was not declared in this scope 16 | qv.push(x[a][b]); | ^ main.cpp:26:11: error: 'di' was not declared in this scope; did you mean 'i'? 26 | {int iv=i+di[g],jv=j+dj[g]; | ^~ | i main.cpp:27:10: error: 'jv' was not declared in this scope; did you mean 'iv'? 27 | if(iv>0&&jv>0&&iv<=n&&jv<=m&&x[iv][jv]!=0) | ^~ | iv Non zero exit status: 1

Ceva nu functioneaza?