记录详情

Accepted

/in/foo.cc: In member function 'BigInt BigInt::multiply(BigInt)':
/in/foo.cc:30:28: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   30 |         for (auto i = 0; i < num.size(); ++i) {
      |                          ~~^~~~~~~~~~~~
/in/foo.cc:32:32: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   32 |             for (auto j = 0; j < other.num.size() || carry; ++j) {
      |                              ~~^~~~~~~~~~~~~~~~~~
/in/foo.cc:34:48: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   34 |                                    num[i] * (j < other.num.size() ? other.num[j] : 0) +
      |                                              ~~^~~~~~~~~~~~~~~~~~
# 状态 耗时 内存占用
#1 Accepted 2ms 508.0 KiB
#2 Accepted 1ms 480.0 KiB
#3 Accepted 2ms 532.0 KiB
#4 Accepted 1ms 476.0 KiB
#5 Accepted 2ms 324.0 KiB

信息

递交者
类型
递交
题目
P1023 OO6-1 高精度整数类的乘法运算
语言
C++
递交时间
2025-04-18 01:26:48
评测时间
2025-04-18 01:26:48
评测机
分数
100
总耗时
10ms
峰值内存
532.0 KiB