eastereggs.cpp: In function 'void dfs(int)':
eastereggs.cpp:8:5: error: 'vis' was not declared in this scope
8 | vis[x] = 1;
| ^~~
eastereggs.cpp:9:9: error: 'class std::vector<int>' has no member named 'pb'
9 | vec.pb(x);
| ^~
eastereggs.cpp: In function 'int findEgg(int, std::vector<std::pair<int, int> >)':
eastereggs.cpp:21:13: error: 'struct std::pair<int, int>' has no member named 'ss'
21 | v[h.ss - 1].pb(h.ff - 1);
| ^~
eastereggs.cpp:21:26: error: 'struct std::pair<int, int>' has no member named 'ff'
21 | v[h.ss - 1].pb(h.ff - 1);
| ^~
eastereggs.cpp:26:20: error: 'n' was not declared in this scope
26 | int l = 0, r = n - 1, ans = n - 1;
| ^
eastereggs.cpp:31:18: error: 'class std::vector<int>' has no member named 'pb'
31 | vec1.pb(vec[i]);
| ^~
eastereggs.cpp:37:13: error: 'ans' was not declared in this scope; did you mean 'abs'?
37 | ans = mid;
| ^~~
| abs
eastereggs.cpp:43:13: error: 'ans' was not declared in this scope; did you mean 'abs'?
43 | cout << ans + 1 << endl;
| ^~~
| abs
eastereggs.cpp:44:5: error: return-statement with no value, in function returning 'int' [-fpermissive]
44 | return ;
| ^~~~~~