traffic.cpp:9:15: error: conflicting declaration 'int v [1000001]'
int v[1 + nmax], sum[1 + nmax];
^
traffic.cpp:8:6: note: previous declaration as 'char v [2000001]'
char v[1 + nmax * 2];
^
traffic.cpp: In function 'void dfs(int, int)':
traffic.cpp:16:20: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int h = 0; h < g[node].size(); h++){
~~^~~~~~~~~~~~~~~~
traffic.cpp: In function 'int eval(int)':
traffic.cpp:27:20: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int h = 0; h < g[node].size(); h++){
~~^~~~~~~~~~~~~~~~
traffic.cpp: In function 'int LocateCentre(int, std::vector<int>, std::vector<int>, std::vector<int>)':
traffic.cpp:50:10: error: 'candidate' was not declared in this scope
return candidate.second;
^~~~~~~~~
traffic.cpp:50:10: note: suggested alternative: 'random_data'
return candidate.second;
^~~~~~~~~
random_data