molecules.cpp:34:12: warning: extra tokens at end of #undef directive
#undef int long long
^~~~
molecules.cpp:69:12: warning: extra tokens at end of #undef directive
#undef int long long
^~~~
molecules.cpp: In function 'void check(long long int)':
molecules.cpp:24: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:24: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:30: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:30: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(long long int, long long int, std::vector<int>)':
molecules.cpp:41:15: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i=0;i<w.size();i++)
~^~~~~~~~~
molecules.cpp:47:15: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i=0;i<vals.size();i++)
~^~~~~~~~~~~~
molecules.cpp:67:3: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
if(maxsum<l) continue;check(i);if(!ans.empty()) break;
^~
molecules.cpp:67: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;
^~~~~
molecules.cpp:71:15: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i=0;i<ans.size();i++) ret.push_back((int)ans[i]);
~^~~~~~~~~~~
/tmp/ccBe1itM.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