From 1880ccb6d85c6eb79e724593457877bab431951c Mon Sep 17 00:00:00 2001 From: Gloria Mundi Date: Sat, 16 Nov 2024 21:17:29 +0100 Subject: get rid of all() and sz() --- content/datastructures/sparseTable.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'content/datastructures/sparseTable.cpp') diff --git a/content/datastructures/sparseTable.cpp b/content/datastructures/sparseTable.cpp index 5e84236..44989ab 100644 --- a/content/datastructures/sparseTable.cpp +++ b/content/datastructures/sparseTable.cpp @@ -7,10 +7,10 @@ struct SparseTable { } void init(vector &vec) { - int n = sz(vec); + int n = ssize(vec); a = vec.data(); st.assign(__lg(n) + 1, vector(n)); - iota(all(st[0]), 0); + iota(begin(st[0]), end(st[0]), 0); for (int j = 0; (2 << j) <= n; j++) { for (int i = 0; i + (2 << j) <= n; i++) { st[j + 1][i] = better(st[j][i] , st[j][i + (1 << j)]); -- cgit v1.2.3