/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);
^