molecules.cpp: In function 'std::vector<int> find_subset(int, int, std::vector<int>)':
molecules.cpp:11:20: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
11 | for (int i = 0; i < w.size(); ++i) t.emplace_back(w[i], i);
| ~~^~~~~~~~~~
molecules.cpp:13:11: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
13 | while (lo<w.size()) {
| ~~^~~~~~~~~
molecules.cpp:14:9: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
14 | if (hi<w.size() && s<l) s+=w[hi++];
| ~~^~~~~~~~~
molecules.cpp:15:9: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
15 | if (lo<w.size() && u<s) s-=w[lo++];
| ~~^~~~~~~~~