/ Vijos /

记录详情

Accepted

/in/foo.cc: In member function 'BigInt BigInt::operator+(const BigInt&) const':
/in/foo.cc:33:42: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
         for (int i(0), c(0); c != 0 || i < num.size() || i < b.num.size(); ++i)
                                        ~~^~~~~~~~~~~~
/in/foo.cc:33:60: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
         for (int i(0), c(0); c != 0 || i < num.size() || i < b.num.size(); ++i)
                                                          ~~^~~~~~~~~~~~~~
/in/foo.cc:36:19: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
             if (i < num.size()) x += num[i];
                 ~~^~~~~~~~~~~~
/in/foo.cc:37:19: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
             if (i < b.num.size()) x += b.num[i];
                 ~~^~~~~~~~~~~~~~
/in/foo.cc: In member function 'BigInt BigInt::operator-(const BigInt&) const':
/in/foo.cc:49:42: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
         for (int i(0), c(0); c != 0 || i < num.size() || i < b.num.size(); ++i)
                                        ~~^~~~~~~~~~~~
/in/foo.cc:49:60: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
         for (int i(0), c(0); c != 0 || i < num.size() || i < b.num.size(); ++i)
                                                          ~~^~~~~~~~~~~~~~
/in/foo.cc:52:19: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
             if (i < num.size()) x += num[i]; else break;
                 ~~^~~~~~~~~~~~
/in/foo.cc:53:19: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
             if (i < b.num.size()) x -= b.num[i];
                 ~~^~~~~~~~~~~~~~
# 状态 耗时 内存占用
#1 Accepted 2ms 320.0 KiB
#2 Accepted 2ms 328.0 KiB
#3 Accepted 2ms 320.0 KiB
#4 Accepted 2ms 312.0 KiB
#5 Accepted 2ms 336.0 KiB
#6 Accepted 3ms 436.0 KiB
#7 Accepted 3ms 448.0 KiB
#8 Accepted 3ms 456.0 KiB
#9 Accepted 3ms 448.0 KiB
#10 Accepted 3ms 440.0 KiB

信息

递交者
类型
递交
题目
P1435 简单的邮递计划
语言
C++
递交时间
2018-11-08 22:26:46
评测时间
2018-11-08 22:26:46
评测机
分数
100
总耗时
31ms
峰值内存
456.0 KiB