/in/foo.cc: In constructor 'Edge::Edge(int, int, int, int)':
/in/foo.cc:7:14: warning: 'Edge::f' will be initialized after [-Wreorder]
int u,v,next,f;
^
/in/foo.cc:7:9: warning: 'int Edge::next' [-Wreorder]
int u,v,next,f;
^~~~
/in/foo.cc:9:1: warning: when initialized here [-Wreorder]
Edge(int u,int v,int f,int next):u(u),v(v),f(f),next(next) {};
^~~~
/in/foo.cc: In function 'int dinic(int, int, int, int)':
/in/foo.cc:64:15: warning: 'p' may be used uninitialized in this function [-Wmaybe-uninitialized]
x=edge[stk[top]].u;
~~~~~~~^