traffic.cpp:9:16: error: 'MAXN' was not declared in this scope
int optValue = MAXN;
^~~~
traffic.cpp:9:16: note: suggested alternative: 'MXN'
int optValue = MAXN;
^~~~
MXN
traffic.cpp:11:9: error: 'MAXN' was not declared in this scope
int sub[MAXN];
^~~~
traffic.cpp:11:9: note: suggested alternative: 'MXN'
int sub[MAXN];
^~~~
MXN
traffic.cpp:13:19: error: 'MAXN' was not declared in this scope
vector< int > adj[MAXN];
^~~~
traffic.cpp:13:19: note: suggested alternative: 'MXN'
vector< int > adj[MAXN];
^~~~
MXN
traffic.cpp: In function 'void DFSInit(int, int)':
traffic.cpp:17:22: error: 'adj' was not declared in this scope
for(int i = 0 ; i < adj[cur].size() ; i++)
^~~
traffic.cpp:25:3: error: 'sub' was not declared in this scope
sub[cur] += sub[viz];
^~~
traffic.cpp: In function 'void DFSCalculate(int, int)':
traffic.cpp:31:17: error: 'n' was not declared in this scope
int curValue = n - sub[cur];
^
traffic.cpp:31:21: error: 'sub' was not declared in this scope
int curValue = n - sub[cur];
^~~
traffic.cpp:33:22: error: 'adj' was not declared in this scope
for(int i = 0 ; i < adj[cur].size() ; i++)
^~~
traffic.cpp:47: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:59:3: error: 'sub' was not declared in this scope
sub[i] = P[i];
^~~
traffic.cpp:63:3: error: 'adj' was not declared in this scope
adj[ S[i] ].push_back( D[i] );
^~~