molecules.cpp: In function 'std::vector<int> find_subset(int, int, std::vector<int>)':
molecules.cpp:15:11: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(i=0;i<w.size();i++) v.pub(mp(w[i],i));
~^~~~~~~~~
molecules.cpp:19:11: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(i=0;i<w.size();i++){
~^~~~~~~~~
molecules.cpp:8:12: error: request for member 'first' in 'w.std::vector<int>::operator[](((std::vector<int>::size_type)i))', which is of non-class type '__gnu_cxx::__alloc_traits<std::allocator<int> >::value_type {aka int}'
#define ff first
^
molecules.cpp:20:13: note: in expansion of macro 'ff'
if(s+w[i].ff<=u){
^~
molecules.cpp:8:12: error: request for member 'first' in 'w.std::vector<int>::operator[](((std::vector<int>::size_type)i))', which is of non-class type '__gnu_cxx::__alloc_traits<std::allocator<int> >::value_type {aka int}'
#define ff first
^
molecules.cpp:21:12: note: in expansion of macro 'ff'
s+=w[i].ff;
^~
molecules.cpp:8:12: error: request for member 'first' in 'w.std::vector<int>::operator[](((std::vector<int>::size_type)i))', which is of non-class type '__gnu_cxx::__alloc_traits<std::allocator<int> >::value_type {aka int}'
#define ff first
^
molecules.cpp:22:21: note: in expansion of macro 'ff'
ans1.pub(mp(w[i].ff,w[i].ss));
^~
molecules.cpp:7:12: error: request for member 'second' in 'w.std::vector<int>::operator[](((std::vector<int>::size_type)i))', which is of non-class type '__gnu_cxx::__alloc_traits<std::allocator<int> >::value_type {aka int}'
#define ss second
^
molecules.cpp:22:29: note: in expansion of macro 'ss'
ans1.pub(mp(w[i].ff,w[i].ss));
^~
molecules.cpp:8:12: error: request for member 'first' in 'w.std::vector<int>::operator[](((std::vector<int>::size_type)i))', which is of non-class type '__gnu_cxx::__alloc_traits<std::allocator<int> >::value_type {aka int}'
#define ff first
^
molecules.cpp:24:29: note: in expansion of macro 'ff'
else if(s-ans1[0].ff+w[i].ff<=u){
^~
molecules.cpp:8:12: error: request for member 'first' in 'w.std::vector<int>::operator[](((std::vector<int>::size_type)i))', which is of non-class type '__gnu_cxx::__alloc_traits<std::allocator<int> >::value_type {aka int}'
#define ff first
^
molecules.cpp:25:23: note: in expansion of macro 'ff'
s-=ans1[0].ff-w[i].ff;
^~
molecules.cpp:26:4: error: 'asn1' was not declared in this scope
asn1.pop_front();
^~~~
molecules.cpp:26:4: note: suggested alternative: 'ans'
asn1.pop_front();
^~~~
ans
molecules.cpp:8:12: error: request for member 'first' in 'w.std::vector<int>::operator[](((std::vector<int>::size_type)i))', which is of non-class type '__gnu_cxx::__alloc_traits<std::allocator<int> >::value_type {aka int}'
#define ff first
^
molecules.cpp:27:21: note: in expansion of macro 'ff'
ans1.pub(mp(w[i].ff,w[i].ss));
^~
molecules.cpp:7:12: error: request for member 'second' in 'w.std::vector<int>::operator[](((std::vector<int>::size_type)i))', which is of non-class type '__gnu_cxx::__alloc_traits<std::allocator<int> >::value_type {aka int}'
#define ss second
^
molecules.cpp:27:29: note: in expansion of macro 'ss'
ans1.pub(mp(w[i].ff,w[i].ss));
^~
molecules.cpp:30:11: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(i=0;i<ans1.size();i++){
~^~~~~~~~~~~~