knapsack.cpp: In function 'int main()':
knapsack.cpp:17:26: warning: comparison of integer expressions of different signedness: 'std::vector<long long int>::size_type' {aka 'long unsigned int'} and 'int' [-Wsign-compare]
17 | while(subs.size()<cap/j&&i<arr[j].size()){
| ~~~~~~~~~~~^~~~~~
knapsack.cpp:17:35: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::pair<long long int, long long int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
17 | while(subs.size()<cap/j&&i<arr[j].size()){
| ~^~~~~~~~~~~~~~
knapsack.cpp:18:27: warning: comparison of integer expressions of different signedness: 'std::vector<long long int>::size_type' {aka 'long unsigned int'} and 'int' [-Wsign-compare]
18 | while(subs.size()<(cap/j)&&arr[j][i].second>0){
| ~~~~~~~~~~~^~~~~~~~
knapsack.cpp:28:18: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::pair<long long int, long long int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
28 | for(int j=0;j<knapsack.size();j++){
| ~^~~~~~~~~~~~~~~~