We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 889aa57 commit fe52796Copy full SHA for fe52796
Library/Miscellanious/RollingHash.cpp
@@ -20,7 +20,7 @@ struct RollingHash {
20
#define sz(x) ((int)x.size())
21
vector<ModBasedHashInt> hash, power;
22
HashInt C;
23
- RollingHash(string& str, HashInt Co) : hash(sz(str)+1), power(hash) {
+ RollingHash(string& str, HashInt Co) : hash(sz(str)+1, 0), power(hash) {
24
C = Co;
25
power[0] = 1;
26
for(int i=0; i<sz(str); i++) {
0 commit comments