foo.c:7:18: error: expected ':', ',', ';', '}' or '__attribute__' before '=' token
7 | int* data=(int*)malloc(MaxSize*sizeof(int));
| ^
foo.c:11:19: error: expected ';', ',' or ')' before '&' token
11 | void push(int x,s &p)
| ^
foo.c:16:12: error: expected ';', ',' or ')' before '&' token
16 | void pop(s &p)
| ^
foo.c: In function 'main':
foo.c:27:19: error: 's' {aka 'struct SqStack'} has no member named 'data'
27 | s0.data[j]=-1,s1.data[j]=-1;
| ^
foo.c:27:33: error: 's' {aka 'struct SqStack'} has no member named 'data'
27 | s0.data[j]=-1,s1.data[j]=-1;
| ^
foo.c:27:30: warning: left-hand operand of comma expression has no effect [-Wunused-value]
27 | s0.data[j]=-1,s1.data[j]=-1;
| ^
foo.c:33:25: warning: implicit declaration of function 'push' [-Wimplicit-function-declaration]
33 | push(j,s1);
| ^~~~
foo.c:36:37: error: 's' {aka 'struct SqStack'} has no member named 'data'
36 | for(int k=s1.data[s1.top]+1;k<j;k++)
| ^
foo.c:36:45: error: 's' {aka 'struct SqStack'} has no member named 'top'
36 | for(int k=s1.data[s1.top]+1;k<j;k++)
| ^
foo.c:57:49: error: 's' {aka 'struct SqStack'} has no member named 'top'
57 | for(int k=0;k<s0.top;k++)
| ^
foo.c:59:53: error: 's' {aka 'struct SqStack'} has no member named 'data'
59 | for(int l=s0.data[k];l<s0.data[k+1];l++)
| ^
foo.c:59:66: error: 's' {aka 'struct SqStack'} has no member named 'data'
59 | for(int l=s0.data[k];l<s0.data[k+1];l++)
| ^
foo.c:63:62: error: 's' {aka 'struct SqStack'} has no member named 'data'
63 | s2[s0.data[k+1]]=(s2[s0.data[k]]-'0')&(s2[s0.data[k+1]]-'0');
| ^
foo.c:63:80: error: 's' {aka 'struct SqStack'} has no member named 'data'
63 | s2[s0.data[k+1]]=(s2[s0.data[k]]-'0')&(s2[s0.data[k+1]]-'0');
| ^
foo.c:63:101: error: 's' {aka 'struct SqStack'} has no member named 'data'
63 | s2[s0.data[k+1]]=(s2[s0.data[k]]-'0')&(s2[s0.data[k+1]]-'0');
| ^
foo.c:64:62: error: 's' {aka 'struct SqStack'} has no member named 'data'
64 | s2[s0.data[k+1]]+='0';
| ^
foo.c:66:62: error: 's' {aka 'struct SqStack'} has no member named 'data'
66 | s2[s0.data[k]]='\0';
| ^
foo.c:71:62: error: 's' {aka 'struct SqStack'} has no member named 'data'
71 | s2[s0.data[k+1]]=(s2[s0.data[k]]-'0')|(s2[s0.data[k+1]]-'0')+'0';
| ^
foo.c:71:80: error: 's' {aka 'struct SqStack'} has no member named 'data'
71 | s2[s0.data[k+1]]=(s2[s0.data[k]]-'0')|(s2[s0.data[k+1]]-'0')+'0';
| ^
foo.c:71:101: error: 's' {aka 'struct SqStack'} has no member named 'data'
71 | s2[s0.data[k+1]]=(s2[s0.data[k]]-'0')|(s2[s0.data[k+1]]-'0')+'0';
| ^
foo.c:73:62: error: 's' {aka 'struct SqStack'} has no member named 'data'
73 | s2[s0.data[k]]='\0';
| ^
foo.c:78:38: error: 's' {aka 'struct SqStack'} has no member named 'data'
78 | s2[s1.data[s1.top]]='\0';s2[j]='\0';
| ^
foo.c:78:46: error: 's' {aka 'struct SqStack'} has no member named 'top'
78 | s2[s1.data[s1.top]]='\0';s2[j]='\0';
| ^
foo.c:79:33: warning: implicit declaration of function 'pop' [-Wimplicit-function-declaration]
79 | pop(s1);
| ^~~
foo.c:80:41: error: 's' {aka 'struct SqStack'} has no member named 'top'
80 | while(s0.top!=-1) pop(s0);
| ^
foo.c:104:33: error: 's' {aka 'struct SqStack'} has no member named 'top'
104 | for(int k=0;k<s0.top;k++)
| ^
foo.c:106:37: error: 's' {aka 'struct SqStack'} has no member named 'data'
106 | for(int l=s0.data[k];l<s0.data[k+1];l++)
| ^
foo.c:106:50: error: 's' {aka 'struct SqStack'} has no member named 'data'
106 | for(int l=s0.data[k];l<s0.data[k+1];l++)
| ^
foo.c:110:46: error: 's' {aka 'struct SqStack'} has no member named 'data'
110 | s2[s0.data[k+1]]=(s2[s0.data[k]]-'0')&(s2[s0.data[k+1]]-'0');
| ^
foo.c:110:64: error: 's' {aka 'struct SqStack'} has no member named 'data'
110 | s2[s0.data[k+1]]=(s2[s0.data[k]]-'0')&(s2[s0.data[k+1]]-'0');
| ^
foo.c:110:85: error: 's' {aka 'struct SqStack'} has no member named 'data'
110 | s2[s0.data[k+1]]=(s2[s0.data[k]]-'0')&(s2[s0.data[k+1]]-'0');
| ^
foo.c:111:46: error: 's' {aka 'struct SqStack'} has no member named 'data'
111 | s2[s0.data[k+1]]+='0';
| ^
foo.c:113:46: error: 's' {aka 'struct SqStack'} has no member named 'data'
113 | s2[s0.data[k]]='\0';
| ^
foo.c:118:46: error: 's' {aka 'struct SqStack'} has no member named 'data'
118 | s2[s0.data[k+1]]=(s2[s0.data[k]]-'0')|(s2[s0.data[k+1]]-'0')+'0';
| ^
foo.c:118:64: error: 's' {aka 'struct SqStack'} has no member named 'data'
118 | s2[s0.data[k+1]]=(s2[s0.data[k]]-'0')|(s2[s0.data[k+1]]-'0')+'0';
| ^
foo.c:118:85: error: 's' {aka 'struct SqStack'} has no member named 'data'
118 | s2[s0.data[k+1]]=(s2[s0.data[k]]-'0')|(s2[s0.data[k+1]]-'0')+'0';
| ^
foo.c:120:46: error: 's' {aka 'struct SqStack'} has no member named 'data'
120 | s2[s0.data[k]]='\0';
| ^
[Hydro](https://hydro.ac)提供评测服务