From b4feee9a2bebec9a5ced081f9b4dada8e34c218c Mon Sep 17 00:00:00 2001 From: Anthony Wang Date: Sat, 5 Mar 2022 21:17:28 -0600 Subject: [PATCH] Use const instead of constexpr --- Math/numtheory.cpp | 2 +- Template/basic.cpp | 4 ++-- Template/template.cpp | 8 ++++---- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/Math/numtheory.cpp b/Math/numtheory.cpp index 282e39f..2472c47 100644 --- a/Math/numtheory.cpp +++ b/Math/numtheory.cpp @@ -1,4 +1,4 @@ -constexpr ll MOD = 1e9+7; +const ll MOD = 1e9+7; inline ll pw(ll base, ll exp) { ll res = 1; diff --git a/Template/basic.cpp b/Template/basic.cpp index 926f277..4ad84f2 100644 --- a/Template/basic.cpp +++ b/Template/basic.cpp @@ -4,10 +4,10 @@ using namespace std; using ll = long long; using ii = pair; -constexpr int MX = 1e5+5; +const int MX = 1e5+5; int main() { cin.tie(0)->sync_with_stdio(0); -} \ No newline at end of file +} diff --git a/Template/template.cpp b/Template/template.cpp index ca26ba5..23af3e0 100644 --- a/Template/template.cpp +++ b/Template/template.cpp @@ -24,12 +24,12 @@ using vi = vector; using vl = vector; using vd = vector; using vii = vector; using vpl = vector; using vpd = vector; template using ordered_set = tree, rb_tree_tag, tree_order_statistics_node_update>; template using ordered_multiset = tree, rb_tree_tag, tree_order_statistics_node_update>; // Use with caution -constexpr ld PI = 4*atan((ld)1); -constexpr ll INF = 1e9, LINF = 1e18, MOD = 1e9+7; -constexpr int MX = 1e5+5; +const ld PI = 4*atan((ld)1); +const ll INF = 1e9, LINF = 1e18, MOD = 1e9+7; +const int MX = 1e5+5; int main() { cin.tie(0)->sync_with_stdio(0); -} \ No newline at end of file +}