Skip to content

Commit 80eacd5

Browse files
authored
Update shallowest_decomp_tree.hpp
1 parent ae4132b commit 80eacd5

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
@@ -22,7 +22,7 @@ void shallowest(auto& adj, auto f) {
2222
};
2323
dfs(dfs, 0, 0);
2424
auto cpy(adj);
25-
adj.assign(n, {});
25+
adj.assign(sz(adj), {});
2626
for (vi vec : order)
2727
for (int v : vec) {
2828
f(v);

0 commit comments

Comments
 (0)