foo.c:15:26: error: expected ';', ',' or ')' before '&' token
Status InitStack(SqStack &S)
^
foo.c:25:20: error: expected ';', ',' or ')' before '&' token
Status POP(SqStack &S,int &e)
^
foo.c:34:21: error: expected ';', ',' or ')' before '&' token
Status Push(SqStack &S,int e)
^
foo.c: In function 'main':
foo.c:53:2: warning: implicit declaration of function 'InitStack' [-Wimplicit-function-declaration]
InitStack(st);
^~~~~~~~~
foo.c:61:4: warning: implicit declaration of function 'Push' [-Wimplicit-function-declaration]
Push(st,j);
^~~~
foo.c:63:3: warning: implicit declaration of function 'POP' [-Wimplicit-function-declaration]
POP(st,t);
^~~
foo.c:54:2: warning: ignoring return value of 'scanf', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d",&n);
^~~~~~~~~~~~~~
foo.c:58:3: warning: ignoring return value of 'scanf', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d",&a[i]);
^~~~~~~~~~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务