Skip to content

Commit 891327a

Browse files
committed
fix
1 parent f7a9f8f commit 891327a

3 files changed

Lines changed: 5 additions & 5 deletions

File tree

tests/library_checker_aizu_tests/data_structures/bit.test.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ int main() {
5858
}
5959
return 1;
6060
};
61-
assert(bit.walk(sum) == st.find_first(0, n, f));
61+
assert(bit.walk2(sum) == st.find_first(0, n, f));
6262
}
6363
return 0;
6464
}

tests/library_checker_aizu_tests/data_structures/bit_ordered_set.test.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ int main() {
4040
x = get_compressed_idx(x);
4141
if (bit.query(x, x) == 1) bit.update(x, -1);
4242
} else if (type == 2) {
43-
int res = bit.walk(x);
43+
int res = bit.walk2(x);
4444
if (res == -1 || res == ssize(compress))
4545
cout << -1 << '\n';
4646
else cout << compress[res] << '\n';
@@ -49,12 +49,12 @@ int main() {
4949
cout << bit.query(x) << '\n';
5050
} else if (type == 4) {
5151
x = get_compressed_idx(x);
52-
int res = bit.walk(bit.query(x));
52+
int res = bit.walk2(bit.query(x));
5353
if (res == -1) cout << -1 << '\n';
5454
else cout << compress[res] << '\n';
5555
} else {
5656
x = get_compressed_idx(x);
57-
int res = bit.walk(bit.query(x - 1) + 1);
57+
int res = bit.walk2(bit.query(x - 1) + 1);
5858
if (res == ssize(bit.s)) cout << -1 << '\n';
5959
else cout << compress[res] << '\n';
6060
}

tests/library_checker_aizu_tests/handmade_tests/seg_tree_find.test.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ int main() {
3838
rngs.push_back({tl, tr, 1});
3939
return 1;
4040
};
41-
int pos = min(bit.walk(bit.query(l) + sum), r);
41+
int pos = min(bit.walk2(bit.query(l) + sum), r);
4242
reset();
4343
assert(pos == seg.find_first(l, r, f));
4444
assert(!empty(rngs));

0 commit comments

Comments
 (0)