Borderou de evaluare (job #683480)
Utilizator |
|
IP | ascuns |
---|---|---|---|
Problemă | Forus (clasa a 5-a) | Compilator | cpp-32 |
Rundă | lasm_21_12_2022_cl12 | Status | evaluat |
Dată | 21 dec. 2022 16:54:42 | Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'int main()':
main.cpp:26:31: error: expected ')' before ';' token
26 | for(int i=1; i<=N; i++;) fin>>A[i];
| ~ ^
| )
main.cpp:26:9: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
26 | for(int i=1; i<=N; i++;) fin>>A[i];
| ^~~
main.cpp:26:32: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for'
26 | for(int i=1; i<=N; i++;) fin>>A[i];
| ^
main.cpp:26:32: error: expected primary-expression before ')' token
main.cpp:27:31: error: expected ')' before ';' token
27 | for(int i=1; i<=N; i++;)
| ~ ^
| )
main.cpp:27:9: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
27 | for(int i=1; i<=N; i++;)
| ^~~
main.cpp:27:32: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for'
27 | for(int i=1; i<=N; i++;)
| ^
main.cpp:27:32: error: expected primary-expression before ')' token
main.cpp:32:14: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
32 | if (C=1) fout<<nr;
| ~^~