Borderou de evaluare (job #580805)
Utilizator |
|
IP | ascuns |
---|---|---|---|
Problemă | Maxim (clasa 7-8) | Compilator | cpp-32 |
Rundă | Arhiva de probleme | Status | evaluat |
Dată | 4 feb. 2021 01:51:49 | Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:7:1: error: '::main' must return 'int'
7 | void main()
| ^~~~
main.cpp: In function 'int main()':
main.cpp:33:5: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
33 | if (i > 1)i--; c--;
| ^~
main.cpp:33:20: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if'
33 | if (i > 1)i--; c--;
| ^
main.cpp:52:5: warning: suggest explicit braces to avoid ambiguous 'else' [-Wdangling-else]
52 | if (c)
| ^