Borderou de evaluare (job #1385186)

Utilizator JCK6vasilica ion223 JCK6 Data 11 martie 2015 19:10:01
Problema Numere Prime Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp:7:15: error: array bound is not an integer constant before ‘]’ token long long v[xx]; ^ user.cpp: In function ‘int main()’: user.cpp:13:9: error: ‘v’ was not declared in this scope v[i]=1; ^ user.cpp:15:5: error: ‘nr’ was not declared in this scope nr=2; ^ user.cpp:17:31: error: ‘v’ was not declared in this scope for(i=nr;i<=xx;i=i+nr)v[i]=0; ^ user.cpp:19:16: error: ‘v’ was not declared in this scope if(v[i]==1){ ^ user.cpp:27:12: error: ‘v’ was not declared in this scope if(v[i]==1)nr++; ^

Ceva nu functioneaza?