Borderou de evaluare (job #781512)

Utilizator avatar baghichira Baghi Chira baghichira IP ascuns
Problemă Prim (clasa a 5-a) Compilator cpp-32
Rundă Arhiva de probleme Status evaluat
Dată 5 iul. 2024 18:11:07 Scor 0

Raport evaluator

Eroare de compilare: main.cpp: In function 'int main()': main.cpp:19:31: error: 'x' was not declared in this scope 19 | for(int j=i*i; j<=x; j+=i) | ^ main.cpp:27:25: error: ISO C++ forbids comparison between pointer and integer [-fpermissive] 27 | if(v[i]==0, && c<=k) | ~~~~^~~ main.cpp:27:16: warning: left operand of comma operator has no effect [-Wunused-value] 27 | if(v[i]==0, && c<=k) | ~~~~^~~ main.cpp:12:15: warning: unused variable 'c' [-Wunused-variable] 12 | int n, k, c=0; | ^ main.cpp:27:24: error: label 'c' used but not defined 27 | if(v[i]==0, && c<=k) | ^