pipes.cpp: In function 'int 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: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:25:1: warning: no return statement in function returning non-void [-Wreturn-type]
}
^
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);
~~~~~^~~~~~~~~~~~~~~~