molecules.cpp: In function 'std::vector<int> solve(int, int, std::vector<int>)':
molecules.cpp:15:17: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int i=0; i<w.size(); ++i)
~^~~~~~~~~
molecules.cpp:20:37: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int i=0, head=-1, cur_sum=0; i<a.size(); ++i) {
~^~~~~~~~~
molecules.cpp:21:16: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
while (head+1<a.size() && cur_sum<l)
~~~~~~^~~~~~~~~
/tmp/ccpbm2vQ.o: In function `main':
grader.cpp:(.text.startup+0x152): undefined reference to `find_subset(int, int, std::vector<int, std::allocator<int> >)'
collect2: error: ld returned 1 exit status