Skip to content

Commit 9795b5c

Browse files
authored
Update shallowest_decomp_tree.hpp
1 parent 53a8846 commit 9795b5c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

library/trees/shallowest_decomp_tree.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ void shallowest(auto& adj, auto f) {
2323
dfs(dfs, 0, 0);
2424
auto cpy(adj);
2525
adj.assign(sz(adj), {});
26-
for (vi vec : order)
26+
for (const vi& vec : order)
2727
for (int v : vec) {
2828
f(v);
2929
for (int u : cpy[v]) adj[u].push_back(v);

0 commit comments

Comments
 (0)