记录详情

Accepted

foo.cc: In member function 'void seqlist::unionsolve(seqlist&)':
foo.cc:18:16: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   18 |         while(i<list.size()&&j<b.list.size())
      |               ~^~~~~~~~~~~~
foo.cc:18:31: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   18 |         while(i<list.size()&&j<b.list.size())
      |                              ~^~~~~~~~~~~~~~
foo.cc:25:16: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   25 |         while(i<list.size())    u.push_back(list[i++]);
      |               ~^~~~~~~~~~~~
foo.cc:26:16: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   26 |         while(j<b.list.size())  u.push_back(b.list[j++]);
      |               ~^~~~~~~~~~~~~~
foo.cc: In member function 'int seqlist::deleteself(std::vector<int>&)':
foo.cc:38:22: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   38 |         for(int i=1;i<a.size();i++)
      |                     ~^~~~~~~~~
# 状态 耗时 内存占用
#1 Accepted 2ms 536.0 KiB
#2 Accepted 2ms 536.0 KiB
#3 Accepted 2ms 536.0 KiB
#4 Accepted 2ms 536.0 KiB
#5 Accepted 2ms 540.0 KiB

信息

递交者
类型
递交
题目
P1016 OO3-3 有序顺序表类的合并运算
比赛
2024春 面向对象的程序设计方法(第1场作业赛)
语言
C++
递交时间
2024-03-18 19:31:04
评测时间
2024-03-18 19:31:04
评测机
分数
100
总耗时
12ms
峰值内存
540.0 KiB