记录详情

Compile Error

/in/foo.cc:4:5: error: 'SeqList' has not been declared
 int SeqList::Search(int x)
     ^~~~~~~
/in/foo.cc: In function 'int Search(int)':
/in/foo.cc:6:22: error: 'length' was not declared in this scope
  for (int i = 0; i < length; i++)
                      ^~~~~~
/in/foo.cc:7:7: error: 'data' was not declared in this scope
   if (data[i] == x)
       ^~~~
/in/foo.cc: At global scope:
/in/foo.cc:12:6: error: 'SeqList' has not been declared
 void SeqList::FindiSecondMax(int a[], int n)
      ^~~~~~~
/in/foo.cc: In function 'void FindiSecondMax(int*, int)':
/in/foo.cc:14:13: error: 'data' was not declared in this scope
  int max1 = data[0];
             ^~~~
/in/foo.cc:18:18: error: 'length' was not declared in this scope
  for (i = 1; i < length; i++)
                  ^~~~~~
/in/foo.cc: In function 'int main()':
/in/foo.cc:48:31: error: void value not ignored as it ought to be
  int t1 = FindiSecondMax(a, n1);
                               ^
/in/foo.cc:49:31: error: void value not ignored as it ought to be
  int t2 = FindiSecondMax(a, n2);
                               ^

信息

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