Borderou de evaluare (job #789990)
Utilizator |
|
IP | ascuns |
---|---|---|---|
Problemă | Asort (baraj gimnaziu) | Compilator | cpp-32 |
Rundă | Arhiva de probleme | Status | evaluat |
Dată | 15 oct. 2024 23:26:38 | Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'int main()':
main.cpp:72:32: warning: init-statement in selection statements only available with '-std=c++17' or '-std=gnu++17' [-Wc++17-extensions]
72 | if((r-(n*(r/n))>(n/2))
| ^
main.cpp:72:51: error: expected ';' before '{' token
72 | if((r-(n*(r/n))>(n/2))
| ^
| ;
73 | {
| ~
main.cpp:72:44: warning: statement has no effect [-Wunused-value]
72 | if((r-(n*(r/n))>(n/2))
| ~~~~~~~~~~~~^~~~~~~
main.cpp:78:29: error: expected primary-expression before 'else'
78 | else
| ^~~~
main.cpp:77:33: error: expected ')' before 'else'
77 | }
| ^
| )
78 | else
| ~~~~
main.cpp:72:31: note: to match this '('
72 | if((r-(n*(r/n))>(n/2))
| ^