aboutsummaryrefslogtreecommitdiff
path: root/Data Structures
diff options
context:
space:
mode:
authorTa180m2020-04-07 19:22:13 -0500
committerTa180m2020-04-07 19:22:13 -0500
commitc60aa3ed4e6e64dfe2d557dbfb75423245eadd7e (patch)
tree9b5801f6c722465b959de2f87e382a23cbf4259b /Data Structures
parent97ebf7dbc3b05de49baaca1a543250689efc44d2 (diff)
bugfix
Diffstat (limited to 'Data Structures')
-rw-r--r--Data Structures/segment_tree_v2.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Data Structures/segment_tree_v2.cpp b/Data Structures/segment_tree_v2.cpp
index 9c10532..0fc15ba 100644
--- a/Data Structures/segment_tree_v2.cpp
+++ b/Data Structures/segment_tree_v2.cpp
@@ -56,7 +56,7 @@ public:
push(l, r, n);
if (l > b || r < a) return;
if (l >= a && r <= b) {
- tmp[n] = v;
+ tmp[n] += v;
push(l, r, n);
}
else {