/ Vijos /

记录详情

Accepted

/in/foo.cc: In member function 'BigInteger BigInteger::operator=(const BigInteger&)':
/in/foo.cc:44:27: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
         for (int i = 0; i < b.s.size(); i++) {
                         ~~^~~~~~~~~~~~
/in/foo.cc: In member function 'BigInteger BigInteger::operator+(const BigInteger&) const':
/in/foo.cc:55:29: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
             if (g == 0 && i >= s.size() && i >= b.s.size()) {
                           ~~^~~~~~~~~~~
/in/foo.cc:55:46: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
             if (g == 0 && i >= s.size() && i >= b.s.size()) {
                                            ~~^~~~~~~~~~~~~
/in/foo.cc: In member function 'BigInteger BigInteger::operator-(const BigInteger&) const':
/in/foo.cc:76:29: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
             if (g == 0 && i >= s.size() && i >= b.s.size()) {
                           ~~^~~~~~~~~~~
/in/foo.cc:76:46: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
             if (g == 0 && i >= s.size() && i >= b.s.size()) {
                                            ~~^~~~~~~~~~~~~
/in/foo.cc:81:19: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
             if (i < s.size()) {
                 ~~^~~~~~~~~~
/in/foo.cc:84:19: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
             if (i < b.s.size()) {
                 ~~^~~~~~~~~~~~
/in/foo.cc: In member function 'bool BigInteger::operator==(const BigInteger&) const':
/in/foo.cc:118:27: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
         for (int i = 0; i < s.size(); i++) {
                         ~~^~~~~~~~~~
/in/foo.cc: In member function 'BigInteger BigInteger::operator/(int) const':
/in/foo.cc:180:27: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
         for (int i = 0; i < s.size(); i++) {
                         ~~^~~~~~~~~~
/in/foo.cc: In function 'std::ostream& operator<<(std::ostream&, const BigInteger&)':
/in/foo.cc:196:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
             for (int j = 0; j < strlen(buf); j++) {
                             ~~^~~~~~~~~~~~~
# 状态 耗时 内存占用
#1 Accepted 1ms 212.0 KiB
#2 Accepted 1ms 224.0 KiB
#3 Accepted 1ms 224.0 KiB
#4 Accepted 1ms 228.0 KiB
#5 Accepted 1ms 228.0 KiB
#6 Accepted 1ms 356.0 KiB
#7 Accepted 1ms 352.0 KiB
#8 Accepted 1ms 352.0 KiB

信息

递交者
类型
递交
题目
P1375 大整数
语言
C++
递交时间
2019-07-26 14:16:10
评测时间
2019-07-26 14:16:10
评测机
分数
100
总耗时
12ms
峰值内存
356.0 KiB