Skip to content

Commit c3821aa

Browse files
committed
another fix
1 parent 59d08bc commit c3821aa

File tree

6 files changed

+6
-6
lines changed

6 files changed

+6
-6
lines changed

library/convolution/gcd_convolution.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
//! for all pairs (i,j) where gcd(i,j)==k
88
//! @time O(n log n)
99
//! @space O(n)
10-
const int mod = 998'244'353;
10+
constexpr int mod = 998'244'353;
1111
vi gcd_convolution(const vi& a, const vi& b) {
1212
int n = sz(a);
1313
vi c(n);

library/convolution/lcm_convolution.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
//! for all pairs (i,j) where lcm(i,j)==k
88
//! @time O(n log n)
99
//! @space O(n)
10-
const int mod = 998'244'353;
10+
constexpr int mod = 998'244'353;
1111
vi lcm_convolution(const vi& a, const vi& b) {
1212
int n = sz(a);
1313
vector<ll> sum_a(n), sum_b(n);

library/math/fibonacci.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
//! @endcode
1212
//! @time O(log n)
1313
//! @space O(log n)
14-
const int mod = 998'244'353;
14+
constexpr int mod = 998'244'353;
1515
array<ll, 2> fib(ll n) {
1616
if (n == 0) return {0LL, 1LL};
1717
auto [x, y] = fib(n >> 1);

library/math/n_choose_k/grow.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#pragma once
2-
const int mod = 17; //!< must be prime
2+
constexpr int mod = 17; //!< must be prime
33
struct comb {
44
ll inv = 1, fact = 1, inv_fact = 1;
55
};

library/math/n_choose_k/pascals_identity.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#pragma once
2-
const int mod = 17; //!< composite ok
2+
constexpr int mod = 17; //!< composite ok
33
vector<vector<ll>> ch(1010); //!< ch[n][k] = n choose k
44
rep(i, 0, sz(ch)) {
55
ch[i].resize(i + 1, 1);

library/math/partitions.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#pragma once
2-
const int mod = 998'244'353;
2+
constexpr int mod = 998'244'353;
33
//! https://oeis.org/A000041
44
//! @code
55
//! auto p = partitions(n);

0 commit comments

Comments
 (0)