molecules.cpp: In function 'std::vector<long long int> find_subset(long long int, long long int, std::vector<long long int>)':
molecules.cpp:19:15: warning: comparison of integer expressions of different signedness: 'long long int' and 'std::vector<long long int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
19 | for(int i=0;i<w.size();i++){
| ~^~~~~~~~~
molecules.cpp:23:10: error: request for member 'begin' in 'w1', which is of non-class type 'std::pair<long long int, long long int> [(<anonymous> + 1)]'
23 | sort(w1.begin(),w1.end());
| ^~~~~
molecules.cpp:23:21: error: request for member 'end' in 'w1', which is of non-class type 'std::pair<long long int, long long int> [(<anonymous> + 1)]'
23 | sort(w1.begin(),w1.end());
| ^~~
molecules.cpp:26:11: error: 'n' was not declared in this scope
26 | while(l1<n&&r1<n){
| ^