Borderou de evaluare (job #743419)
| Utilizator |
|
IP | ascuns |
|---|---|---|---|
| Problemă | Postinfix (clasa a 10-a) | Compilator | cpp-32 |
| Rundă | Arhiva de probleme | Status | evaluat |
| Dată | 9 nov. 2023 16:45:19 | Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'void reverse()':
main.cpp:32:25: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
32 | if(s[p][i]=='+');
| ^~
main.cpp:33:33: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if'
33 | s[p][i]='-';
| ^
main.cpp:34:25: error: expected '}' before 'else'
34 | else
| ^~~~
main.cpp:31:59: note: to match this '{'
31 | if(c==0 && (s[p][i]=='+' || s[p][i]=='-')){
| ^
main.cpp: At global scope:
main.cpp:39:1: error: expected declaration before '}' token
39 | }
| ^