记录详情

Compile Error

/in/foo.cc:1:5: error: 'SeqList' has not been declared
 int SeqList::Search(int x)
     ^~~~~~~
/in/foo.cc: In function 'int Search(int)':
/in/foo.cc:3:22: error: 'length' was not declared in this scope
  for (int i = 0; i < length; i++)
                      ^~~~~~
/in/foo.cc:4:7: error: 'data' was not declared in this scope
   if (data[i] == x)
       ^~~~
/in/foo.cc: At global scope:
/in/foo.cc:9: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:11:13: error: 'data' was not declared in this scope
  int max1 = data[0];
             ^~~~
/in/foo.cc:15:18: error: 'length' was not declared in this scope
  for (i = 1; i < length; i++)
                  ^~~~~~
/in/foo.cc:29:2: error: 'cout' was not declared in this scope
  cout << k << " ";
  ^~~~

信息

递交者
类型
自测
题目
A9-4 数组中第二大的数
语言
C++
递交时间
2019-03-10 21:18:50
评测时间
2019-03-10 21:18:50
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes