molecules.cpp: In function 'std::vector<int> find_subset(int, int, std::vector<int>)':
molecules.cpp:6:22: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
6 | for(int i = 0; i < w.size(); i++){
| ~~^~~~~~~~~~
molecules.cpp:20:22: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::pair<int, int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
20 | for(int i = 0; i <= a.size(); i++){
| ~~^~~~~~~~~~~
molecules.cpp:23:69: warning: comparison of integer expressions of different signedness: 'int' and 'long unsigned int' [-Wsign-compare]
23 | if(it != pre.end() && sum + *it <= u && sum + *it >= l && i <= a.size() - (it - pre.begin())){
| ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
molecules.cpp:30:14: 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 | if(i < a.size() && sum + a[i].first <= u){
| ~~^~~~~~~~~~
molecules.cpp:21:13: warning: unused variable 'j' [-Wunused-variable]
21 | int j = a.size() - 1;
| ^