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 ef4de9b commit d8a8e74Copy full SHA for d8a8e74
mint.cpp
@@ -33,5 +33,5 @@ struct mint {
33
mint& operator/=(const mint a) { return *this *= a.inv();}
34
mint operator/(const mint a) const { return mint(*this) /= a;}
35
};
36
-istream& operator>>(istream& is, const mint& a) { return is >> a.x;}
+istream& operator>>(istream& is, mint& a) { return is >> a.x;}
37
ostream& operator<<(ostream& os, const mint& a) { return os << a.x;}
0 commit comments