eastereggs.cpp: In function 'int findegg(int, std::vector<std::pair<int, int> >)':
eastereggs.cpp:25:17: error: request for member 'size' in 'e', which is of non-class type 'int'
25 | int l=0,e=e.size()-1;
| ^~~~
eastereggs.cpp:26:16: error: 'r' was not declared in this scope
26 | while (l < r)
| ^
eastereggs.cpp:30:54: error: invalid types 'int[int]' for array subscript
30 | for (int i = 0; i <= mid; i++) nw.push_back(e[i]);
| ^
eastereggs.cpp:34:13: error: invalid types 'int[int]' for array subscript
34 | return e[l];
| ^