Borderou de evaluare (job #794485)

Utilizator avatar Crimz0n25 Stefan Tanas Crimz0n25 IP ascuns
Problemă Alfanumeric (clasa a 5-a) Compilator cpp-32
Rundă Arhiva de probleme Status evaluat
Dată 13 nov. 2024 17:01:38 Scor 0

Raport evaluator

Eroare de compilare: main.cpp: In function 'int main()': main.cpp:16:17: warning: init-statement in selection statements only available with '-std=c++17' or '-std=gnu++17' [-Wc++17-extensions] 16 | else if(ch>='A'&&(ch<'Z'||ch=='Z')fout<<ch; | ^~ main.cpp:16:43: error: expected ';' before 'fout' 16 | else if(ch>='A'&&(ch<'Z'||ch=='Z')fout<<ch; | ^~~~ | ; main.cpp:16:24: warning: statement has no effect [-Wunused-value] 16 | else if(ch>='A'&&(ch<'Z'||ch=='Z')fout<<ch; | ~~~~~~~^~~~~~~~~~~~~~~~~~~ main.cpp:17:9: error: expected primary-expression before 'else' 17 | else if(ch>='0'&&ch<='9')s+=ch-'0'; | ^~~~ main.cpp:16:52: error: expected ')' before 'else' 16 | else if(ch>='A'&&(ch<'Z'||ch=='Z')fout<<ch; | ~ ^ | ) 17 | else if(ch>='0'&&ch<='9')s+=ch-'0'; | ~~~~