molecules.cpp: In function 'std::vector<int> find_subset(int, int, std::vector<int>)':
molecules.cpp:6:15: 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:12:18: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
12 | for(int i=0;i<w.size();i++){
| ~^~~~~~~~~
molecules.cpp:22:9: error: expected primary-expression before ';' token
22 | up=i-;
| ^
molecules.cpp:32:12: error: 'n' was not declared in this scope
32 | sum+=p[i+n-up-1].first;
| ^