Borderou de evaluare (job #791925)

Utilizator avatar LucaPintilie Luca Andrei Pintilie LucaPintilie IP ascuns
Problemă Chibrituri (clasa a 5-a) Compilator cpp-32
Rundă Arhiva de probleme Status evaluat
Dată 30 oct. 2024 11:11:58 Scor 0

Raport evaluator

Eroare de compilare: main.cpp: In function 'int main()': main.cpp:41:17: warning: init-statement in selection statements only available with '-std=c++17' or '-std=gnu++17' [-Wc++17-extensions] 41 | if(chfv(h%10)+chfv(h/10)+chfv(m%10)+chfv(m/10==v) | ^~~~ main.cpp:41:63: error: expected ';' before 'if' 41 | if(chfv(h%10)+chfv(h/10)+chfv(m%10)+chfv(m/10==v) | ^ | ; 42 | if(chfo(h%10)+chfo(h/10)+chfo(m%10)+chfo(m/10)==o) | ~~ main.cpp:41:49: warning: value computed is not used [-Wunused-value] 41 | if(chfv(h%10)+chfv(h/10)+chfv(m%10)+chfv(m/10==v) | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~ main.cpp:44:14: error: expected primary-expression before 'if' 44 | if(chfv(h%10)+chfv(h/10)+chfv(m%10)+chfv(m/10)==v) | ^~ main.cpp:43:27: error: expected ')' before 'if' 43 | cnt++; | ^ | ) 44 | if(chfv(h%10)+chfv(h/10)+chfv(m%10)+chfv(m/10)==v) | ~~ main.cpp:41:16: note: to match this '(' 41 | if(chfv(h%10)+chfv(h/10)+chfv(m%10)+chfv(m/10==v) | ^ main.cpp:52:9: error: expected primary-expression before '}' token 52 | } | ^ main.cpp: In function 'int chfv(int)': main.cpp:19:1: warning: control reaches end of non-void function [-Wreturn-type] 19 | } | ^ main.cpp: In function 'int chfo(int)': main.cpp:32:1: warning: control reaches end of non-void function [-Wreturn-type] 32 | } | ^