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:19:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::array<int, 2> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
19 | for (int i = 0; i < withIndex.size(); i++)
| ~~^~~~~~~~~~~~~~~~~~
molecules.cpp:27:31: warning: comparison of integer expressions of different signedness: 'std::vector<int>::size_type' {aka 'long unsigned int'} and 'int' [-Wsign-compare]
27 | while (res.size() < i + 1)
| ~~~~~~~~~~~^~~~~~~
molecules.cpp:29:30: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::array<int, 2> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
29 | while (b + 1 < withIndex.size() && lsum - withIndex[a][0] + withIndex[b + 1][0] <= u)
| ~~~~~~^~~~~~~~~~~~~~~~~~