molecules.cpp: In function 'std::vector<int> find_subset(int, int, std::vector<int>)':
molecules.cpp:7:7: error: 'v' was not declared in this scope
sort(v.begin(),v.end());
^
molecules.cpp:16:10: error: expected ';' before 'a'
a++;
^
molecules.cpp:20:5: error: 'ans' was not declared in this scope
ans.push_back(w[i]);
^~~
molecules.cpp:20:5: note: suggested alternative: 'abs'
ans.push_back(w[i]);
^~~
abs
molecules.cpp:25:5: error: 'ans' was not declared in this scope
if(ans.size()) return ans;
^~~
molecules.cpp:25:5: note: suggested alternative: 'abs'
if(ans.size()) return ans;
^~~
abs