Borderou de evaluare (job #637257)
Utilizator |
|
IP | ascuns |
---|---|---|---|
Problemă | Diagonal (clasa a 6-a) | Compilator | cpp-32 |
Rundă | Arhiva de probleme | Status | evaluat |
Dată | 1 mar. 2022 21:19:50 | Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:6:11: error: invalid types 'int[int]' for array subscript
6 | char a[105[105];
| ^
main.cpp:6:16: error: expected ']' before ';' token
6 | char a[105[105];
| ^
| ]
main.cpp: In function 'int main()':
main.cpp:18:13: error: 'a' was not declared in this scope
18 | a[i][j]=v[l];
| ^
main.cpp:24:18: error: 'a' was not declared in this scope
24 | out<<a[l][m];
| ^
main.cpp:32:18: error: 'a' was not declared in this scope
32 | out<<a[l][m];
| ^
main.cpp:40:18: error: 'a' was not declared in this scope
40 | out<<a[i][m];
| ^
main.cpp:47:18: error: 'a' was not declared in this scope
47 | out<<a[m][j];
| ^
main.cpp:9:9: warning: unused variable 'k' [-Wunused-variable]
9 | int k=0,i=1,n,j,m;
| ^