Borderou de evaluare (job #2359907)
Utilizator | Data | 1 martie 2019 10:33:36 | |
---|---|---|---|
Problema | Ciurul lui Eratosthenes | Status | done |
Runda | Arhiva educationala | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'void ciur()':
main.cpp:11:9: error: 'lim' was not declared in this scope
lim = ( int ) sqrt( double ( 1000001 ) );
^~~
main.cpp:11:49: error: 'sqrt' was not declared in this scope
lim = ( int ) sqrt( double ( 1000001 ) );
^
main.cpp:16:17: error: 's' was not declared in this scope
if( s[i] == 0 )
^
main.cpp: In function 'int main()':
main.cpp:33:13: error: 'cnt' was not declared in this scope
cnt++;
^~~
main.cpp:34:19: error: 'cnt' was not declared in this scope
printf( "%d", cnt );
^~~
main.cpp:26:35: 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);
^
main.cpp:27:37: 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);
^
main.cpp:30:22: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf( "%d", &n );
^
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !