diff options
Diffstat (limited to 'content/datastructures/sparseTable.cpp')
| -rw-r--r-- | content/datastructures/sparseTable.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
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<ll> &vec) { - int n = sz(vec); + int n = ssize(vec); a = vec.data(); st.assign(__lg(n) + 1, vector<int>(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)]); |
