/in/foo.cc:10:2: error: expected unqualified-id before '{' token
{
^
/in/foo.cc:39:2: error: expected ';' after class definition
}
^
;
/in/foo.cc: In member function 'T SeqStack<T, MaxSize>::Pop()':
/in/foo.cc:25:3: error: 'x' was not declared in this scope
x=data[top];
^
/in/foo.cc: In function 'int main()':
/in/foo.cc:53:20: error: 'int SeqStack<char, 100>::top' is private within this context
int pre_op=OPTR.top();
^~~
/in/foo.cc:7:6: note: declared private here
int top;
^~~
/in/foo.cc:53:24: error: expression cannot be used as a function
int pre_op=OPTR.top();
^
/in/foo.cc:54:11: error: 'Precede' was not declared in this scope
switch(Precede())
^~~~~~~
/in/foo.cc:53:8: warning: unused variable 'pre_op' [-Wunused-variable]
int pre_op=OPTR.top();
^~~~~~