Borderou de evaluare (job #786748)

Utilizator avatar wrunning wild running wrunning IP ascuns
Problemă Tir1 (clasa a 6-a) Compilator cpp-32
Rundă Arhiva de probleme Status evaluat
Dată 17 sept. 2024 19:54:48 Scor 0

Raport evaluator

Eroare de compilare: main.cpp: In function 'int main()': main.cpp:25:14: warning: init-statement in selection statements only available with '-std=c++17' or '-std=gnu++17' [-Wc++17-extensions] 25 | if ( (g==0 && h==0) || (g>0 && h>0) | ^ main.cpp:25:44: error: expected ';' before 'out' 25 | if ( (g==0 && h==0) || (g>0 && h>0) | ^ | ; 26 | out<<"da"<<endl; | ~~~ main.cpp:25:29: warning: statement has no effect [-Wunused-value] 25 | if ( (g==0 && h==0) || (g>0 && h>0) | ~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~ main.cpp:27:9: error: expected primary-expression before 'else' 27 | else | ^~~~ main.cpp:26:29: error: expected ')' before 'else' 26 | out<<"da"<<endl; | ^ | ) 27 | else | ~~~~ main.cpp:25:12: note: to match this '(' 25 | if ( (g==0 && h==0) || (g>0 && h>0) | ^