Borderou de evaluare (job #734801)
Utilizator |
|
IP | ascuns |
---|---|---|---|
Problemă | Norocos (clasa a 5-a) | Compilator | cpp-32 |
Rundă | Arhiva de probleme | Status | evaluat |
Dată | 1 oct. 2023 14:30:28 | Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'int main()':
main.cpp:60:24: warning: init-statement in selection statements only available with '-std=c++17' or '-std=gnu++17' [-Wc++17-extensions]
60 | if((m % d == 0)
| ^
main.cpp:60:36: error: expected ';' before 'ok'
60 | if((m % d == 0)
| ^
| ;
61 | ok = 0;
| ~~
main.cpp:60:31: warning: statement has no effect [-Wunused-value]
60 | if((m % d == 0)
| ~~~~~~~^~~~~
main.cpp:62:17: error: expected primary-expression before '}' token
62 | }
| ^
main.cpp:61:32: error: expected ')' before '}' token
61 | ok = 0;
| ^
| )
62 | }
| ~
main.cpp:60:23: note: to match this '('
60 | if((m % d == 0)
| ^
main.cpp:62:17: error: expected primary-expression before '}' token
62 | }
| ^