/ Vijos /

记录详情

Accepted

/in/foo.cc: In member function 'BigInt BigInt::operator+(const BigInt&) const':
/in/foo.cc:25:24: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
    if (count == 0 && i >= s.size() && i >= b.s.size()) break;
                      ~~^~~~~~~~~~~
/in/foo.cc:25:41: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
    if (count == 0 && i >= s.size() && i >= b.s.size()) break;
                                       ~~^~~~~~~~~~~~~
/in/foo.cc:27:10: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
    if (i < s.size()) x += s[i];
        ~~^~~~~~~~~~
/in/foo.cc:28:10: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
    if (i < b.s.size()) x += b.s[i];
        ~~^~~~~~~~~~~~
/in/foo.cc: In member function 'BigInt BigInt::operator-(const BigInt&) const':
/in/foo.cc:39:24: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
    if (carry == 0 && i >= s.size() && i >= b.s.size()) break;
                      ~~^~~~~~~~~~~
/in/foo.cc:39:41: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
    if (carry == 0 && i >= s.size() && i >= b.s.size()) break;
                                       ~~^~~~~~~~~~~~~
/in/foo.cc:42:10: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
    if (i < s.size()) x += s[i];
        ~~^~~~~~~~~~
/in/foo.cc:44:10: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
    if (i < b.s.size()) x -= b.s[i];
        ~~^~~~~~~~~~~~
/in/foo.cc: In function 'std::ostream& operator<<(std::ostream&, const BigInt&)':
/in/foo.cc:58:21: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
    for(int j = 0; j < strlen(buf); j++) out << buf[j];
                   ~~^~~~~~~~~~~~~
# 状态 耗时 内存占用
#1 Accepted 4ms 376.0 KiB
#2 Accepted 6ms 352.0 KiB
#3 Accepted 6ms 208.0 KiB
#4 Accepted 6ms 356.0 KiB
#5 Accepted 11ms 348.0 KiB
#6 Accepted 8ms 376.0 KiB
#7 Accepted 14ms 372.0 KiB
#8 Accepted 8ms 384.0 KiB
#9 Accepted 9ms 352.0 KiB
#10 Accepted 7ms 352.0 KiB

信息

递交者
类型
递交
题目
P1435 简单的邮递计划
语言
C++
递交时间
2017-12-14 13:14:25
评测时间
2017-12-14 13:14:26
评测机
分数
100
总耗时
82ms
峰值内存
384.0 KiB