Borderou de evaluare (job #613342)
Utilizator |
|
IP | ascuns |
---|---|---|---|
Problemă | Colecție (clasa a 5-a) | Compilator | cpp-32 |
Rundă | Arhiva de probleme | Status | evaluat |
Dată | 30 oct. 2021 17:28:39 | Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'int main()':
main.cpp:25:12: error: 'S' was not declared in this scope
25 | S+=nr;
| ^
main.cpp:30:12: error: 'S' was not declared in this scope
30 | S-=nr;
| ^
main.cpp:33:7: error: 'S' was not declared in this scope
33 | if(S>0)
| ^
main.cpp:39:4: warning: this 'else' clause does not guard... [-Wmisleading-indentation]
39 | else
| ^~~~
main.cpp:42:5: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'else'
42 | return 0;
| ^~~~~~