molecules.cpp: In function 'void check(long long int)':
molecules.cpp:23: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:23: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:29: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:29: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<long long int> find_subset(long long int, long long int, std::vector<long long int>)':
molecules.cpp:37:15: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i=0;i<w.size();i++)
~^~~~~~~~~
molecules.cpp:43:15: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i=0;i<vals.size();i++)
~^~~~~~~~~~~~
molecules.cpp:63:3: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
if(maxsum<l) continue;check(i);if(!ans.empty()) break;
^~
molecules.cpp:63:25: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if'
if(maxsum<l) continue;check(i);if(!ans.empty()) break;
^~~~~
/tmp/ccVK3h0X.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