/in/foo.cc:12:29: error: 'm' has not been declared
void FindMinPos(int a[],m);
^
/in/foo.cc:22:34: error: 'm' has not been declared
void SeqList::FindMinPos(int a[],m)
^
/in/foo.cc: In member function 'void SeqList::FindMinPos(int*, int)':
/in/foo.cc:27:12: error: 'm' was not declared in this scope
for(i=0;i<m;i++)
^
/in/foo.cc: In function 'int main()':
/in/foo.cc:53:10: error: conflicting declaration 'SeqList a'
SeqList a;
^
/in/foo.cc:40:9: note: previous declaration as 'int a [10000]'
int a[10000];
^
/in/foo.cc:54:4: error: request for member 'FindMinPos' in 'a', which is of non-class type 'int [10000]'
a.FindMinPos(a,n1);
^~~~~~~~~~
/in/foo.cc:55:10: error: conflicting declaration 'SeqList b'
SeqList b;
^
/in/foo.cc:41:6: note: previous declaration as 'int b [10000]'
int b[10000];
^
/in/foo.cc:56:4: error: request for member 'FindMinPos' in 'b', which is of non-class type 'int [10000]'
b.FindMinPos(b,n2);
^~~~~~~~~~