We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 53a8846 commit 9795b5cCopy full SHA for 9795b5c
library/trees/shallowest_decomp_tree.hpp
@@ -23,7 +23,7 @@ void shallowest(auto& adj, auto f) {
23
dfs(dfs, 0, 0);
24
auto cpy(adj);
25
adj.assign(sz(adj), {});
26
- for (vi vec : order)
+ for (const vi& vec : order)
27
for (int v : vec) {
28
f(v);
29
for (int u : cpy[v]) adj[u].push_back(v);
0 commit comments