Borderou de evaluare (job #1790398)
Utilizator | Data | 28 octombrie 2016 10:34:28 | |
---|---|---|---|
Problema | Ciurul lui Eratosthenes | Status | done |
Runda | Arhiva educationala | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘int main()’:
user.cpp:12:12: error: ‘ciur’ was not declared in this scope
if(ciur[i]==1) continue;
^
user.cpp:13:33: error: ‘ciur’ was not declared in this scope
for(int j=i*i;j<=n;j++) ciur[j]=1;
^
user.cpp:16:31: error: ‘ciur’ was not declared in this scope
for(int i=2;i<=n;i++) if(!ciur[i]) ++ct;
^
user.cpp:6:34: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen ("ciur.in","r",stdin);
^
user.cpp:7:36: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen ("ciur.out","w",stdout);
^
user.cpp:8:19: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d",&n);
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !