eastereggs.cpp: In function 'int findEgg(int, std::vector<std::pair<int, int> >)':
eastereggs.cpp:20:26: error: 'n' was not declared in this scope
20 | for (int i = 0; i <= n; i++) {
| ^
eastereggs.cpp:28:20: error: 'n' was not declared in this scope
28 | int l = 0, r = n - 1;
| ^
eastereggs.cpp:33:9: error: 'lst' was not declared in this scope
33 | lst.clear();
| ^~~
eastereggs.cpp:39:28: warning: pointer to a function used in arithmetic [-Wpointer-arith]
39 | ans = query[mid];
| ^
eastereggs.cpp:39:28: error: invalid conversion from 'int (*)(std::vector<int>)' to 'int' [-fpermissive]
39 | ans = query[mid];
| ~~~~~~~~~^
| |
| int (*)(std::vector<int>)