knapsack.cpp: In function 'int main()':
knapsack.cpp:16:15: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::pair<long long int, int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
16 | for(j = 0; j<wei[i].size() && remain >0; j++){
| ~^~~~~~~~~~~~~~
knapsack.cpp:22:11: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::pair<long long int, int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
22 | for(i=0;i<vc.size();i++){
| ~^~~~~~~~~~
knapsack.cpp:8:7: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
8 | scanf("%d %d",&s,&n);
| ~~~~~^~~~~~~~~~~~~~~
knapsack.cpp:10:8: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
10 | scanf("%lld %d %d",&v,&w,&k);
| ~~~~~^~~~~~~~~~~~~~~~~~~~~~~