eastereggs.cpp: In function 'void dfs(int, int)':
eastereggs.cpp:14:10: error: 'mid' was not declared in this scope
if(cnt==mid) return;
^~~
eastereggs.cpp:17:11: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(i=0;i<graph[start].size();++i)
~^~~~~~~~~~~~~~~~~~~~
eastereggs.cpp: In function 'int findEgg(int, std::vector<std::pair<int, int> >)':
eastereggs.cpp:41:3: error: 'mid' was not declared in this scope
mid = curr/2;
^~~
eastereggs.cpp:46:13: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(i=0;i<node.size();++i)
~^~~~~~~~~~~~
eastereggs.cpp:54:13: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(i=0;i<node.size();++i)
~^~~~~~~~~~~~
eastereggs.cpp:28:8: warning: unused variable 'j' [-Wunused-variable]
int i,j;
^
eastereggs.cpp:71:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^