summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYidi <noob999noob999@gmail.com>2024-06-27 08:55:57 +0200
committerYidi <noob999noob999@gmail.com>2024-06-27 08:55:57 +0200
commit366ff0a4ba0c94f5cdc2cbd4e2c991ad0b544522 (patch)
tree1e9baeee17986adba59ae00b1e91d94ce47eba50
parentbd1cf56201ea24cdb8808a3fc82f9e2128f1cef0 (diff)
fix
-rw-r--r--datastructures/lazyPropagation.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/datastructures/lazyPropagation.cpp b/datastructures/lazyPropagation.cpp
index 7811220..0fe7bbe 100644
--- a/datastructures/lazyPropagation.cpp
+++ b/datastructures/lazyPropagation.cpp
@@ -65,7 +65,7 @@ struct SegTree {
ll lower_bound(int l, int r, T x) {
l += n, r += n;
push(l), push(r - 1);
- int a[32] = {}, lp = 0, rp = 32;
+ int a[64] = {}, lp = 0, rp = 64;
for (; l < r; l /= 2, r /= 2) {
if (l&1) a[lp++] = l++;
if (r&1) a[--rp] = --r;