Borderou de evaluare (job #808586)
Utilizator |
|
IP | ascuns |
---|---|---|---|
Problemă | Kprime (clasa a 6-a) | Compilator | cpp-32 |
Rundă | Arhiva de probleme | Status | evaluat |
Dată | 10 feb. 2025 11:48:51 | Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'int main()':
main.cpp:41:15: warning: suggest explicit braces to avoid ambiguous 'else' [-Wdangling-else]
41 | if(p!=0)
| ^
main.cpp:54:9: warning: this 'else' clause does not guard... [-Wmisleading-indentation]
54 | else
| ^~~~
main.cpp:55:27: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'else'
55 | fout<<0<<'\n';
| ^
main.cpp:55:27: error: expected '}' at end of input
main.cpp:28:5: note: to match this '{'
28 | {
| ^
main.cpp:55:27: error: expected '}' at end of input
55 | fout<<0<<'\n';
| ^
main.cpp:11:1: note: to match this '{'
11 | {
| ^