teams.cpp:8:8: error: 'vector' was not declared in this scope
8 | vector<vector<int> > vect;
| ^~~~~~
teams.cpp:8:8: error: 'vector' was not declared in this scope
teams.cpp:8:8: error: 'vector' was not declared in this scope
teams.cpp:8:8: error: 'vector' was not declared in this scope
teams.cpp:8:8: error: 'vector' was not declared in this scope
teams.cpp:8:8: error: 'vector' was not declared in this scope
teams.cpp:8:8: error: 'vector' was not declared in this scope
teams.cpp:8:8: error: 'vector' was not declared in this scope
teams.cpp:8:8: error: 'vector' was not declared in this scope
teams.cpp:8:1: error: 'vector' does not name a type
8 | vector<vector<int> > vect;
| ^~~~~~
teams.cpp:12:9: error: 'vector' does not name a type
12 | vector<int> val;
| ^~~~~~
teams.cpp: In constructor 'node::node(int, int)':
teams.cpp:20:34: error: 'struct node' has no member named 'val'
20 | merge(l->val.begin(), l->val.end(), r->val.begin(), r->val.end(), back_inserter(val));
| ^~~
teams.cpp:20:50: error: 'struct node' has no member named 'val'
20 | merge(l->val.begin(), l->val.end(), r->val.begin(), r->val.end(), back_inserter(val));
| ^~~
teams.cpp:20:64: error: 'struct node' has no member named 'val'
20 | merge(l->val.begin(), l->val.end(), r->val.begin(), r->val.end(), back_inserter(val));
| ^~~
teams.cpp:20:80: error: 'struct node' has no member named 'val'
20 | merge(l->val.begin(), l->val.end(), r->val.begin(), r->val.end(), back_inserter(val));
| ^~~
teams.cpp:20:105: error: 'val' was not declared in this scope
20 | merge(l->val.begin(), l->val.end(), r->val.begin(), r->val.end(), back_inserter(val));
| ^~~
teams.cpp:20:91: error: 'back_inserter' was not declared in this scope
20 | merge(l->val.begin(), l->val.end(), r->val.begin(), r->val.end(), back_inserter(val));
| ^~~~~~~~~~~~~
teams.cpp:20:25: error: 'merge' was not declared in this scope
20 | merge(l->val.begin(), l->val.end(), r->val.begin(), r->val.end(), back_inserter(val));
| ^~~~~
teams.cpp:22:22: error: 'val' was not declared in this scope
22 | else val=vect[s], sort(val.begin(), val.end());
| ^~~
teams.cpp:22:26: error: 'vect' was not declared in this scope
22 | else val=vect[s], sort(val.begin(), val.end());
| ^~~~
teams.cpp:22:35: error: 'sort' was not declared in this scope; did you mean 'short'?
22 | else val=vect[s], sort(val.begin(), val.end());
| ^~~~
| short
teams.cpp: In member function 'int node::query(int, int, int)':
teams.cpp:26:48: error: 'val' was not declared in this scope
26 | if (s==left && e==right)return val.size()-(lower_bound(val.begin(), val.end(), v)-val.begin());
| ^~~
teams.cpp:26:60: error: 'lower_bound' was not declared in this scope
26 | if (s==left && e==right)return val.size()-(lower_bound(val.begin(), val.end(), v)-val.begin());
| ^~~~~~~~~~~
teams.cpp: In function 'void init(int, int*, int*)':
teams.cpp:35:9: error: 'vect' was not declared in this scope
35 | vect.resize(n+1);
| ^~~~
teams.cpp: In function 'int can(int, int*)':
teams.cpp:41:9: error: 'sort' was not declared in this scope; did you mean 'short'?
41 | sort(ord, ord+m);
| ^~~~
| short
teams.cpp:53:31: error: 'max' was not declared in this scope
53 | extra=max(0, extra-st->query(low+1, low+1, ord[i])+st->query(low+1, low+1, ord[i+1]));
| ^~~