Compiler output
prog.cpp: In function 'void dfs1(int)':
prog.cpp:17:11: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(i=0;i!=gr[x].size();i++)
^
prog.cpp:15:8: warning: unused variable 'j' [-Wunused-variable]
int i,j;
^
prog.cpp: In function 'void dfs2(int)':
prog.cpp:31:11: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(i=0;i!=gr[x].size();i++)
^
prog.cpp: In function 'int main()':
prog.cpp:58:15: warning: suggest braces around empty body in an 'if' statement [-Wempty-body]
if(sum[i]<0);
^
prog.cpp:40:8: warning: unused variable 'j' [-Wunused-variable]
int i,j,x,y,z;
^