eastereggs.cpp:3:12: error: 'vector' does not name a type
3 | using vi = vector<int>;
| ^~~~~~
eastereggs.cpp:4:13: error: 'vector' does not name a type
4 | using vvi = vector<vi>;
| ^~~~~~
eastereggs.cpp:5:1: error: 'vvi' does not name a type
5 | vvi adj(513);
| ^~~
eastereggs.cpp:6:1: error: 'vi' does not name a type
6 | vi a;
| ^~
eastereggs.cpp: In function 'void dfs(int, int)':
eastereggs.cpp:9:5: error: 'a' was not declared in this scope
9 | a.pb(i);
| ^
eastereggs.cpp:10:16: error: 'adj' was not declared in this scope
10 | for (int c:adj[i]){
| ^~~
eastereggs.cpp: At global scope:
eastereggs.cpp:15:19: error: 'vector' has not been declared
15 | int findEgg(int n,vector<pair<int,int>>b)
| ^~~~~~
eastereggs.cpp:15:25: error: expected ',' or '...' before '<' token
15 | int findEgg(int n,vector<pair<int,int>>b)
| ^
eastereggs.cpp: In function 'int findEgg(int, int)':
eastereggs.cpp:17:31: error: 'adj' was not declared in this scope
17 | for (int i = 0;i<=512;i++)adj[i].clear();
| ^~~
eastereggs.cpp:18:5: error: 'a' was not declared in this scope
18 | a.clear();
| ^
eastereggs.cpp:19:32: error: 'adj' was not declared in this scope
19 | for (int i = 0;i<n - 1;i++)adj[b[i].first].pb(b[i].second);
| ^~~
eastereggs.cpp:19:36: error: 'b' was not declared in this scope
19 | for (int i = 0;i<n - 1;i++)adj[b[i].first].pb(b[i].second);
| ^
eastereggs.cpp:24:19: error: 'vi' was not declared in this scope
24 | if (query(vi<(a.begin(),a.begin() + mid)>)){
| ^~
eastereggs.cpp:24:50: error: expected primary-expression before ')' token
24 | if (query(vi<(a.begin(),a.begin() + mid)>)){
| ^
eastereggs.cpp:24:13: error: 'query' was not declared in this scope
24 | if (query(vi<(a.begin(),a.begin() + mid)>)){
| ^~~~~