记录详情

Runtime Error

/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:69: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: In member function 'BigInteger BigInteger::operator*(const BigInteger&) const':
/in/foo.cc:78:20: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
   for(int i = 0; i < a.size(); i++){
                  ~~^~~~~~~~~~
/in/foo.cc:80:21: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
    for(int j = 0; j < b.a.size(); j++){
                   ~~^~~~~~~~~~~~
# 状态 耗时 内存占用
#1 Time Exceeded ≥1002ms ≥384.0 KiB
#2 Time Exceeded ≥1003ms ≥352.0 KiB
#3 Runtime Error 6ms 336.0 KiB
#4 Time Exceeded ≥1007ms ≥372.0 KiB
#5 Time Exceeded ≥1006ms ≥264.0 KiB
#6 Time Exceeded ≥1003ms ≥276.0 KiB
#7 Runtime Error 5ms 384.0 KiB
#8 Time Exceeded ≥1007ms ≥384.0 KiB
#9 Time Exceeded ≥1003ms ≥256.0 KiB
#10 Time Exceeded ≥1002ms ≥336.0 KiB
#11 Accepted 3ms 340.0 KiB

信息

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