Borderou de evaluare (job #692793)

Utilizator avatar StefanDutu Dutu Stefan StefanDutu IP ascuns
Problemă Tai (clasa a 5-a) Compilator cpp-32
Rundă Arhiva de probleme Status evaluat
Dată 4 feb. 2023 11:48:31 Scor 0

Raport evaluator

Eroare de compilare: main.cpp: In function 'int main()': main.cpp:22:11: error: 'i' was not declared in this scope 22 | for ( i = d * d; i <= n; i = i + d ) // vom marca numerele din d in d | ^ main.cpp:22:5: warning: this 'for' clause does not guard... [-Wmisleading-indentation] 22 | for ( i = d * d; i <= n; i = i + d ) // vom marca numerele din d in d | ^~~ main.cpp:24:7: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for' 24 | con++; | ^~~ main.cpp:26:7: error: 'else' without a previous 'if' 26 | else | ^~~~ main.cpp:9:21: warning: unused variable 'nmaxprim' [-Wunused-variable] 9 | int C,n,a,con=0,nmaxprim=0; | ^~~~~~~~