I have this code:
const int maxnodes = 5000; struct Edge { int to, rev; int f, cap; }; vector g[maxnodes];
This is qui
int nodes = maxnodes, src, dest;
This means all are integer and nodes is initialized with maxnodes
vector g[maxnodes] is the array of vector.
vector g[maxnodes]
Vector is like a dynamic array. g[x] will be pointing to a vector. g[x][y] will point to a Edge .