记录详情

Accepted

/in/foo.cc: In function 'BigInt operator*(const BigInt&, const BigInt&)':
/in/foo.cc:36:27: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   36 |         for (int i = 0; i < a.digits.size(); ++i)
      |                         ~~^~~~~~~~~~~~~~~~~
/in/foo.cc:37:31: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   37 |             for (int j = 0; j < b.digits.size(); ++j)
      |                             ~~^~~~~~~~~~~~~~~~~
/in/foo.cc:40:38: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   40 |         for (int i = 0, carry = 0; i < prod.size(); ++i)
      |                                    ~~^~~~~~~~~~~~~
/in/foo.cc: In member function 'std::string BigInt::toString() const':
/in/foo.cc:59:27: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   59 |         for (int i = 0; i < rev.size(); ++i)
      |                         ~~^~~~~~~~~~~~
# 状态 耗时 内存占用
#1 Accepted 2ms 476.0 KiB
#2 Accepted 1ms 452.0 KiB
#3 Accepted 1ms 336.0 KiB
#4 Accepted 1ms 532.0 KiB
#5 Accepted 1ms 324.0 KiB

信息

递交者
类型
递交
题目
P1023 OO6-1 高精度整数类的乘法运算
比赛
2024级《面向对象的方法与实践》第二次作业
语言
C++
递交时间
2025-03-23 23:37:50
评测时间
2025-03-23 23:37:50
评测机
分数
100
总耗时
9ms
峰值内存
532.0 KiB