记录详情

Accepted

/in/foo.cc: In member function 'BigInteger BigInteger::operator+(const BigInteger&) const':
/in/foo.cc:76:22: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
             if (!g&&i>=num.size()&&i>=b.num.size()) break;
                     ~^~~~~~~~~~~~
/in/foo.cc:76:37: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
             if (!g&&i>=num.size()&&i>=b.num.size()) break;
                                    ~^~~~~~~~~~~~~~
/in/foo.cc:78:18: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
             if (i<num.size()) x+=num[i];
                 ~^~~~~~~~~~~
/in/foo.cc:79:18: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
             if (i<b.num.size()) x+=b.num[i];
                 ~^~~~~~~~~~~~~
/in/foo.cc: In member function 'BigInteger BigInteger::operator-(const BigInteger&) const':
/in/foo.cc:98:22: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
             if (!g&&i>=num.size()&&i>=b.num.size()) break;
                     ~^~~~~~~~~~~~
/in/foo.cc:98:37: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
             if (!g&&i>=num.size()&&i>=b.num.size()) break;
                                    ~^~~~~~~~~~~~~~
/in/foo.cc:100:18: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
             if (i<num.size()) x+=num[i];
                 ~^~~~~~~~~~~
/in/foo.cc:101:18: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
             if (i<b.num.size()) x-=b.num[i];
                 ~^~~~~~~~~~~~~
/in/foo.cc: In member function 'BigInteger BigInteger::operator/(const long long int&) const':
/in/foo.cc:133:23: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
         for (int i=0;i<num.size();i++) c.num.push_back(0);
                      ~^~~~~~~~~~~
/in/foo.cc: In function 'std::ostream& operator<<(std::ostream&, const BigInteger&)':
/in/foo.cc:202:27: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
             for (int j=0;j<strlen(buf);j++) out<<buf[j];
                          ~^~~~~~~~~~~~
/in/foo.cc: In function 'std::istream& operator>>(std::istream&, BigInteger&)':
/in/foo.cc:213:27: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
         for (int i=start;i<len;i++)
                          ~^~~~
# 状态 耗时 内存占用
#1 Accepted 1ms 200.0 KiB
#2 Accepted 1ms 200.0 KiB
#3 Accepted 1ms 200.0 KiB
#4 Accepted 1ms 196.0 KiB
#5 Accepted 1ms 200.0 KiB

信息

递交者
类型
递交
比赛
基于结构数组的编程技能的训练(一)
语言
C++
递交时间
2019-04-05 19:22:01
评测时间
2019-04-05 19:22:01
评测机
分数
100
总耗时
7ms
峰值内存
200.0 KiB