garage.cpp:4:0: warning: ignoring #pragma GCC optimization [-Wunknown-pragmas]
#pragma GCC optimization ("O3")
garage.cpp:5:0: warning: ignoring #pragma GCC optimization [-Wunknown-pragmas]
#pragma GCC optimization ("unroll-loops")
garage.cpp: In function 'int main()':
garage.cpp:49:20: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
while( ini < fila.size() && s.size() > 0 )
~~~~^~~~~~~~~~~~~
garage.cpp:30:10: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d %d", &N , &M ) ;
~~~~~^~~~~~~~~~~~~~~~~~~
garage.cpp:31:39: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
lp(i,1,N+1) scanf("%d", &rate[i]) , s.insert(i) ;
~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~
garage.cpp:32:22: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
lp(i,1,M+1) scanf("%d", &weight[i]) ;
~~~~~^~~~~~~~~~~~~~~~~~
garage.cpp:39:14: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &idx ) ;
~~~~~^~~~~~~~~~~~~