We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a1b95ab commit 413da96Copy full SHA for 413da96
1 file changed
content/strings/Hashing-codeforces.h
@@ -21,7 +21,7 @@ struct A {
21
A operator+(A o){int y = x+o.x; return{y - (y>=M)*M, b+o.b};}
22
A operator-(A o){int y = x-o.x; return{y + (y< 0)*M, b-o.b};}
23
A operator*(A o) { return {(int)(1LL*x*o.x % M), b*o.b}; }
24
- explicit operator ull() { return x ^ (ull) b << 21; }
+ explicit operator ull() const { return x ^ (ull) b << 21; }
25
bool operator==(A o) const { return (ull)*this == (ull)o; }
26
bool operator<(A o) const { return (ull)*this < (ull)o; }
27
};
0 commit comments