Borderou de evaluare (job #2330148)
Utilizator | Data | 27 ianuarie 2019 22:41:54 | |
---|---|---|---|
Problema | Trenbus | Status | done |
Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:179:31: error: ISO C++ forbids declaration of 'add_val' with no type [-fpermissive]
add_val ( Treap* &w , int val ) {
^
main.cpp: In function 'int add_val(Treap*&, int)':
main.cpp:185:1: warning: no return statement in function returning non-void [-Wreturn-type]
}
^
main.cpp: In function 'void solve()':
main.cpp:260:26: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
while ( ord.size ( ) < ( n + 3 ) ) { ord.push_back ( 0 ) ; }
~~~~~~~~~~~~~^~~~~~~~~~~
main.cpp: In function 'void input()':
main.cpp:239:42: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf ( "%d%d" , &output_type , &n ) ;
^
main.cpp:243:43: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf ( "%d%d%d" , &x , &y , &z ) ;
^
main.cpp:250:43: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf ( "%d%d%d" , &x , &y , &z ) ;
^
main.cpp: In function 'int main()':
main.cpp:280:44: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
freopen ( "trenbus.in" , "r" , stdin ) ;
^
main.cpp:281:46: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
freopen ( "trenbus.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 !