molecules.cpp: In function 'std::vector<int> find_subset(int, int, std::vector<int>)':
molecules.cpp:22:20: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i = 0;i<w.size();i++)
~^~~~~~~~~
molecules.cpp:28:20: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i = 0;i<w.size();i++)
~^~~~~~~~~
molecules.cpp:33:20: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i = 0;i<w.size();i++)
~^~~~~~~~~
molecules.cpp:47:20: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i = 0;i<w.size();i++)
~^~~~~~~~~
molecules.cpp:52:5: error: 'sort' was not declared in this scope
sort(v.begin(), v.end());
^~~~
molecules.cpp:52:5: note: suggested alternative: 'qsort'
sort(v.begin(), v.end());
^~~~
qsort
molecules.cpp:64:30: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
while(sum<=u && index<v.size())
~~~~~^~~~~~~~~
molecules.cpp:95:9: error: 'shuffle' was not declared in this scope
shuffle(v.begin(), v.end(), rnd);
^~~~~~~
molecules.cpp:97:24: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i = 0;i<v.size();i++)
~^~~~~~~~~