[求助]帮忙看一下我的程序
#define M 100int stack[M];
int top=0;
int pushstack(int stack[],int x,int top)
{if (top==M)
stackfull();
else
stack[top++]=x;
return (top);}
int popstack(int stack[],int *p,int top)
{if (top==0)
stackempty();
else
*p=stack[--top];
return(top);
}
main ()
{int a[M];
int i;
printf("intput number:");
for (i=0;i<M,i++)
scanf("%d",&a[i]);
pushstack(int a[],int i);
printf("%d",pushstack());}