summaryrefslogtreecommitdiff
path: root/content
diff options
context:
space:
mode:
authorYidi <noob999noob999@gmail.com>2024-09-02 16:54:30 +0200
committerYidi <noob999noob999@gmail.com>2024-09-02 16:54:30 +0200
commit24db7e1f387b458e8a48c3b773860e32f897017c (patch)
tree63fbe095cf348ad38a557a0340d4b2db52ef73db /content
parent96f899b7350fe05232d906478e9ca9d26f558969 (diff)
remove inconsistent reference
Diffstat (limited to 'content')
-rw-r--r--content/graph/reroot.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/content/graph/reroot.cpp b/content/graph/reroot.cpp
index cd63b3d..379c839 100644
--- a/content/graph/reroot.cpp
+++ b/content/graph/reroot.cpp
@@ -13,7 +13,7 @@ struct Reroot {
T dfs0(int v, int from = -1) {
T val = E;
- for (auto& [u, w] : adj[v]) {
+ for (auto [u, w] : adj[v]) {
if (u == from) continue;
val = comb(val, takeChild(v, u, w, dfs0(u, v)));
}