Borderou de evaluare (job #2305136)
Utilizator | Data | 19 decembrie 2018 13:40:33 | |
---|---|---|---|
Problema | Risc2 | Status | done |
Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'void write_a()':
main.cpp:53:18: error: 's' was not declared in this scope
if ( !valid )s
^
main.cpp: In function 'void read()':
main.cpp:15:39: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
freopen ( "risc2.in", "r", stdin );
^
main.cpp:16:32: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf ( "%d%d", &test, &n );
^
main.cpp:20:30: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf ( "%d", &a[i] );
^
main.cpp: In function 'void write_a()':
main.cpp:52:41: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
freopen ( "risc2.out", "w", stdout );
^
main.cpp: In function 'void write_b()':
main.cpp:83:41: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
freopen ( "risc2.out", "w", stdout );
^
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !