/ Vijos /

记录详情

Accepted

foo.cc: In member function 'BigInt BigInt::operator+(const BigInt&) const':
foo.cc:31:33: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
             if (count == 0 && i >= s.size() && i >= b.s.size()) break;
                               ~~^~~~~~~~~~~
foo.cc:31:50: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
             if (count == 0 && i >= s.size() && i >= b.s.size()) break;
                                                ~~^~~~~~~~~~~~~
foo.cc:33:19: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
             if (i < s.size()) x += s[i];
                 ~~^~~~~~~~~~
foo.cc:34:19: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
             if (i < b.s.size()) x += b.s[i];
                 ~~^~~~~~~~~~~~
foo.cc: In member function 'BigInt BigInt::operator-(const BigInt&) const':
foo.cc:47:33: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
             if (carry == 0 && i >= s.size() && i >= b.s.size()) break;
                               ~~^~~~~~~~~~~
foo.cc:47:50: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
             if (carry == 0 && i >= s.size() && i >= b.s.size()) break;
                                                ~~^~~~~~~~~~~~~
foo.cc:50:19: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
             if (i < s.size()) x += s[i]; else break;
                 ~~^~~~~~~~~~
foo.cc:51:19: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
             if (i < b.s.size()) x -= b.s[i];
                 ~~^~~~~~~~~~~~
foo.cc: In function 'std::ostream& operator<<(std::ostream&, const BigInt&)':
foo.cc:68:30: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
             for(int j = 0; j < strlen(buf); j++) out << buf[j];
                            ~~^~~~~~~~~~~~~
foo.cc: In function 'int main()':
foo.cc:77:10: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
     scanf("%d",&n);
     ~~~~~^~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Accepted 2ms 408.0 KiB
#2 Accepted 2ms 396.0 KiB
#3 Accepted 2ms 408.0 KiB
#4 Accepted 2ms 384.0 KiB
#5 Accepted 3ms 384.0 KiB
#6 Accepted 4ms 416.0 KiB
#7 Accepted 4ms 400.0 KiB
#8 Accepted 4ms 408.0 KiB
#9 Accepted 4ms 404.0 KiB
#10 Accepted 4ms 404.0 KiB

信息

递交者
类型
递交
题目
P1435 简单的邮递计划
语言
C++
递交时间
2021-08-27 10:37:13
评测时间
2021-08-27 10:37:13
评测机
分数
100
总耗时
35ms
峰值内存
416.0 KiB