记录详情

Compile Error

/in/foo.cc:14:22: error: ISO C++ forbids declaration of 'Append' with no type [-fpermissive]
 SeqList::Append(int m)
                      ^
/in/foo.cc:14:1: error: prototype for 'int SeqList::Append(int)' does not match any in class 'SeqList'
 SeqList::Append(int m)
 ^~~~~~~
/in/foo.cc:10:7: error: candidate is: void SeqList::Append(int)
  void Append(int m);
       ^~~~~~
/in/foo.cc:17:27: error: ISO C++ forbids declaration of 'Insert' with no type [-fpermissive]
 SeqList::Insert(SeqList &s)
                           ^
/in/foo.cc:17:1: error: prototype for 'int SeqList::Insert(SeqList&)' does not match any in class 'SeqList'
 SeqList::Insert(SeqList &s)
 ^~~~~~~
/in/foo.cc:11:11: error: candidate is: SeqList* SeqList::Insert(SeqList&)
  SeqList *Insert(SeqList &s);
           ^~~~~~
/in/foo.cc:20:22: error: ISO C++ forbids declaration of 'Search' with no type [-fpermissive]
 SeqList::Search(int m)
                      ^
/in/foo.cc: In member function 'int SeqList::Search(int)':
/in/foo.cc:22:1: warning: no return statement in function returning non-void [-Wreturn-type]
 }
 ^
/in/foo.cc: At global scope:
/in/foo.cc:24:11: error: '::main' must return 'int'
 void main()
           ^

信息

递交者
类型
递交
题目
P1015 OO3-2 无序顺序表类的集合运算
比赛
《面向对象的程序设计方法》的课程测验
语言
C++
递交时间
2021-06-22 11:56:10
评测时间
2021-06-22 11:56:10
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes