Borderou de evaluare (job #673021)
Utilizator |
|
IP | ascuns |
---|---|---|---|
Problemă | Tir1 (clasa a 6-a) | Compilator | cpp-32 |
Rundă | Arhiva de probleme | Status | evaluat |
Dată | 31 oct. 2022 20:39:39 | Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'int main()':
main.cpp:15:13: warning: init-statement in selection statements only available with '-std=c++17' or '-std=gnu++17'
15 | else if((h==d && h==0) && ((g==0 && f>0) || (f==0 && g>0))
| ^
main.cpp:15:63: error: expected ';' before 'fout'
15 | else if((h==d && h==0) && ((g==0 && f>0) || (f==0 && g>0))
| ^
| ;
16 | fout<<"da\n";
| ~~~~
main.cpp:15:28: warning: statement has no effect [-Wunused-value]
15 | else if((h==d && h==0) && ((g==0 && f>0) || (f==0 && g>0))
| ~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
main.cpp:17:5: error: expected primary-expression before 'else'
17 | else
| ^~~~
main.cpp:16:22: error: expected ')' before 'else'
16 | fout<<"da\n";
| ^
| )
17 | else
| ~~~~
main.cpp:15:12: note: to match this '('
15 | else if((h==d && h==0) && ((g==0 && f>0) || (f==0 && g>0))
| ^