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)提供评测服务