eastereggs.cpp: In function 'void findEgg(int, std::vector<std::pair<int, int> >)':
eastereggs.cpp:22:6: error: ambiguating new declaration of 'void findEgg(int, std::vector<std::pair<int, int> >)'
void findEgg(int N, vector<pair<int, int>> bridges){
^~~~~~~
In file included from eastereggs.cpp:2:0:
grader.h:5:5: note: old declaration 'int findEgg(int, std::vector<std::pair<int, int> >)'
int findEgg(int N, vector < pair < int, int > > bridges);
^~~~~~~
eastereggs.cpp:37:21: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i = 0; i < check.size(); i++) ck[check[i]] = 1;
~~^~~~~~~~~~~~~~
eastereggs.cpp:41:21: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i = 0; i < check.size(); i++) ck[check[i]] = 0;
~~^~~~~~~~~~~~~~
eastereggs.cpp:45:47: error: return-statement with a value, in function returning 'void' [-fpermissive]
for(int i = 1; i <= n; i++) if(ck[i]) return i;
^