We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d0559e1 commit 1013ae6Copy full SHA for 1013ae6
tests/library_checker_aizu_tests/data_structures/bit_ordered_set.test.cpp
@@ -54,7 +54,7 @@ int main() {
54
else cout << compress[res] << '\n';
55
} else {
56
x = get_compressed_idx(x);
57
- int res = bit.walk(bit.query(x - 1)) + 1;
+ int res = bit.walk(bit.query(x - 1) + 1);
58
if (res == ssize(bit.s)) cout << -1 << '\n';
59
60
}
0 commit comments