记录详情

Accepted

/in/foo.cc: In member function 'BigInt BigInt::operator*(int)':
/in/foo.cc:19:22: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   19 |         for(int i=0;i<num.size();i++)
      |                     ~^~~~~~~~~~~
/in/foo.cc: In member function 'BigInt BigInt::operator+(BigInt&)':
/in/foo.cc:37:22: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   37 |         for(int i=0;i<num.size()||i<b.num.size();i++)
      |                     ~^~~~~~~~~~~
/in/foo.cc:37:36: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   37 |         for(int i=0;i<num.size()||i<b.num.size();i++)
      |                                   ~^~~~~~~~~~~~~
/in/foo.cc:39:24: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   39 |             int aval=(i<num.size()?num[i]:0);
      |                       ~^~~~~~~~~~~
/in/foo.cc:40:24: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   40 |             int bval=(i<b.num.size()?b.num[i]:0);
      |                       ~^~~~~~~~~~~~~
# 状态 耗时 内存占用
#1 Accepted 2ms 480.0 KiB
#2 Accepted 2ms 524.0 KiB
#3 Accepted 1ms 532.0 KiB
#4 Accepted 1ms 508.0 KiB
#5 Accepted 1ms 320.0 KiB

信息

递交者
类型
递交
题目
P1025 OO6-3 高精度整数集合类的插入排序
比赛
2024级《面向对象的方法与实践》第二次作业
语言
C++
递交时间
2025-03-23 18:01:32
评测时间
2025-03-23 18:01:32
评测机
分数
100
总耗时
9ms
峰值内存
532.0 KiB