记录详情

Accepted

foo.cc: In member function 'BigInt BigInt::operator+(const BigInt&) const':
foo.cc:24:18: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   24 |         while (i < digits.size() || j < other.digits.size()) {
      |                ~~^~~~~~~~~~~~~~~
foo.cc:24:39: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   24 |         while (i < digits.size() || j < other.digits.size()) {
      |                                     ~~^~~~~~~~~~~~~~~~~~~~~
foo.cc:26:19: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   26 |             if (i < digits.size()) {
      |                 ~~^~~~~~~~~~~~~~~
foo.cc:30:19: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   30 |             if (j < other.digits.size()) {
      |                 ~~^~~~~~~~~~~~~~~~~~~~~
foo.cc: In member function 'BigInt BigInt::operator*(const BigInt&) const':
foo.cc:45:27: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   45 |         for (int i = 0; i < digits.size(); i++) {
      |                         ~~^~~~~~~~~~~~~~~
foo.cc:47:31: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   47 |             for (int j = 0; j < other.digits.size(); j++) {
      |                             ~~^~~~~~~~~~~~~~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Accepted 4ms 412.0 KiB
#2 Accepted 4ms 412.0 KiB
#3 Accepted 4ms 412.0 KiB
#4 Accepted 5ms 412.0 KiB
#5 Accepted 3ms 412.0 KiB

信息

递交者
类型
递交
题目
P1024 OO6-2 高精度整数类的加法运算
语言
C++
递交时间
2023-12-21 13:57:49
评测时间
2023-12-21 13:57:49
评测机
分数
100
总耗时
23ms
峰值内存
412.0 KiB