molecules.cpp: In function 'std::vector<int> find_subset(int, int, std::vector<int>)':
molecules.cpp:20:8: error: 'v' was not declared in this scope
if(j-v[i]>=0)if(dp[j-v[i]].f)dp[j]=mp(1,i);
^
molecules.cpp:19:2: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
for(int j=l;j>=0;j--)
^~~
molecules.cpp:21:3: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for'
int t=-1;
^~~
molecules.cpp:29:8: error: 'v' was not declared in this scope
t-=v[dp[t].s];
^