indcyc.cpp: In function 'void dfs1(int, int, int)':
indcyc.cpp:11:20: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int i = 0; i < edge[w].size(); i++) {
~~^~~~~~~~~~~~~~~~
indcyc.cpp: In function 'int dfs2(int)':
indcyc.cpp:24:20: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int i = 0; i < edge[w].size(); i++) {
~~^~~~~~~~~~~~~~~~
indcyc.cpp: In function 'int main()':
indcyc.cpp:45:17: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (j = 0; j < edge[i].size(); j++) ck[edge[i][j]] = (depth[edge[i][j]] - depth[i] >= 3);
~~^~~~~~~~~~~~~~~~
indcyc.cpp:48:8: warning: unused variable 'sp' [-Wunused-variable]
int sp = 1;
^~
indcyc.cpp:50:17: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (j = 0; j < edge[i].size(); j++) ck[edge[i][j]] = 0;
~~^~~~~~~~~~~~~~~~
indcyc.cpp:33:17: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
int n, m; scanf("%d%d", &n, &m);
~~~~~^~~~~~~~~~~~~~~~
indcyc.cpp:36:18: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
int s, e; scanf("%d%d", &s, &e);
~~~~~^~~~~~~~~~~~~~~~