traffic.cpp:10:16: error: 'MAXN' was not declared in this scope
int optValue = MAXN;
^~~~
traffic.cpp:10:16: note: suggested alternative: 'MXN'
int optValue = MAXN;
^~~~
MXN
traffic.cpp:12:9: error: 'MAXN' was not declared in this scope
int sub[MAXN];
^~~~
traffic.cpp:12:9: note: suggested alternative: 'MXN'
int sub[MAXN];
^~~~
MXN
traffic.cpp:14:19: error: 'MAXN' was not declared in this scope
vector< int > adj[MAXN];
^~~~
traffic.cpp:14:19: note: suggested alternative: 'MXN'
vector< int > adj[MAXN];
^~~~
MXN
traffic.cpp: In function 'void DFSInit(int, int)':
traffic.cpp:18:22: error: 'adj' was not declared in this scope
for(int i = 0 ; i < adj[cur].size() ; i++)
^~~
traffic.cpp:26:3: error: 'sub' was not declared in this scope
sub[cur] += sub[viz];
^~~
traffic.cpp: In function 'void DFSCalculate(int, int)':
traffic.cpp:32:21: error: 'sub' was not declared in this scope
int curValue = n - sub[cur];
^~~
traffic.cpp:34:22: error: 'adj' was not declared in this scope
for(int i = 0 ; i < adj[cur].size() ; i++)
^~~
traffic.cpp:48:22: error: 'adj' was not declared in this scope
for(int i = 0 ; i < adj[cur].size() ; i++)
^~~
traffic.cpp: In function 'int LocateCentre(int, int*, int*, int*)':
traffic.cpp:62:3: error: 'sub' was not declared in this scope
sub[i] = P[i];
^~~
traffic.cpp:66:3: error: 'adj' was not declared in this scope
adj[ S[i] ].push_back( D[i] );
^~~