ho_t2.cpp: In function 'int main()':
ho_t2.cpp:24:14: warning: comparison of integer expressions of different signedness: 'std::vector<int>::size_type' {aka 'long unsigned int'} and 'int' [-Wsign-compare]
24 | if(V.size()<K) P[i]=-1;
| ~~~~~~~~^~
ho_t2.cpp:33:14: warning: comparison of integer expressions of different signedness: 'std::vector<int>::size_type' {aka 'long unsigned int'} and 'int' [-Wsign-compare]
33 | if(V.size()<K) Q[i]=-1;
| ~~~~~~~~^~
ho_t2.cpp:42:14: warning: comparison of integer expressions of different signedness: 'std::vector<int>::size_type' {aka 'long unsigned int'} and 'int' [-Wsign-compare]
42 | if(V.size()<K) continue;
| ~~~~~~~~^~
ho_t2.cpp:16:7: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
16 | scanf("%d%d", &N, &K);
| ~~~~~^~~~~~~~~~~~~~~~
ho_t2.cpp:17:7: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
17 | scanf("%s", S+1);
| ~~~~~^~~~~~~~~~~