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