Borderou de evaluare (job #1127888)
Utilizator | Data | 27 februarie 2014 14:12:39 | |
---|---|---|---|
Problema | Ciurul lui Eratosthenes | Status | done |
Runda | Arhiva educationala | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:12:1: error: expected initializer before ‘int’
int prim (int nr)
^
user.cpp: In function ‘int main()’:
user.cpp:19:9: error: ‘i’ was not declared in this scope
for(i=2;i<=n;i++)
^
user.cpp:20:12: error: ‘p’ was not declared in this scope
if(p[i]==0)
^
user.cpp:21:15: error: ‘j’ was not declared in this scope
for(j=i+i;j<=n;j=j+i)
^
user.cpp:23:9: error: ‘i’ was not declared in this scope
for(i=2;i<=n;i++)
^
user.cpp:24:10: error: ‘p’ was not declared in this scope
if(p[j]==0)
^
user.cpp:24:12: error: ‘j’ was not declared in this scope
if(p[j]==0)
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !