molecules.cpp:21:8: error: 'pii' was not declared in this scope
vector<pii>v;
^~~
molecules.cpp:21:11: error: template argument 1 is invalid
vector<pii>v;
^
molecules.cpp:21:11: error: template argument 2 is invalid
molecules.cpp: In function 'std::vector<int> find_subset(int, int, std::vector<int>)':
molecules.cpp:7:12: error: request for member 'push_back' in 'v', which is of non-class type 'int'
#define pb push_back
^
molecules.cpp:24:29: note: in expansion of macro 'pb'
for(int i=0; i<n; i++)v.pb({w[i], i});;
^~
molecules.cpp:29:20: error: invalid types 'int[int]' for array subscript
tren += v[i].xx;
^
molecules.cpp:39:24: error: invalid types 'int[int]' for array subscript
tren += v[i - 1].xx;
^
molecules.cpp:73:43: error: invalid types 'int[int]' for array subscript
for(int i=1; i<=le; i++)rez.pb(v[i - 1].yy);
^
molecules.cpp:74:43: error: invalid types 'int[int]' for array subscript
for(int i=n-1; i>=koji; i--)rez.pb(v[i].yy);
^