diff options
| -rw-r--r-- | datastructures/test/fenwickTree.cpp | 1 | ||||
| -rw-r--r-- | datastructures/test/fenwickTree2.cpp | 1 | ||||
| -rw-r--r-- | datastructures/test/monotonicConvexHull.cpp | 1 | ||||
| -rw-r--r-- | datastructures/test/persistent.cpp | 1 | ||||
| -rw-r--r-- | datastructures/test/sparseTable.cpp | 2 | ||||
| -rw-r--r-- | datastructures/test/sparseTableDisjoint.cpp | 2 | ||||
| -rw-r--r-- | graph/test/LCA_sparse.cpp | 2 | ||||
| -rw-r--r-- | test.h | 2 |
8 files changed, 10 insertions, 2 deletions
diff --git a/datastructures/test/fenwickTree.cpp b/datastructures/test/fenwickTree.cpp index f9dd619..4c9695f 100644 --- a/datastructures/test/fenwickTree.cpp +++ b/datastructures/test/fenwickTree.cpp @@ -1,3 +1,4 @@ +#define sz ssize #include "../fenwickTree.cpp" void test(int n) { diff --git a/datastructures/test/fenwickTree2.cpp b/datastructures/test/fenwickTree2.cpp index 18ebcb7..3567b05 100644 --- a/datastructures/test/fenwickTree2.cpp +++ b/datastructures/test/fenwickTree2.cpp @@ -1,3 +1,4 @@ +#define sz ssize #include "../fenwickTree2.cpp" void test(int n) { diff --git a/datastructures/test/monotonicConvexHull.cpp b/datastructures/test/monotonicConvexHull.cpp index 62ea4cd..08927a2 100644 --- a/datastructures/test/monotonicConvexHull.cpp +++ b/datastructures/test/monotonicConvexHull.cpp @@ -1,3 +1,4 @@ +#define sz(X) ((int)size(X)) #include "../monotonicConvexHull.cpp" int main() { diff --git a/datastructures/test/persistent.cpp b/datastructures/test/persistent.cpp index d98569b..5e5f864 100644 --- a/datastructures/test/persistent.cpp +++ b/datastructures/test/persistent.cpp @@ -1,3 +1,4 @@ +#define all(X) begin(X), end(X) #include "../persistent.cpp" int main() { diff --git a/datastructures/test/sparseTable.cpp b/datastructures/test/sparseTable.cpp index ed4d61f..03ef548 100644 --- a/datastructures/test/sparseTable.cpp +++ b/datastructures/test/sparseTable.cpp @@ -1,3 +1,5 @@ +#define sz ssize +#define all(X) begin(X), end(X) #include "../sparseTable.cpp" void test(int n) { diff --git a/datastructures/test/sparseTableDisjoint.cpp b/datastructures/test/sparseTableDisjoint.cpp index 43c6d6e..7ef6483 100644 --- a/datastructures/test/sparseTableDisjoint.cpp +++ b/datastructures/test/sparseTableDisjoint.cpp @@ -1,3 +1,5 @@ +#define sz ssize +#define all(X) begin(X), end(X) #include "../sparseTableDisjoint.cpp" void test(int n) { diff --git a/graph/test/LCA_sparse.cpp b/graph/test/LCA_sparse.cpp index c45111c..c8b0017 100644 --- a/graph/test/LCA_sparse.cpp +++ b/graph/test/LCA_sparse.cpp @@ -1,4 +1,6 @@ #include "util.cpp" +#define all(X) begin(X), end(X) +#define sz ssize #include "../../datastructures/sparseTable.cpp" #include "../LCA_sparse.cpp" @@ -3,8 +3,6 @@ #include <bits/stdc++.h> using namespace std; using ll = long long; -#define sz(x) ((int)(x).size()) -#define all(x) (x).begin(), (x).end() template<typename T> T _lg_check(T n) { |
