molecules.cpp: In function 'void check(int)':
molecules.cpp:17:3: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
for(int i=0;i<num;i++) ans.push_back(vals[i].s);return;
^~~
molecules.cpp:17:51: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for'
for(int i=0;i<num;i++) ans.push_back(vals[i].s);return;
^~~~~~
molecules.cpp:23:4: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
for(int j=i-num+1;j<=i;j++) ans.push_back(vals[j].s);return;
^~~
molecules.cpp:23:57: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for'
for(int j=i-num+1;j<=i;j++) ans.push_back(vals[j].s);return;
^~~~~~
molecules.cpp: In function 'std::vector<int> find_subset(int, int, std::vector<int>)':
molecules.cpp:31:15: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i=0;i<w.size();i++)
~^~~~~~~~~
molecules.cpp:39:15: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i=0;i<vals.size();i++)
~^~~~~~~~~~~~
/tmp/ccIW2XD0.o: In function `main':
grader.cpp:(.text.startup+0x0): multiple definition of `main'
/tmp/ccGZpidD.o:molecules.cpp:(.text.startup+0x0): first defined here
collect2: error: ld returned 1 exit status