From dba806ca60b06611a164283c9bc44c3f3a1f4a22 Mon Sep 17 00:00:00 2001 From: John Law Date: Wed, 9 Oct 2019 00:02:29 +0800 Subject: [PATCH] Update bit.cpp --- Range queries/bit.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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);