molecules.cpp: In function 'std::vector<int> find_subset(int, int, std::vector<int>)':
molecules.cpp:8:18: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
8 | for(int i=0;i<w.size();i++)v.push_back({w[i],i+1});
| ~^~~~~~~~~
molecules.cpp:11:14: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::pair<int, int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
11 | for(i=0;i<v.size()&&s+v[i].first<=u;i++)s+=v[i].first;
| ~^~~~~~~~~
molecules.cpp:12:9: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::pair<int, int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
12 | if(i==v.size()){
| ~^~~~~~~~~~
molecules.cpp:22:24: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::pair<int, int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
22 | for(int k=j+1;k<v.size();k++)r.push_back(v[k].second);
| ~^~~~~~~~~