diff options
Diffstat (limited to 'Graph/centroid.cpp')
-rw-r--r-- | Graph/centroid.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Graph/centroid.cpp b/Graph/centroid.cpp index 32d5a19..4dd5ac1 100644 --- a/Graph/centroid.cpp +++ b/Graph/centroid.cpp @@ -1,6 +1,6 @@ namespace centroid { - int sz[MN], cpar[MN]; - bitset<MN> vis; + int sz[MX], cpar[MX]; + bitset<MX> vis; void dfs(vector<int> * G, int u, int p = 0) { sz[u] = 1; for (int v : G[u]) if (v != p && !vis[v]) dfs(G, v, u), sz[u] += sz[v]; |