diff --git a/content/strings/Hashing-codeforces.h b/content/strings/Hashing-codeforces.h index 5129112db..7b1a3dcb4 100644 --- a/content/strings/Hashing-codeforces.h +++ b/content/strings/Hashing-codeforces.h @@ -21,7 +21,7 @@ struct A { A operator+(A o){int y = x+o.x; return{y - (y>=M)*M, b+o.b};} A operator-(A o){int y = x-o.x; return{y + (y< 0)*M, b-o.b};} A operator*(A o) { return {(int)(1LL*x*o.x % M), b*o.b}; } - explicit operator ull() { return x ^ (ull) b << 21; } + explicit operator ull() const { return x ^ (ull) b << 21; } bool operator==(A o) const { return (ull)*this == (ull)o; } bool operator<(A o) const { return (ull)*this < (ull)o; } };