Skip to content

Commit 31024fe

Browse files
committed
fix
1 parent fc81660 commit 31024fe

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

tests/library_checker_aizu_tests/trees/cd_count_paths_per_length.test.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ vector<ll> count_paths_per_length(vector<vi> adj) {
3232
sort(all(child_depths),
3333
[&](auto& x, auto& y) { return sz(x) < sz(y); });
3434
vector total_depth(1, 1.0);
35-
for (auto& cnt_depth : child_depths) {
35+
for (const auto& cnt_depth : child_depths) {
3636
auto prod = conv(total_depth, cnt_depth);
3737
rep(i, 1, sz(prod)) num_paths[i] += llround(prod[i]);
3838
total_depth.resize(sz(cnt_depth));

0 commit comments

Comments
 (0)