Borderou de evaluare (job #699839)
Utilizator |
|
IP | ascuns |
---|---|---|---|
Problemă | Xy (clasa a 6-a) | Compilator | cpp-32 |
Rundă | Arhiva de probleme | Status | evaluat |
Dată | 1 mar. 2023 09:14:58 | Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'int main()':
main.cpp:15:8: error: 'a' was not declared in this scope
15 | if(a[i][j]!=0)
| ^
main.cpp:23:13: error: 'ok' was not declared in this scope; did you mean 'k'?
23 | ok=0;
| ^~
| k
main.cpp:24:13: error: 'l1' was not declared in this scope
24 | l1=i-1; l2=i+1;
| ^~
main.cpp:24:21: error: 'l2' was not declared in this scope
24 | l1=i-1; l2=i+1;
| ^~
main.cpp:25:13: error: 'c1' was not declared in this scope
25 | c1=j-1; c2=j+1;
| ^~
main.cpp:25:21: error: 'c2' was not declared in this scope
25 | c1=j-1; c2=j+1;
| ^~
main.cpp:28:17: error: 'l1' was not declared in this scope
28 | while(a[l1][c1]!=2 && a[l1][c2]!=2 && a[l2][c1]!=2 && a[l2][c2]!=2 && l1>=1 && l2<=n && c1>=1 && c2<=n)
| ^~
main.cpp:28:21: error: 'c1' was not declared in this scope
28 | while(a[l1][c1]!=2 && a[l1][c2]!=2 && a[l2][c1]!=2 && a[l2][c2]!=2 && l1>=1 && l2<=n && c1>=1 && c2<=n)
| ^~
main.cpp:28:37: error: 'c2' was not declared in this scope
28 | while(a[l1][c1]!=2 && a[l1][c2]!=2 && a[l2][c1]!=2 && a[l2][c2]!=2 && l1>=1 && l2<=n && c1>=1 && c2<=n)
| ^~
main.cpp:28:49: error: 'l2' was not declared in this scope
28 | while(a[l1][c1]!=2 && a[l1][c2]!=2 && a[l2][c1]!=2 && a[l2][c2]!=2 && l1>=1 && l2<=n && c1>=1 && c2<=n)
| ^~
main.cpp:29:13: error: 'ok' was not declared in this scope; did you mean 'k'?
29 | ok=1;
| ^~
| k
main.cpp:30:14: error: 'l1' was not declared in this scope
30 | if(a[l1][c1]==0)
| ^~
main.cpp:30:18: error: 'c1' was not declared in this scope
30 | if(a[l1][c1]==0)
| ^~