diff --git a/content/graph/BiconnectedComponents.h b/content/graph/BiconnectedComponents.h index 6b636089a..74af2af78 100644 --- a/content/graph/BiconnectedComponents.h +++ b/content/graph/BiconnectedComponents.h @@ -24,9 +24,8 @@ vector> ed; int Time; template int dfs(int at, int par, F& f) { - int me = num[at] = ++Time, e, y, top = me; - for (auto pa : ed[at]) if (pa.second != par) { - tie(y, e) = pa; + int me = num[at] = ++Time, top = me; + for (auto [y, e] : ed[at]) if (e != par) { if (num[y]) { top = min(top, num[y]); if (num[y] < me)