molecules.cpp: In function 'std::vector<int> find_subset(int, int, std::vector<int>)':
molecules.cpp:7:20: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
7 | for (int i = 0; i < v.size(); i++) u[i].first = v[i], u[i].second = i;
| ~~^~~~~~~~~~
molecules.cpp:10:20: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
10 | for (int i = 1; i < v.size(); i++) p[i] = p[i - 1] + v[i];
| ~~^~~~~~~~~~
molecules.cpp:11:20: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
11 | for (int i = 0; i < v.size(); i++){
| ~~^~~~~~~~~~
molecules.cpp:16:20: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
16 | for (int i = 1; i < v.size(); i++){
| ~~^~~~~~~~~~
molecules.cpp:17:36: warning: right operand of comma operator has no effect [-Wunused-value]
17 | l = i,r = v.size() - 1,md,jog = -1;
| ^