class BigInt { private: int m_size; string m_num; public: bool operator> (const BigInt& x) { if (m_size != x.m_size) return m_size > x.m_size; else return m_num > x.m_num; } }; bool cmp(const BigInt& a, const BigInt& b) { return a > b; }