/ Vijos /

记录详情

Accepted

/in/foo.cc: In member function 'BigInteger BigInteger::operator+(const BigInteger&) const':
/in/foo.cc:36:22: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
       if(g == 0 && i >= s.size() && i >= b.s.size()) break;
                    ~~^~~~~~~~~~~
/in/foo.cc:36:39: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
       if(g == 0 && i >= s.size() && i >= b.s.size()) break;
                                     ~~^~~~~~~~~~~~~
/in/foo.cc:38:12: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
       if(i < s.size()) x += s[i];
          ~~^~~~~~~~~~
/in/foo.cc:39:12: 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 BigInteger&)':
/in/foo.cc:52:22: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
     for(int j = 0; j < strlen(buf); j++) out << buf[j];
                    ~~^~~~~~~~~~~~~
# 状态 耗时 内存占用
#1 Accepted 1ms 228.0 KiB
#2 Accepted 1ms 228.0 KiB
#3 Accepted 1ms 224.0 KiB
#4 Accepted 1ms 224.0 KiB
#5 Accepted 1ms 228.0 KiB
#6 Accepted 1ms 228.0 KiB
#7 Accepted 1ms 224.0 KiB
#8 Accepted 1ms 224.0 KiB
#9 Accepted 1ms 228.0 KiB
#10 Accepted 1ms 228.0 KiB

信息

递交者
类型
递交
题目
P1000 A+B Problem
语言
C++
递交时间
2021-02-25 21:22:52
评测时间
2021-02-25 21:22:52
评测机
分数
100
总耗时
13ms
峰值内存
228.0 KiB