/in/foo.cc: In function 'double minimum_cost_flow(int, int)':
/in/foo.cc:93:9: error: request for member 'v' in 'p', which is of pointer type 'node*' (maybe you meant to use '->' ?)
 if ((p).v>0&&dist[u](*p).c>dist[(*p).t]){
         ^
/in/foo.cc:93:24: error: expression cannot be used as a function
 if ((p).v>0&&dist[u](*p).c>dist[(*p).t]){
                        ^
/in/foo.cc:94:10: error: request for member 't' in 'p', which is of pointer type 'node*' (maybe you meant to use '->' ?)
 dist[(p).t]=dist[u](*p).c;
          ^
/in/foo.cc:94:23: error: expression cannot be used as a function
 dist[(p).t]=dist[u](*p).c;
                       ^
/in/foo.cc:101:7: error: request for member 'next' in 'p', which is of pointer type 'node*' (maybe you meant to use '->' ?)
 p=(p).next;
       ^~~~