eastereggs.cpp: In function 'int findEgg(int, std::vector<std::pair<int, int> >)':
eastereggs.cpp:73:18: error: 'nw' was not declared in this scope; did you mean 'w'?
73 | if(query(nw))
| ^~
| w
eastereggs.cpp:73:12: error: 'query' was not declared in this scope
73 | if(query(nw))
| ^~~~~
eastereggs.cpp:64:32: warning: unused variable 'ans' [-Wunused-variable]
64 | int l = 0, r = v.size()-1, ans = 0;
| ^~~
eastereggs.cpp: In function 'void open(std::string, std::string)':
eastereggs.cpp:32:12: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result]
32 | freopen((s + ".txt").c_str(), "r", stdin);
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
eastereggs.cpp:33:12: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result]
33 | freopen((f + ".txt").c_str(), "w", stdout);
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~