记录详情

Accepted

foo.cc: In function 'void exchange(std::vector<int>&, std::vector<int>&)':
foo.cc:24:20: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   24 |  for (int i = 0; i < b.size(); i++)a[i] = b[i];
      |                  ~~^~~~~~~~~~
foo.cc:26:20: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   26 |  for (int i = 0; i < c.size(); i++)b[i] = c[i];
      |                  ~~^~~~~~~~~~
foo.cc: In function 'void Trav(std::vector<int>&)':
foo.cc:31:20: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   31 |  for (int i = 0; i < b.size(); i++)
      |                  ~~^~~~~~~~~~
foo.cc: In function 'int main()':
foo.cc:49:20: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::vector<int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   49 |  for (int i = 0; i < a.size() - 1; i++)
      |                  ~~^~~~~~~~~~~~~~
foo.cc:52:25: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::vector<int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   52 |   for (int j = i + 1; j < a.size(); j++)
      |                       ~~^~~~~~~~~~
foo.cc:56:20: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::vector<int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   56 |  for (int i = 0; i < a.size(); i++)
      |                  ~~^~~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Accepted 2ms 384.0 KiB
#2 Accepted 2ms 384.0 KiB
#3 Accepted 2ms 384.0 KiB
#4 Accepted 2ms 384.0 KiB
#5 Accepted 2ms 384.0 KiB

信息

递交者
类型
递交
题目
P1025 OO6-3 高精度整数集合类的插入排序
比赛
2022春 面向对象程序设计方法的上机作业
语言
C++
递交时间
2022-05-15 14:59:55
评测时间
2022-05-15 14:59:55
评测机
分数
100
总耗时
12ms
峰值内存
384.0 KiB