eastereggs.cpp: In function 'void dfs(int, int)':
eastereggs.cpp:21:23: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int i = 0; i < adj[u].size(); i++){
~~^~~~~~~~~~~~~~~
eastereggs.cpp: In function 'int findEgg(int, std::vector<std::pair<int, int> >)':
eastereggs.cpp:30:5: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
for (int i = 1; i <= n; i++) ck[i] = 1; cnt = n;
^~~
eastereggs.cpp:30:45: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for'
for (int i = 1; i <= n; i++) ck[i] = 1; cnt = n;
^~~
eastereggs.cpp:42:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int i = 0; i < ans.size(); i++) nw[ans[i]] = ck[ans[i]];
~~^~~~~~~~~~~~
eastereggs.cpp:47:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int i = 0; i < ans.size(); i++) ck[ans[i]] = 0;
~~^~~~~~~~~~~~
eastereggs.cpp:52:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^