/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 << " ";
^~~~