记录详情

Wrong Answer

/in/foo.cc: In member function 'void BigInt::multiplyByDigit(int)':
/in/foo.cc:23:27: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
         for (int i = 0; i < digits.size(); ++i) {
                         ~~^~~~~~~~~~~~~~~
/in/foo.cc: In member function 'void BigInt::add(const BigInt&)':
/in/foo.cc:40:26: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
             int sum = (i < digits.size() ? digits[i] : 0) +
                        ~~^~~~~~~~~~~~~~~
/in/foo.cc:41:20: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
                 (i < other.digits.size() ? other.digits[i] : 0) + carry;
                  ~~^~~~~~~~~~~~~~~~~~~~~
/in/foo.cc: In member function 'BigInt BigInt::operator*(const BigInt&) const':
/in/foo.cc:92:27: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
         for (int i = 0; i < other.digits.size(); ++i) {
                         ~~^~~~~~~~~~~~~~~~~~~~~
# 状态 耗时 内存占用
#1 Accepted 1ms 376.0 KiB
#2 Accepted 1ms 428.0 KiB
#3 Accepted 1ms 376.0 KiB
#4 Wrong Answer 1ms 376.0 KiB
#5 Accepted 1ms 376.0 KiB

信息

递交者
类型
递交
题目
P1023 OO6-1 高精度整数类的乘法运算
比赛
2024春 面向对象的程序设计方法(第3场作业赛)
语言
C++
递交时间
2024-05-01 12:53:17
评测时间
2024-05-01 12:53:17
评测机
分数
80
总耗时
8ms
峰值内存
428.0 KiB