Borderou de evaluare (job #762127)
Utilizator |
|
IP | ascuns |
---|---|---|---|
Problemă | Camelot | Compilator | cpp-32 |
Rundă | Arhiva de probleme | Status | evaluat |
Dată | 12 feb. 2024 22:46:43 | Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'int main()':
main.cpp:46:21: error: 's' was not declared in this scope
46 | s[m++]=l;
| ^
main.cpp:46:23: error: lvalue required as increment operand
46 | s[m++]=l;
| ^
main.cpp:44:17: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
44 | for(int l=1;l<=N;l++)
| ^~~
main.cpp:47:21: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for'
47 | for(int i=1;i<=m;i++)
| ^~~
main.cpp:47:34: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
47 | for(int i=1;i<=m;i++)
| ~^~~
main.cpp:50:13: error: expected primary-expression before '}' token
50 | }
| ^
main.cpp:43:21: warning: unused variable 'nr' [-Wunused-variable]
43 | int nr=m[li][c];
| ^~