molecules.cpp: In function 'void check(int)':
molecules.cpp:22: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:22: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:28: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:28: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:36:15: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i=0;i<w.size();i++)
~^~~~~~~~~
molecules.cpp:42:15: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i=0;i<vals.size();i++)
~^~~~~~~~~~~~
molecules.cpp:62:3: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
if(maxsum<l) continue;check(i);if(!ans.empty()) break;
^~
molecules.cpp:62: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;
^~~~~