记录详情

Compile Error

/in/foo.cc:9:32: error: 'm' has not been declared
     void FindSecondMax(int a[],m);
                                ^
/in/foo.cc:20:1: error: 'voidSeqList' does not name a type
 voidSeqList::FindSecondMax(int a[],m){
 ^~~~~~~~~~~
/in/foo.cc: In function 'int main()':
/in/foo.cc:59:30: error: 'm' has not been declared
  void FindSecondMax(int a[0],m);
                              ^
/in/foo.cc:60:10: error: conflicting declaration 'SeqList a'
  SeqList a;
          ^
/in/foo.cc:45:8: note: previous declaration as 'int a [10000]'
    int a[10000];
        ^
/in/foo.cc:61:5: error: request for member 'FindSecondMax' in 'a', which is of non-class type 'int [10000]'
   a.FindSecondMax(a,n1);
     ^~~~~~~~~~~~~
/in/foo.cc:62:10: error: conflicting declaration 'SeqList b'
  SeqList b;
          ^
/in/foo.cc:46:8: note: previous declaration as 'int b [10000]'
    int b[10000];
        ^
/in/foo.cc:63:5: error: request for member 'FindSecondMax' in 'b', which is of non-class type 'int [10000]'
   b.FindSecondMax(b,n2);
     ^~~~~~~~~~~~~

信息

递交者
类型
递交
比赛
中北数据结构课程赛事二:顺序表类的操作
语言
C++
递交时间
2019-03-10 21:27:33
评测时间
2019-03-10 21:27:33
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes