记录详情

Accepted

foo.cc: In member function ‘void VectorArray::SelectSort()’:
foo.cc:79:31: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::vector<Vector>::size_type’ {aka ‘long unsigned int’} [-Wsign-compare]
   79 |                 for (i = 0; i < a.size(); i++)
      |                             ~~^~~~~~~~~~
foo.cc:82:47: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::vector<Vector>::size_type’ {aka ‘long unsigned int’} [-Wsign-compare]
   82 |                         for (int j = i + 1; j < a.size(); j++)
      |                                             ~~^~~~~~~~~~
foo.cc: In member function ‘void VectorArray::Output()’:
foo.cc:94:35: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::vector<Vector>::size_type’ {aka ‘long unsigned int’} [-Wsign-compare]
   94 |                 for (int i = 0; i < a.size(); i++)
      |                                 ~~^~~~~~~~~~
# 状态 耗时 内存占用
#1 Accepted 2ms 556.0 KiB
#2 Accepted 2ms 768.0 KiB
#3 Accepted 2ms 536.0 KiB
#4 Accepted 2ms 536.0 KiB
#5 Accepted 2ms 536.0 KiB

信息

递交者
类型
递交
题目
P1018 OO4-2 向量的比较、赋值及向量集合类的排序
比赛
2024春 面向对象的程序设计方法(第2场作业赛)
语言
C++
递交时间
2024-04-06 20:47:59
评测时间
2024-04-06 20:47:59
评测机
分数
100
总耗时
12ms
峰值内存
768.0 KiB