记录详情

Accepted

foo.cc: In member function 'std::vector<int> SortedSeqList::Merge(const SortedSeqList&) const':
foo.cc:16:26: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   16 |                 while (i < seq.size() && j < obj.seq.size())
      |                        ~~^~~~~~~~~~~~
foo.cc:16:44: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   16 |                 while (i < seq.size() && j < obj.seq.size())
      |                                          ~~^~~~~~~~~~~~~~~~
foo.cc:29:26: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   29 |                 while (i < seq.size())
      |                        ~~^~~~~~~~~~~~
foo.cc:34:26: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   34 |                 while (j < obj.seq.size())
      |                        ~~^~~~~~~~~~~~~~~~
foo.cc: In function 'int main()':
foo.cc:58:35: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   58 |                 for (int i = 0; i < merseq.size(); i++)
      |                                 ~~^~~~~~~~~~~~~~~
# 状态 耗时 内存占用
#1 Accepted 2ms 536.0 KiB

信息

递交者
类型
自测
题目
P1016 OO3-3 有序顺序表类的合并运算
语言
C++
递交时间
2024-03-18 21:37:42
评测时间
2024-03-18 21:37:42
评测机
分数
10
总耗时
2ms
峰值内存
536.0 KiB