/ Vijos /

记录详情

Accepted

/in/foo.cc: In member function 'BigInteger BigInteger::operator+(const BigInteger&) const':
/in/foo.cc:35:17: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
 if (g == 0 && i >= s.size() && i >= b.s.size()) break;
               ~~^~~~~~~~~~~
/in/foo.cc:35:34: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
 if (g == 0 && i >= s.size() && i >= b.s.size()) break;
                                ~~^~~~~~~~~~~~~
/in/foo.cc:37:7: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
 if (i < s.size()) x += s[i];
     ~~^~~~~~~~~~
/in/foo.cc:38:7: 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 'BigInteger BigInteger::operator-(const BigInteger&) const':
/in/foo.cc:48:17: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
 if (g == 0 && i >= s.size() && i >= b.s.size()) break;
               ~~^~~~~~~~~~~
/in/foo.cc:48:34: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
 if (g == 0 && i >= s.size() && i >= b.s.size()) break;
                                ~~^~~~~~~~~~~~~
/in/foo.cc:50:7: 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 'BigInteger BigInteger::operator*(const BigInteger&) const':
/in/foo.cc:60:10: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
 for(i=0;i<s.size();i++) for(j=0;j<b.s.size();j++) v[i+j]+=LL(s[i])*b.s[j];
         ~^~~~~~~~~
/in/foo.cc:60:34: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
 for(i=0;i<s.size();i++) for(j=0;j<b.s.size();j++) v[i+j]+=LL(s[i])*b.s[j];
                                 ~^~~~~~~~~~~
/in/foo.cc:62:16: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
 if (g ==0 && i >= v.size()) break;
              ~~^~~~~~~~~~~
/in/foo.cc: In function 'std::ostream& operator<<(std::ostream&, const BigInteger&)':
/in/foo.cc:121:19: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
 for (int j = 0; j < strlen(buf); j++) out << buf[j];
                 ~~^~~~~~~~~~~~~
# 状态 耗时 内存占用
#1 Accepted 1ms 472.0 KiB
#2 Accepted 1ms 868.0 KiB
#3 Accepted 2ms 204.0 KiB
#4 Accepted 2ms 212.0 KiB
#5 Accepted 1ms 204.0 KiB
#6 Accepted 2ms 212.0 KiB
#7 Accepted 1ms 204.0 KiB
#8 Accepted 1ms 212.0 KiB
#9 Accepted 4ms 308.0 KiB
#10 Accepted 4ms 212.0 KiB

信息

递交者
类型
递交
题目
P1221 神秘配方
语言
C++
递交时间
2019-03-30 16:28:37
评测时间
2019-03-30 16:28:37
评测机
分数
100
总耗时
24ms
峰值内存
868.0 KiB