diff --git a/Range queries/bit.cpp b/Range queries/bit.cpp index 0a2ba9720..449177a77 100644 --- a/Range queries/bit.cpp +++ b/Range queries/bit.cpp @@ -6,7 +6,7 @@ using namespace std; class Bit { int n; - vector < int > bit; + vector bit; inline int offset(int x) { return (x & (-x)); @@ -14,7 +14,7 @@ class Bit public: - Bit(vector < int > & arr) + Bit(vector& arr) { n = arr.size(); bit.assign(n + 1, 0); @@ -62,7 +62,7 @@ class Bit int main() { int n = 5; - vector arr = { 1, 2, 3, 4, 5 }; + vector arr = { 1, 2, 3, 4, 5 }; Bit x(arr); assert(x.sum_range(0, 0) == 1);