molecules.cpp: In function 'std::vector<int> find_subset(int, int, std::vector<int>)':
molecules.cpp:12:22: 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:17:21: warning: comparison of integer expressions of different signedness: 'long long int' and 'std::vector<std::pair<int, int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
17 | for (ll i = 0; i<v.size(); i++){
| ~^~~~~~~~~
molecules.cpp:21:21: warning: comparison of integer expressions of different signedness: 'long long int' and 'std::vector<std::pair<int, int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
21 | for (ll i = 0; i<v.size(); i++){
| ~^~~~~~~~~
molecules.cpp:11:27: warning: control reaches end of non-void function [-Wreturn-type]
11 | vector<pair<int, int>>v;
| ^
molecules.cpp:16:9: warning: array subscript -1 is below array bounds of 'long long int [200005]' [-Warray-bounds]
16 | p[-1] = 0;
| ~~~~^