记录详情

Accepted

/in/foo.cc: In member function 'BigInt BigInt::operator+(const BigInt&) const':
/in/foo.cc:24:18: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
         while (i < digits.size() || j < other.digits.size()) {
                ~~^~~~~~~~~~~~~~~
/in/foo.cc:24:39: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
         while (i < digits.size() || j < other.digits.size()) {
                                     ~~^~~~~~~~~~~~~~~~~~~~~
/in/foo.cc:26:19: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
             if (i < digits.size()) {
                 ~~^~~~~~~~~~~~~~~
/in/foo.cc:30:19: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
             if (j < other.digits.size()) {
                 ~~^~~~~~~~~~~~~~~~~~~~~
/in/foo.cc: In member function 'BigInt BigInt::operator*(const BigInt&) const':
/in/foo.cc:45:27: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
         for (int i = 0; i < digits.size(); i++) {
                         ~~^~~~~~~~~~~~~~~
/in/foo.cc:47:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
             for (int j = 0; j < other.digits.size(); j++) {
                             ~~^~~~~~~~~~~~~~~~~~~~~
# 状态 耗时 内存占用
#1 Accepted 1ms 400.0 KiB
#2 Accepted 1ms 380.0 KiB
#3 Accepted 1ms 332.0 KiB
#4 Accepted 1ms 376.0 KiB
#5 Accepted 1ms 328.0 KiB

信息

递交者
类型
递交
题目
P1023 OO6-1 高精度整数类的乘法运算
语言
C++
递交时间
2023-12-21 13:57:11
评测时间
2023-12-21 13:57:11
评测机
分数
100
总耗时
9ms
峰值内存
400.0 KiB