molecules.cpp: In function 'std::vector<int> find_subset(int, int, std::vector<int>)':
molecules.cpp:28:9: warning: 'auto' changes meaning in C++11; please remove it [-Wc++0x-compat]
for(auto &i : w){
^
molecules.cpp:28:15: error: ISO C++ forbids declaration of 'i' with no type [-fpermissive]
for(auto &i : w){
^
molecules.cpp:28:19: warning: range-based 'for' loops only available with -std=c++11 or -std=gnu++11
for(auto &i : w){
^
molecules.cpp:29:15: warning: extended initializer lists only available with -std=c++11 or -std=gnu++11
v.push_back({i, cnt++});
^
molecules.cpp:29:25: warning: extended initializer lists only available with -std=c++11 or -std=gnu++11
v.push_back({i, cnt++});
^
molecules.cpp:33:9: warning: 'auto' changes meaning in C++11; please remove it [-Wc++0x-compat]
for(auto &i : v){
^
molecules.cpp:33:15: error: ISO C++ forbids declaration of 'i' with no type [-fpermissive]
for(auto &i : v){
^
molecules.cpp:33:19: warning: range-based 'for' loops only available with -std=c++11 or -std=gnu++11
for(auto &i : v){
^
molecules.cpp:34:25: error: request for member 'first' in 'i', which is of non-class type 'int'
s[++n] = s[n - 1] + i.first;
^
molecules.cpp:35:13: error: request for member 'second' in 'i', which is of non-class type 'int'
id[n] = i.second;
^