Borderou de evaluare (job #2254071)

Utilizator AndreiPanaAndrei Alexandru Pana AndreiPana Data 4 octombrie 2018 19:15:00
Problema Ciurul lui Eratosthenes Status done
Runda Arhiva educationala Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp:8:1: error: expected ‘,’ or ‘;’ before ‘const’ const int VM = 2000000; ^~~~~ user.cpp:10:8: error: ‘VM’ was not declared in this scope bool c[VM]; ^~ user.cpp: In function ‘int main()’: user.cpp:17:21: error: ‘VM’ was not declared in this scope for(int i=2;i*i<VM;i++){ ^~ user.cpp:18:13: error: ‘c’ was not declared in this scope if(!c[i]){ ^ user.cpp:14:12: warning: unused variable ‘n’ [-Wunused-variable] int k, n, z=0; ^

Ceva nu functioneaza?