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:26:11: error: 'class std::vector<std::pair<int, int> >' has no member named 'first'
bridges.first.push_back(bridges.second);
^~~~~
eastereggs.cpp:26:35: error: 'class std::vector<std::pair<int, int> >' has no member named 'second'; did you mean 'cend'?
bridges.first.push_back(bridges.second);
^~~~~~
cend
eastereggs.cpp:27:11: error: 'class std::vector<std::pair<int, int> >' has no member named 'second'; did you mean 'cend'?
bridges.second.push_back(bridges.first);
^~~~~~
cend
eastereggs.cpp:27:36: error: 'class std::vector<std::pair<int, int> >' has no member named 'first'
bridges.second.push_back(bridges.first);
^~~~~
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;
^