Borderou de evaluare (job #760910)

Utilizator avatar AndreiSuperStar22 Andrei Stanciu AndreiSuperStar22 IP ascuns
Problemă La școală (clasa a 5-a) Compilator cpp-32
Rundă Arhiva de probleme Status evaluat
Dată 8 feb. 2024 10:59:02 Scor 0

Raport evaluator

Eroare de compilare: main.cpp: In function 'int main()': main.cpp:18:31: error: expected ')' before ';' token 18 | for(j = 1; j <= i; i++;){ | ~ ^ | ) main.cpp:18:9: warning: this 'for' clause does not guard... [-Wmisleading-indentation] 18 | for(j = 1; j <= i; i++;){ | ^~~ main.cpp:18:32: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for' 18 | for(j = 1; j <= i; i++;){ | ^ main.cpp:18:32: error: expected primary-expression before ')' token main.cpp:10:22: warning: unused variable 'h' [-Wunused-variable] 10 | int n, i, j, h; | ^ main.cpp:17:13: warning: unused variable 'nr' [-Wunused-variable] 17 | int nr = i * i; | ^~