diff options
author | Ta180m | 2020-04-07 19:22:13 -0500 |
---|---|---|
committer | Ta180m | 2020-04-07 19:22:13 -0500 |
commit | c60aa3ed4e6e64dfe2d557dbfb75423245eadd7e (patch) | |
tree | 9b5801f6c722465b959de2f87e382a23cbf4259b /Data Structures | |
parent | 97ebf7dbc3b05de49baaca1a543250689efc44d2 (diff) |
bugfix
Diffstat (limited to 'Data Structures')
-rw-r--r-- | Data Structures/segment_tree_v2.cpp | 2 |
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 { |