/ /

记录详情

Compile Error

foo.cc: In member function 'void SeqList::Insert(int)':
foo.cc:13:3: error: invalid use of non-static member function 'void SeqList::Sort()'
   Sort;
   ^~~~
foo.cc:6:7: note: declared here
  void Sort()
       ^~~~
foo.cc: In member function 'void SeqList::Erase(int)':
foo.cc:17:16: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
   for(int i=0;i<v.size();i++)
               ~^~~~~~~~~
foo.cc:24:3: error: invalid use of non-static member function 'void SeqList::Sort()'
   Sort;
   ^~~~
foo.cc:6:7: note: declared here
  void Sort()
       ^~~~
foo.cc: In member function 'void SeqList::Output()':
foo.cc:28:16: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
   for(int i=0;i<v.size();i++)
               ~^~~~~~~~~
foo.cc: In function 'int main()':
foo.cc:61:2: error: expected ';' before 'return'
  return 0;
  ^~~~~~
正在同步测试数据,请稍后
[Hydro](https://hydro.ac)提供评测服务

信息

递交者
类型
递交
题目
P1136 OO3-1 无序顺序表类的基本运算
语言
C++
递交时间
2021-07-17 20:50:09
评测时间
2021-07-17 20:50:09
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes