Borderou de evaluare (job #609279)

Utilizator avatar oliv_1 Octa Bostinescu oliv_1 IP ascuns
Problemă Grupe1 (clasa a 7-a) Compilator cpp-32
Rundă Arhiva de probleme Status evaluat
Dată 9 oct. 2021 20:31:45 Scor 0

Raport evaluator

Eroare de compilare: main.cpp: In function 'int main()': main.cpp:12:27: error: expected ';' before numeric constant 12 | for(int i=1;i<=n;i++)10 2 | ^~ | ; main.cpp:12:25: warning: statement has no effect [-Wunused-value] 12 | for(int i=1;i<=n;i++)10 2 | ^~ main.cpp:41:4: warning: this 'else' clause does not guard... [-Wmisleading-indentation] 41 | else | ^~~~ main.cpp:43:5: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'else' 43 | return 0; | ^~~~~~ main.cpp:10:9: warning: unused variable 'ch' [-Wunused-variable] 10 | char ch; | ^~