molecules.cpp: In function 'std::vector<int> find_subset(int, int, std::vector<int>)':
molecules.cpp:6:22: 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++)v.push_back(i);
| ~~^~~~~~~~~~
molecules.cpp:9:5: error: 'll' was not declared in this scope; did you mean 'l'?
9 | ll sum = 0;
| ^~
| l
molecules.cpp:10:29: 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 = 0, j = 0; i < v.size(); i++){
| ~~^~~~~~~~~~
molecules.cpp:11:15: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
11 | while(j < v.size() && sum < l)sum += w[v[j++]];
| ~~^~~~~~~~~~
molecules.cpp:11:29: error: 'sum' was not declared in this scope
11 | while(j < v.size() && sum < l)sum += w[v[j++]];
| ^~~
molecules.cpp:12:10: error: 'sum' was not declared in this scope
12 | if(sum >= l && sum <= u){
| ^~~
molecules.cpp:18:7: error: 'sum' was not declared in this scope
18 | sum -= w[v[i]];
| ^~~