foo.c:1:8: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token
include<stdio.h> include<string.h> include<math.h> define mod 25641
^
foo.c:6:2: warning: data definition has no type or storage class [enabled by default]
}shu;
^
foo.c:6:2: warning: type defaults to 'int' in declaration of 'shu' [-Wimplicit-int]
foo.c: In function 'main':
foo.c:22:1: warning: implicit declaration of function 'gets' [-Wimplicit-function-declaration]
gets(string);
^
foo.c:23:1: warning: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
scanf("%d",&num);
^
foo.c:23:1: warning: incompatible implicit declaration of built-in function 'scanf' [enabled by default]
foo.c:24:1: warning: implicit declaration of function 'getchar' [-Wimplicit-function-declaration]
getchar();
^
foo.c:25:1: warning: implicit declaration of function 'strlen' [-Wimplicit-function-declaration]
len = strlen(string);
^
foo.c:25:7: warning: incompatible implicit declaration of built-in function 'strlen' [enabled by default]
len = strlen(string);
^
foo.c:51:1: warning: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
printf("%c",hh[i]);
^
foo.c:51:1: warning: incompatible implicit declaration of built-in function 'printf' [enabled by default]
foo.c: In function 'youxian':
foo.c:62:6: error: empty character constant
case '':ret = 4;break;
^
foo.c:73:6: error: empty character constant
case '':ret = 3;break;
^
foo.c: At top level:
foo.c:83:5: error: conflicting types for 'calculate'
int calculate(int a,char p,int len)
^
foo.c:13:5: note: previous declaration of 'calculate' was here
int calculate(int a,char *p,int len);
^
foo.c: In function 'calculate':
foo.c:85:1: warning: statement with no effect [-Wunused-value]
shu number;
^
foo.c:85:5: error: expected ';' before 'number'
shu number;
^
foo.c:89:1: error: 'number' undeclared (first use in this function)
number.top = -1;
^
foo.c:89:1: note: each undeclared identifier is reported only once for each function it appears in
foo.c:96:5: error: subscripted value is neither array nor pointer nor vector
if(p[i]=='(')
^
foo.c:98:5: error: subscripted value is neither array nor pointer nor vector
if(p[i]==')')
^
foo.c:102:2: error: subscripted value is neither array nor pointer nor vector
p[i] = ' ';
^
foo.c:98:3: warning: suggest explicit braces to avoid ambiguous 'else' [-Wparentheses]
if(p[i]==')')
^
foo.c:93:11: warning: unused variable 'r' [-Wunused-variable]
int l = 0,r = 0;
^
foo.c:107:5: error: subscripted value is neither array nor pointer nor vector
if(p[i]==' ')
^
foo.c:110:5: error: subscripted value is neither array nor pointer nor vector
if(p[i]=='a')
^
foo.c:115:5: error: subscripted value is neither array nor pointer nor vector
if(p[i]>='0'&&p[i]<='9')
^
foo.c:115:16: error: subscripted value is neither array nor pointer nor vector
if(p[i]>='0'&&p[i]<='9')
^
foo.c:117:13: error: subscripted value is neither array nor pointer nor vector
int temp = p[i] - '0';
^
foo.c:119:8: error: subscripted value is neither array nor pointer nor vector
while(p[i]>='0'&&p[i]<='9'&&i<len)
^
foo.c:119:19: error: subscripted value is neither array nor pointer nor vector
while(p[i]>='0'&&p[i]<='9'&&i<len)
^
foo.c:121:8: error: 'temp10' undeclared (first use in this function)
temp = temp10+(p[i]-'0');
^
foo.c:121:17: error: subscripted value is neither array nor pointer nor vector
temp = temp10+(p[i]-'0');
^
foo.c:129:13: error: subscripted value is neither array nor pointer nor vector
if(youxian(p[i],out)>youxian(c.str[c.top],in))
^
foo.c:130:19: error: subscripted value is neither array nor pointer nor vector
c.str[++c.top] = p[i];
^
foo.c:132:13: error: subscripted value is neither array nor pointer nor vector
if(youxian(p[i],out)==youxia