From 61cac9c0febbb5440b99e22770d917bf3a63c405 Mon Sep 17 00:00:00 2001 From: MZuenni Date: Wed, 11 Jan 2023 11:15:50 +0100 Subject: dont use .size() --- datastructures/lazyPropagation1.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'datastructures/lazyPropagation1.cpp') diff --git a/datastructures/lazyPropagation1.cpp b/datastructures/lazyPropagation1.cpp index 9fdffb1..5f0049f 100644 --- a/datastructures/lazyPropagation1.cpp +++ b/datastructures/lazyPropagation1.cpp @@ -5,7 +5,7 @@ vector d(N, updateFlag); void apply(int p, ll value) { tree[p] += value; - if (p < tree.size()/2) d[p] += value; + if (p < sz(tree)/2) d[p] += value; } void build(int p) { -- cgit v1.2.3