Borderou de evaluare (job #657288)
Utilizator |
|
IP | ascuns |
---|---|---|---|
Problemă | Tir (clasa a 7-a) | Compilator | cpp-32 |
Rundă | Arhiva de probleme | Status | evaluat |
Dată | 8 aug. 2022 17:18:39 | Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:5:10: error: expected ']' before ',' token
5 | int lin[0,1,0,-1], col[1,0,-1,0];
| ^
| ]
main.cpp:5:11: error: expected unqualified-id before numeric constant
5 | int lin[0,1,0,-1], col[1,0,-1,0];
| ^
main.cpp: In function 'int main()':
main.cpp:16:13: error: 'mat' was not declared in this scope; did you mean 'matn'?
16 | mat[i][j]=-1;
| ^~~
| matn
main.cpp:25:5: error: 'ok' was not declared in this scope; did you mean 'k'?
25 | ok=0;
| ^~
| k
main.cpp:28:15: error: expected primary-expression before ')' token
28 | while()
| ^
main.cpp:30:16: error: 'lin' was not declared in this scope
30 | i+=lin[x];
| ^~~
main.cpp:31:16: error: 'col' was not declared in this scope
31 | j+=col[x];
| ^~~
main.cpp:34:14: error: expected primary-expression before ']' token
34 | matm[]
| ^
main.cpp:10:15: warning: unused variable 'a' [-Wunused-variable]
10 | int n,m,k,a,b,punctaj=0,i,j,cnt=0,x,y;
| ^
main.cpp:10:17: warning: unused variable 'b' [-Wunused-variable]
10 | int n,m,k,a,b,punctaj=0,i,j,cnt=0,x,y;
| ^
main.cpp:10:19: warning: unused variable 'punctaj' [-Wunused-variable]
10 | int n,m,k,a,b,punctaj=0,i,j,cnt=0,x,y;
| ^~~~~~~
main.cpp:11:10: warning: unused variable 'ch' [-Wunused-variable]
11 | char ch;
| ^~