prog.c:6:14: error: variably modified ‘data’ at file scope
char data[MAXSIZE];
^
prog.c:9:1: error: expected ‘;’, identifier or ‘(’ before ‘char’
char Pop (Stack &S)
^
prog.c:9:17: error: expected ‘)’ before ‘&’ token
char Pop (Stack &S)
^
prog.c:20:18: error: expected ‘)’ before ‘&’ token
void Push (Stack &S, char x)
^
prog.c: In function ‘main’:
prog.c:36:9: error: unknown type name ‘Stack’
Stack S;
^
prog.c:38:9: warning: ‘gets’ is deprecated (declared at /usr/include/stdio.h:638) [-Wdeprecated-declarations]
gets(s);
^
prog.c:39:10: error: request for member ‘size’ in something not a structure or union
S.size=0;
^
prog.c:46:25: warning: implicit declaration of function ‘Push’ [-Wimplicit-function-declaration]
Push (S, s[i]);
^
prog.c:51:25: warning: implicit declaration of function ‘Pop’ [-Wimplicit-function-declaration]
upper=Pop(S);
^
prog.c:57:15: error: request for member ‘size’ in something not a structure or union
if (OK&&(S.size == 0))
^
prog.c:60:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^