Skip to content

Commit

Permalink
h=1
Browse files Browse the repository at this point in the history
  • Loading branch information
KowerKoint committed Oct 5, 2024
1 parent 362265b commit 7a177ab
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions compile_flags.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
-std=gnu++20
2 changes: 1 addition & 1 deletion cpp/tree.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -374,7 +374,7 @@ struct DoublingClimbTree : private RootedTree<Cost> {
private:
void build() {
int n = this->n;
h = 0;
h = 1;
while((1 << h) < n) h++;
doubling_par.assign(h, std::vector<int>(n, -1));
for(int i = 0; i < n; i++) doubling_par[0][i] = this->par[i];
Expand Down

0 comments on commit 7a177ab

Please sign in to comment.