molecules.cpp: In function 'std::vector<int> find_subset(int, int, std::vector<int>)':
molecules.cpp:8:20: 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++) w.push_back({W[i], i});
| ~^~~~~~~~~
molecules.cpp:12: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]
12 | while (pl < w.size() && pr < w.size() && (now < l || now > u)) {
| ~~~^~~~~~~~~~
molecules.cpp:12:32: 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]
12 | while (pl < w.size() && pr < w.size() && (now < l || now > u)) {
| ~~~^~~~~~~~~~
molecules.cpp:14:22: 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]
14 | if (pr+1 < w.size()) now += w[++pr].first;
| ~~~~~^~~~~~~~~~
molecules.cpp:18:20: 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]
18 | if (pl < w.size()) now -= w[pl++].first;
| ~~~^~~~~~~~~~