Problem race
User PlayVoltz
Submission Time 2023-10-27 15:24:13
Score 0
Max Time N/A
Max Memory N/A

Compile Error

race.cpp: In function ‘int centroidfind(int, int, int)’:
race.cpp:26:21: error: ‘subtree’ was not declared in this scope
26 | if (v.first!=p && subtree[v.first]>size/2)return centroidfind(v.first, u, size);
| ^~~~~~~
race.cpp: In function ‘void build(int, int, int)’:
race.cpp:50:11: error: ‘centroid’ was not declared in this scope; did you mean ‘centroidfind’?
50 | int c=centroid(x,p,sub[x]);
| ^~~~~~~~
| centroidfind