molecules.cpp: In function 'std::vector<int> find_subset(int, int, std::vector<int>)':
molecules.cpp:13:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
13 | for (int i = 0; i < w.size(); i++) {
| ~~^~~~~~~~~~
molecules.cpp:30:35: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::pair<int, int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
30 | for (int i = 0; i < sw.size(); i++) if (!subset[sw[i].second]) {
| ~~^~~~~~~~~~~
molecules.cpp:41:31: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::pair<int, int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
41 | for (int i = 0; i < sw.size(); i++) if (subset[sw[i].second]) {
| ~~^~~~~~~~~~~
molecules.cpp:52:35: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::pair<int, int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
52 | for (int i = 0; i < sw.size(); i++) if (subset[sw[i].second]) {
| ~~^~~~~~~~~~~
molecules.cpp:62:31: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<bool>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
62 | for (int n = 0; n < subset.size(); n++) if (subset[n]) res.push_back(n);
| ~~^~~~~~~~~~~~~~~