0_0_24308126_28085.c:7:9: error: expected ':', ',', ';', '}' or '__attribute__' before '=' token
int sum=INT_MIN;
^
0_0_24308126_28085.c: In function 'maxsubsum':
0_0_24308126_28085.c:15:4: error: 'MAX' has no member named 'sum'
m.sum=a[s];
^
0_0_24308126_28085.c:26:15: error: 'MAX' has no member named 'sum'
if(sum>=lrml.sum){
^
0_0_24308126_28085.c:27:8: error: 'MAX' has no member named 'sum'
lrml.sum=sum;lrml.ps=i;lrml.pe=c;
^
0_0_24308126_28085.c:33:14: error: 'MAX' has no member named 'sum'
if(sum>lrmr.sum){
^
0_0_24308126_28085.c:34:8: error: 'MAX' has no member named 'sum'
lrmr.sum=sum;lrmr.ps=i;lrmr.pe=c;
^
0_0_24308126_28085.c:37:35: error: 'MAX' has no member named 'sum'
lrm.ps=lrml.ps;lrm.pe=lrmr.ps;lrm.sum=lrml.sum+lrmr.sum;
^
0_0_24308126_28085.c:37:44: error: 'MAX' has no member named 'sum'
lrm.ps=lrml.ps;lrm.pe=lrmr.ps;lrm.sum=lrml.sum+lrmr.sum;
^
0_0_24308126_28085.c:37:53: error: 'MAX' has no member named 'sum'
lrm.ps=lrml.ps;lrm.pe=lrmr.ps;lrm.sum=lrml.sum+lrmr.sum;
^
0_0_24308126_28085.c:38:6: error: 'MAX' has no member named 'sum'
m=lm.sum>rm.sum?lm.sum>lrm.sum?lm:lrm:rm.sum>lrm.sum?rm:lrm;
^
0_0_24308126_28085.c:38:13: error: 'MAX' has no member named 'sum'
m=lm.sum>rm.sum?lm.sum>lrm.sum?lm:lrm:rm.sum>lrm.sum?rm:lrm;
^
0_0_24308126_28085.c:38:20: error: 'MAX' has no member named 'sum'
m=lm.sum>rm.sum?lm.sum>lrm.sum?lm:lrm:rm.sum>lrm.sum?rm:lrm;
^
0_0_24308126_28085.c:38:28: error: 'MAX' has no member named 'sum'
m=lm.sum>rm.sum?lm.sum>lrm.sum?lm:lrm:rm.sum>lrm.sum?rm:lrm;
^
0_0_24308126_28085.c:38:42: error: 'MAX' has no member named 'sum'
m=lm.sum>rm.sum?lm.sum>lrm.sum?lm:lrm:rm.sum>lrm.sum?rm:lrm;
^
0_0_24308126_28085.c:38:50: error: 'MAX' has no member named 'sum'
m=lm.sum>rm.sum?lm.sum>lrm.sum?lm:lrm:rm.sum>lrm.sum?rm:lrm;
^
0_0_24308126_28085.c: In function 'main':
0_0_24308126_28085.c:52:24: error: 'MAX' has no member named 'sum'
printf("%d %d %d\n",m.sum,m.ps,m.pe);
^
|