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;
Here nodes, src, dest are all integers where nodes is initialized with maxnodes others are not initialized.
vector g[maxnodes];
As @milleniumbug mentioned g is a C array of vectors:
g[u][j] will give i th element of u th element of array g. As u the element of g is a vector where you can access its members using [] operator.