Borderou de evaluare (job #634265)

Utilizator avatar staicumatei114 Staicu Matei staicumatei114 IP ascuns
Problemă Prime (clasa a 5-a) Compilator cpp-32
Rundă Arhiva de probleme Status evaluat
Dată 20 feb. 2022 16:02:04 Scor 0

Raport evaluator

Eroare de compilare: main.cpp: In function 'int main()': main.cpp:13:15: warning: comparison of constant '3000000' with boolean expression is always true [-Wbool-compare] 13 | for(i=2; i<=3000000; i++) | ~^~~~~~~~~ main.cpp:13:26: warning: use of an operand of type 'bool' in 'operator++' is deprecated [-Wdeprecated] 13 | for(i=2; i<=3000000; i++) | ^ main.cpp:16:16: warning: '*' in boolean context, suggest '&&' instead [-Wint-in-bool-context] 16 | for(j=i*2; j<=3000000; j=j+i) | ~^~ main.cpp:16:21: warning: comparison of constant '3000000' with boolean expression is always true [-Wbool-compare] 16 | for(j=i*2; j<=3000000; j=j+i) | ~^~~~~~~~~ main.cpp:20:17: warning: comparison of constant '2' with boolean expression is always false [-Wbool-compare] 20 | for(nr=x; nr>=2; nr--) | ~~^~~ main.cpp:20:22: error: use of an operand of type 'bool' in 'operator--' is forbidden 20 | for(nr=x; nr>=2; nr--) | ^~ main.cpp:28:19: warning: comparison of constant '3000000' with boolean expression is always true [-Wbool-compare] 28 | for(nr=x+1; nr<=3000000; nr++) | ~~^~~~~~~~~ main.cpp:28:30: warning: use of an operand of type 'bool' in 'operator++' is deprecated [-Wdeprecated] 28 | for(nr=x+1; nr<=3000000; nr++) | ^~ main.cpp:32:13: error: use of an operand of type 'bool' in 'operator--' is forbidden 32 | n--; | ^