summaryrefslogtreecommitdiff
path: root/string/rollingHashCf.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'string/rollingHashCf.cpp')
-rw-r--r--string/rollingHashCf.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/string/rollingHashCf.cpp b/string/rollingHashCf.cpp
index d1b8893..9608aff 100644
--- a/string/rollingHashCf.cpp
+++ b/string/rollingHashCf.cpp
@@ -4,7 +4,7 @@
struct Hasher {
vector<ll> power = {1}, pref = {0};
ll m, q; char c;
- Hasher(const string& s, ll m, ll q, char c) :
+ Hasher(const string& s, ll m, ll q, char c) :
m(m), q(q), c(c) {
for (char x : s) {
power.push_back(power.back() * q % m);