/ new_bzoj /

记录详情

Wrong Answer

/in/foo.cc: In member function 'big_integer big_integer::operator+(const big_integer&) const':
/in/foo.cc:87:52: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
         for (int i = 0, carry = 0; carry != 0 || i < v.size() || i < addend.v.size(); i++)
                                                  ~~^~~~~~~~~~
/in/foo.cc:87:68: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
         for (int i = 0, carry = 0; carry != 0 || i < v.size() || i < addend.v.size(); i++)
                                                                  ~~^~~~~~~~~~~~~~~~~
/in/foo.cc:90:19: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
             if (i < v.size()) cur += v[i];
                 ~~^~~~~~~~~~
/in/foo.cc:91:19: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
             if (i < addend.v.size()) cur += addend.v[i];
                 ~~^~~~~~~~~~~~~~~~~
/in/foo.cc: In member function 'big_integer big_integer::operator-(const big_integer&) const':
/in/foo.cc:114:52: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
         for (int i = 0, carry = 0; carry != 0 || i < v.size(); i++)
                                                  ~~^~~~~~~~~~
/in/foo.cc:117:19: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
             if (i < subtrahend.v.size()) cur -= subtrahend.v[i];
                 ~~^~~~~~~~~~~~~~~~~~~~~
/in/foo.cc: In member function 'big_integer big_integer::operator*(const big_integer&) const':
/in/foo.cc:151:27: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
         for (int i = 0; i < v.size(); i++)
                         ~~^~~~~~~~~~
/in/foo.cc:153:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
             for (int j = 0; j < multiplier.v.size(); j++)
                             ~~^~~~~~~~~~~~~~~~~~~~~
/in/foo.cc:155:27: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
                 if (i + j >= product.v.size()) product.v.resize(i + j + 1, 0);
                     ~~~~~~^~~~~~~~~~~~~~~~~~~
/in/foo.cc:159:35: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
                     if (i + j + 1 >= product.v.size()) product.v.resize(i + j + 1 + 1, 0);
                         ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~
# 状态 耗时 内存占用
#1 Wrong Answer 4ms 364.0 KiB
#2 Wrong Answer 3ms 352.0 KiB
#3 Wrong Answer 3ms 360.0 KiB

信息

递交者
类型
自测
题目
高精度开根
语言
C++
递交时间
2018-09-11 14:35:50
评测时间
2018-09-11 14:35:50
评测机
分数
0
总耗时
12ms
峰值内存
364.0 KiB