Borderou de evaluare (job #730397)

Utilizator avatar NoName NoName NoName IP ascuns
Problemă Tir1 (clasa a 6-a) Compilator cpp-32
Rundă Arhiva de probleme Status evaluat
Dată 30 aug. 2023 13:22:53 Scor 0

Raport evaluator

Eroare de compilare: main.cpp: In function 'int main()': main.cpp:26:9: warning: init-statement in selection statements only available with '-std=c++17' or '-std=gnu++17' [-Wc++17-extensions] 26 | if (tf==tg && (tf!=0 || (D==0 && H==0)) | ^~ main.cpp:26:44: error: expected ';' before '{' token 26 | if (tf==tg && (tf!=0 || (D==0 && H==0)) | ^ | ; 27 | { | ~ main.cpp:26:16: warning: statement has no effect [-Wunused-value] 26 | if (tf==tg && (tf!=0 || (D==0 && H==0)) | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ main.cpp:30:5: error: expected primary-expression before 'else' 30 | else | ^~~~ main.cpp:29:6: error: expected ')' before 'else' 29 | } | ^ | ) 30 | else | ~~~~ main.cpp:26:8: note: to match this '(' 26 | if (tf==tg && (tf!=0 || (D==0 && H==0)) | ^