Borderou de evaluare (job #651978)

Utilizator avatar VladStroica Stroica Vlad Cristian VladStroica IP ascuns
Problemă La școală (clasa a 5-a) Compilator cpp-32
Rundă Arhiva de probleme Status evaluat
Dată 3 iun. 2022 15:44:51 Scor 0

Raport evaluator

Eroare de compilare: main.cpp: In function 'int main()': main.cpp:18:12: warning: init-statement in selection statements only available with '-std=c++17' or '-std=gnu++17' 18 | if(i%rand==0 | ^ main.cpp:18:21: error: expected ';' before 'fout' 18 | if(i%rand==0 | ^ | ; 19 | fout<<endl; | ~~~~ main.cpp:18:18: warning: statement has no effect [-Wunused-value] 18 | if(i%rand==0 | ~~~~~~^~~ main.cpp:20:21: error: expected ')' before ';' token 20 | fout<<i<<" "; | ^ | ) main.cpp:18:11: note: to match this '(' 18 | if(i%rand==0 | ^