molecules.cpp: In function 'std::vector<int> find_subset(int, int, std::vector<int>)':
molecules.cpp:6:2: error: 'sort' was not declared in this scope
sort(w.begin(),w.end());
^~~~
molecules.cpp:6:2: note: suggested alternative: 'short'
sort(w.begin(),w.end());
^~~~
short
molecules.cpp:21:18: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int i=0;i<w.size();i++) {
~^~~~~~~~~
molecules.cpp:31:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^