joi2019_ho_t2.cpp: In function 'int main()':
joi2019_ho_t2.cpp:22:23: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int oi=0, s=0; oi<T.size(); oi++) {
~~^~~~~~~~~
joi2019_ho_t2.cpp:7:17: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
int N, M; scanf("%d%d",&N,&M);
~~~~~^~~~~~~~~~~~~~
joi2019_ho_t2.cpp:8:31: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
for(int i=1; i<=N; i++) scanf("%d%d",&S[i],&V[i]);
~~~~~^~~~~~~~~~~~~~~~~~~~
joi2019_ho_t2.cpp:9:31: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
for(int i=1; i<=M; i++) scanf("%d",&C[i]);
~~~~~^~~~~~~~~~~~