eastereggs.cpp: In function 'int findEgg(int, std::vector<std::pair<int, int> >)':
eastereggs.cpp:19:20: error: 'n' was not declared in this scope
19 | for(int i=1;i<=n;i++)g[i].clear()
| ^
eastereggs.cpp:19:38: error: expected ';' before 'int'
19 | for(int i=1;i<=n;i++)g[i].clear()
| ^
| ;
20 | int st=1,dr=N-1,m,poz=N;
| ~~~
eastereggs.cpp:27:11: error: 'st' was not declared in this scope; did you mean 'std'?
27 | while(st<=dr)
| ^~
| std
eastereggs.cpp:27:15: error: 'dr' was not declared in this scope
27 | while(st<=dr)
| ^~
eastereggs.cpp:29:9: error: 'm' was not declared in this scope
29 | m=st+(dr-st)/2;
| ^
eastereggs.cpp:32:13: error: 'poz' was not declared in this scope; did you mean 'pow'?
32 | poz=m;
| ^~~
| pow
eastereggs.cpp:38:14: error: 'poz' was not declared in this scope; did you mean 'pow'?
38 | return p[poz];
| ^~~
| pow