molecules.cpp: In function 'std::vector<int> find_subset(int, int, std::vector<int>)':
molecules.cpp:8:21: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
8 | for(int i = 0;i < w.size();i++){
| ~~^~~~~~~~~~
molecules.cpp:12:21: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::pair<int, int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
12 | for(int i = 0;i < v.size();i++){
| ~~^~~~~~~~~~
molecules.cpp:17: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]
17 | for(int j = i+1;j < v.size();j++){
| ~~^~~~~~~~~~
molecules.cpp:28:29: error: 'j' was not declared in this scope
28 | for(int k = j-i-1;k <= j-1;k++) ans.push_back(v[k].second);
| ^