记录详情

Accepted

/in/foo.cc: In member function 'void ComplexArray::bubbleSort()':
/in/foo.cc:68:27: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<Complex>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   68 |         for (int i = 0; i < this->size() - 1; ++i)
      |                         ~~^~~~~~~~~~~~~~~~~~
/in/foo.cc:69:31: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<Complex>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   69 |             for (int j = 0; j < this->size() - (i + 1); ++j)
      |                             ~~^~~~~~~~~~~~~~~~~~~~~~~~
# 状态 耗时 内存占用
#1 Accepted 1ms 532.0 KiB
#2 Accepted 2ms 484.0 KiB
#3 Accepted 1ms 500.0 KiB
#4 Accepted 1ms 504.0 KiB
#5 Accepted 1ms 520.0 KiB

信息

递交者
类型
递交
题目
P1013 OO2-3 复数数组类的冒泡排序
比赛
2024级《面向对象的方法与实践》第二次作业
语言
C++
递交时间
2025-03-23 12:51:06
评测时间
2025-03-23 12:51:06
评测机
分数
100
总耗时
9ms
峰值内存
532.0 KiB