aboutsummaryrefslogtreecommitdiff
path: root/Data Structures/segment_tree.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Data Structures/segment_tree.cpp')
-rw-r--r--Data Structures/segment_tree.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/Data Structures/segment_tree.cpp b/Data Structures/segment_tree.cpp
index dd92117..a2b1d40 100644
--- a/Data Structures/segment_tree.cpp
+++ b/Data Structures/segment_tree.cpp
@@ -1,4 +1,4 @@
-template<typename T> struct segtree {
+template<typename T> struct seg_tree {
T seg[4*MN], tmp[4*MN];
inline T pull(const T & a, const T & b) { return a+b; }
inline void push(int l, int r, int n) {
@@ -46,4 +46,4 @@ template<typename T> struct segtree {
int m = (l+r)>>1;
return pull(query(a, b, l, m, n<<1), query(a, b, m+1, r, n<<1|1));
}
-}
+};