diff --git a/bigint.cpp b/bigint.cpp index 9b5fa16..c4e9ad8 100644 --- a/bigint.cpp +++ b/bigint.cpp @@ -162,7 +162,10 @@ struct bigint { void operator/=(const bigint &v) { *this = *this / v; } - + void operator%=(const bigint &v) { + *this = *this % v; + } + bool operator<(const bigint &v) const { if (sign != v.sign) return sign < v.sign;