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