记录详情

Compile Error

foo.cc: In member function 'int SortedSeqList::Find(int)':
foo.cc:20:21: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   20 |   for (int i = 0; i < a.size(); i++)
      |                   ~~^~~~~~~~~~
foo.cc: In member function 'void SortedSeqList::Delete(int)':
foo.cc:27:21: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   27 |   for (int i = k; i < a.size() - 1; i++)
      |                   ~~^~~~~~~~~~~~~~
foo.cc: In member function 'SortedSeqList SortedSeqList::Merge(SortedSeqList&)':
foo.cc:56:3: error: 'SeqList' was not declared in this scope
   56 |   SeqList L1;
      |   ^~~~~~~
foo.cc:63:5: error: 'L1' was not declared in this scope; did you mean 'L'?
   63 |     L1.a.push_back(a[i]),i++;
      |     ^~
      |     L
foo.cc:65:5: error: 'L1' was not declared in this scope; did you mean 'L'?
   65 |     L1.a.push_back(L.a[j]),j++;
      |     ^~
      |     L
foo.cc:68:4: error: 'L1' was not declared in this scope; did you mean 'L'?
   68 |    L1.a.push_back(a[i]),i++;
      |    ^~
      |    L
foo.cc:70:4: error: 'L1' was not declared in this scope; did you mean 'L'?
   70 |    L1.a.push_back(L.a[j]),j++;
      |    ^~
      |    L
foo.cc:71:10: error: 'L1' was not declared in this scope; did you mean 'L'?
   71 |   return L1;
      |          ^~
      |          L
[Hydro](https://hydro.ac)提供评测服务

信息

递交者
类型
自测
题目
P1016 OO3-3 有序顺序表类的合并运算
语言
C++
递交时间
2022-04-28 16:35:25
评测时间
2022-04-28 16:35:25
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes