molecules.cpp: In function 'std::vector<int> find_subset(int, int, std::vector<int>)':
molecules.cpp:11:17: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
11 | for ( i = 0; i < w.size(); i ++) v.push_back(make_pair(w[i], i));
| ~~^~~~~~~~~~
molecules.cpp:17:17: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
17 | for ( i = 1; i < w.size(); i ++) {
| ~~^~~~~~~~~~
molecules.cpp:24:16: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
24 | for (i = 0; i < w.size(); i ++) {
| ~~^~~~~~~~~~
molecules.cpp:26: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]
26 | while (sum < l && p < v.size() - 1) {
| ~~^~~~~~~~~~~~~~
molecules.cpp:9:14: warning: variable 's' set but not used [-Wunused-but-set-variable]
9 | int p, sum, s, j, r, i;
| ^
molecules.cpp:9:20: warning: unused variable 'r' [-Wunused-variable]
9 | int p, sum, s, j, r, i;
| ^