eastereggs.cpp: In function 'void split(int, int, int, std::vector<int>&, std::vector<int>&)':
eastereggs.cpp:42:17: error: invalid initialization of reference of type 'std::vector<int>&' from expression of type 'std::ios_base&(std::ios_base&)'
42 | addall(y, x, left);
| ^~~~
eastereggs.cpp:27:42: note: in passing argument 3 of 'void addall(int, int, std::vector<int>&)'
27 | void addall(int x, int pre, vector<int>& A){
| ~~~~~~~~~~~~~^
eastereggs.cpp:46:17: error: invalid initialization of reference of type 'std::vector<int>&' from expression of type 'std::ios_base&(std::ios_base&)'
46 | addall(y, x, right);
| ^~~~~
eastereggs.cpp:27:42: note: in passing argument 3 of 'void addall(int, int, std::vector<int>&)'
27 | void addall(int x, int pre, vector<int>& A){
| ~~~~~~~~~~~~~^
eastereggs.cpp: In function 'int findEgg(int, std::vector<std::pair<int, int> >)':
eastereggs.cpp:81:22: error: 'n' was not declared in this scope
81 | for(int i = 1; i <= n; i++) arr.pb(i);
| ^