molecules.cpp: In function 'std::vector<int> find_subset(int, int, std::vector<int>)':
molecules.cpp:8:18: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i=0;i<w.size();i++)
~^~~~~~~~~
molecules.cpp:17:9: error: conflicting declaration 'int n'
int n = k;
^
molecules.cpp:7:11: note: previous declaration as 'bool n'
bool n =false;
^
molecules.cpp:19:12: error: could not convert '0' from 'int' to 'std::vector<int>'
return 0;
^
molecules.cpp:20:4: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
if(f==0&&f<u)
^~
molecules.cpp:22:5: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if'
int sum = max(f,l);
^~~