Borderou de evaluare (job #692794)

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:50:07 Scor 0

Raport evaluator

Eroare de compilare: main.cpp: In function 'int main()': main.cpp:23:18: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 23 | if(ciur[i] = 1) | ~~~~~~~~^~~ main.cpp:22:5: warning: this 'for' clause does not guard... [-Wmisleading-indentation] 22 | for (int i = d * d; i <= n; i = i + d ) // vom marca numerele din d in d | ^~~ main.cpp:25:7: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for' 25 | fout<<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; | ^~~~~~~~