I am given a function int maxflow(n, int *cap, int *flow, int *residual) which asks me to write a maximum flow function.
int residual[4*k+2][4*k+2]; <
int residual[4*k+2][4*k+2];