aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnthony Wang2020-07-25 20:37:36 -0500
committerAnthony Wang2020-07-25 20:37:36 -0500
commit97007357aa51e2884e1f23b13654e5aad885aa8d (patch)
tree3547f3ee33c9e4d35eaff4e588625d664c4ab317
parent72a56cbea444a9c600fca6de0430b6bd25f24435 (diff)
Fixed typo
-rw-r--r--Data Structures/segment_tree.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Data Structures/segment_tree.cpp b/Data Structures/segment_tree.cpp
index d1974b8..56f0da9 100644
--- a/Data Structures/segment_tree.cpp
+++ b/Data Structures/segment_tree.cpp
@@ -5,7 +5,7 @@ inline void push(int l, int r, int n) {
if (l != r) tmp[n << 1] += tmp[n], tmp[n << 1 | 1] += tmp[n];
tmp[n] = 0;
}
-void update(int x, T v, int l = 0, int r = -1, int n = 1) {
+void update(int x, int v, int l = 0, int r = -1, int n = 1) {
if (r == -1) r = N - 1;
if (l == r) seg[n] += v;
else {