记录详情

Accepted

/in/foo.cc: In member function 'BigInteger BigInteger::operator+(const BigInteger&) const':
/in/foo.cc:51:19: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
    if(g == 0 && i >= a.size() && i >= b.a.size()) break;
                 ~~^~~~~~~~~~~
/in/foo.cc:51:36: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
    if(g == 0 && i >= a.size() && i >= b.a.size()) break;
                                  ~~^~~~~~~~~~~~~
/in/foo.cc:53:9: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
    if(i < a.size()) x += a[i];
       ~~^~~~~~~~~~
/in/foo.cc:54:9: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
    if(i < b.a.size()) x += b.a[i];
       ~~^~~~~~~~~~~~
/in/foo.cc:49:7: warning: unused variable 'x' [-Wunused-variable]
   int x = 0;
       ^
/in/foo.cc: In member function 'BigInteger BigInteger::operator-(const BigInteger&) const':
/in/foo.cc:67:9: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
    if(i >= A.a.size() && i >= B.a.size()) break;
       ~~^~~~~~~~~~~~~
/in/foo.cc:67:28: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
    if(i >= A.a.size() && i >= B.a.size()) break;
                          ~~^~~~~~~~~~~~~
/in/foo.cc:68:9: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
    if(i >= B.a.size()) c.a[i] = A.a[i];
       ~~^~~~~~~~~~~~~
/in/foo.cc:72:9: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
    if(i >= c.a.size()) break;
       ~~^~~~~~~~~~~~~
/in/foo.cc: In member function 'BigInteger BigInteger::operator*(const BigInteger&) const':
/in/foo.cc:84:20: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
   for(int i = 0; i < a.size(); i++){
                  ~~^~~~~~~~~~
/in/foo.cc:86:21: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
    for(int j = 0; j < b.a.size(); j++){
                   ~~^~~~~~~~~~~~
# 状态 耗时 内存占用
#1 Accepted 71ms 384.0 KiB
#2 Accepted 4ms 384.0 KiB
#3 Accepted 5ms 356.0 KiB
#4 Accepted 5ms 256.0 KiB
#5 Accepted 15ms 368.0 KiB
#6 Accepted 11ms 360.0 KiB
#7 Accepted 25ms 256.0 KiB
#8 Accepted 32ms 356.0 KiB
#9 Accepted 20ms 384.0 KiB
#10 Accepted 55ms 368.0 KiB
#11 Accepted 3ms 336.0 KiB

信息

递交者
类型
递交
题目
a and b story 2
语言
C++
递交时间
2017-11-10 11:47:01
评测时间
2017-11-10 11:47:01
评测机
分数
110
总耗时
250ms
峰值内存
384.0 KiB