Borderou de evaluare (job #738729)
Utilizator |
|
IP | ascuns |
---|---|---|---|
Problemă | Tir1 (clasa a 6-a) | Compilator | cpp-32 |
Rundă | Arhiva de probleme | Status | evaluat |
Dată | 17 oct. 2023 16:30:47 | Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'int main()':
main.cpp:33:10: warning: init-statement in selection statements only available with '-std=c++17' or '-std=gnu++17' [-Wc++17-extensions]
33 | if((m==n)
| ^
main.cpp:33:16: error: expected ';' before 'cout'
33 | if((m==n)
| ^
| ;
34 | cout<<"da";
| ~~~~
main.cpp:33:12: warning: statement has no effect [-Wunused-value]
33 | if((m==n)
| ~~^~~~
main.cpp:35:7: error: expected primary-expression before 'else'
35 | else
| ^~~~
main.cpp:34:20: error: expected ')' before 'else'
34 | cout<<"da";
| ^
| )
35 | else
| ~~~~
main.cpp:33:9: note: to match this '('
33 | if((m==n)
| ^