eastereggs.cpp: In function 'int main()':
eastereggs.cpp:37:9: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
37 | freopen ("input", "r", stdin);
| ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~
eastereggs.cpp:40:7: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
40 | scanf ("%d", &N);
| ~~~~~~^~~~~~~~~~
eastereggs.cpp:46:11: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
46 | scanf ("%d %d", &x, &y);
| ~~~~~~^~~~~~~~~~~~~~~~~
eastereggs.cpp:51:7: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
51 | scanf ("%d", &Queries);
| ~~~~~~^~~~~~~~~~~~~~~~
eastereggs.cpp:54:11: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
54 | scanf ("%d", &X), cntQ = 0;
| ~~~~~~^~~~~~~~~~
/tmp/ccH3cyiJ.o: In function `query(std::vector<int, std::allocator<int> >)':
grader.cpp:(.text+0x0): multiple definition of `query(std::vector<int, std::allocator<int> >)'
/tmp/cccn0jLO.o:eastereggs.cpp:(.text+0x40): first defined here
/tmp/ccH3cyiJ.o: In function `main':
grader.cpp:(.text.startup+0x0): multiple definition of `main'
/tmp/cccn0jLO.o:eastereggs.cpp:(.text.startup+0x0): first defined here
/tmp/cccn0jLO.o: In function `main':
eastereggs.cpp:(.text.startup+0x253): undefined reference to `findEgg(int, std::vector<std::pair<int, int>, std::allocator<std::pair<int, int> > >)'
/tmp/ccH3cyiJ.o: In function `main':
grader.cpp:(.text.startup+0x1e1): undefined reference to `findEgg(int, std::vector<std::pair<int, int>, std::allocator<std::pair<int, int> > >)'
collect2: error: ld returned 1 exit status