/ Vijos /

记录详情

Accepted

/in/foo.cc: In member function 'BigInteger BigInteger::operator=(const BigInteger&)':
/in/foo.cc:65: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 'bool BigInteger::operator==(const BigInteger&) const':
/in/foo.cc:109: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-(const BigInteger&) const':
/in/foo.cc:212:33: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
                 if (g == 0 && i >= sa.size() && i >= sb.size()) {
                               ~~^~~~~~~~~~~~
/in/foo.cc:212:51: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
                 if (g == 0 && i >= sa.size() && i >= sb.size()) {
                                                 ~~^~~~~~~~~~~~
/in/foo.cc:217:23: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
                 if (i < sa.size()) {
                     ~~^~~~~~~~~~~
/in/foo.cc:222:23: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
                 if (i < sb.size()) {
                     ~~^~~~~~~~~~~
/in/foo.cc: In function 'std::ostream& operator<<(std::ostream&, const BigInteger&)':
/in/foo.cc:295:30: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
             for(int j = 0; j < strlen(buf); j++) out << buf[j];
                            ~~^~~~~~~~~~~~~
# 状态 耗时 内存占用
#1 Accepted 1ms 220.0 KiB
#2 Accepted 1ms 220.0 KiB
#3 Accepted 1ms 232.0 KiB
#4 Accepted 1ms 220.0 KiB
#5 Accepted 1ms 232.0 KiB
#6 Accepted 1ms 220.0 KiB
#7 Accepted 1ms 228.0 KiB
#8 Accepted 1ms 224.0 KiB
#9 Accepted 1ms 232.0 KiB
#10 Accepted 1ms 220.0 KiB

信息

递交者
类型
递交
题目
P1095 约瑟夫问题10E100版
语言
C++
递交时间
2019-07-25 11:17:51
评测时间
2019-07-25 11:17:51
评测机
分数
100
总耗时
12ms
峰值内存
232.0 KiB