pipes.cpp: In function 'void dfs(int, int, int)':
pipes.cpp:10:15: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i=0;i<g[s].size();i++)
~^~~~~~~~~~~~
pipes.cpp:19:28: error: void value not ignored as it ought to be
int y=dfs(g[s][i],du+1,s);
^
pipes.cpp:20:7: error: 'minx' was not declared in this scope
if(minx[g[s][i]]>du) printf("%d %d\n",s,g[s][i]);
^~~~
pipes.cpp:20:7: note: suggested alternative: 'uint'
if(minx[g[s][i]]>du) printf("%d %d\n",s,g[s][i]);
^~~~
uint
pipes.cpp: In function 'int main()':
pipes.cpp:30:7: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d",&n,&m);
~~~~~^~~~~~~~~~~~~~
pipes.cpp:34:8: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d",&t1,&t2);
~~~~~^~~~~~~~~~~~~~~~