molecules.cpp: In function 'std::vector<int> find_subset(int, int, std::vector<int>)':
molecules.cpp:14:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
14 | for (int i = 0; i < w.size(); i++) {
| ~~^~~~~~~~~~
molecules.cpp:18:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::pair<int, int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
18 | for (int i = 0; i < sw.size() && sum < l; i++) {
| ~~^~~~~~~~~~~
molecules.cpp:37:49: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::pair<int, int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
37 | for (int i = max(0, prevInd); i < sw.size(); i++) if (!subset[sw[i].second]) {
| ~~^~~~~~~~~~~
molecules.cpp:50:63: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::pair<int, int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
50 | if (sum - sw.back().first <= u) for (int i = 0; i < sw.size(); i++) if (subset[sw[i].second]) {
| ~~^~~~~~~~~~~
molecules.cpp:61:52: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::pair<int, int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
61 | for (int i = max(0, prevRemInd); i < sw.size(); i++) if (subset[sw[i].second]) {
| ~~^~~~~~~~~~~
molecules.cpp:72:31: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<bool>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
72 | for (int n = 0; n < subset.size(); n++) if (subset[n]) res.push_back(n);
| ~~^~~~~~~~~~~~~~~