0_0_34626662_28475.c: In function 'mergesort_x':
0_0_34626662_28475.c:36:5: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
for(int k=l,kk=1;k<=r;k++,kk++) p[k]=px[kk];
^
0_0_34626662_28475.c:36:5: note: use option -std=c99, -std=gnu99, -std=c11 or -std=gnu11 to compile your code
0_0_34626662_28475.c: In function 'mergesort_y':
0_0_34626662_28475.c:51:5: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
for(int k=l,kk=1;k<=r;k++,kk++) P[k]=px[kk];
^
0_0_34626662_28475.c: In function 'work':
0_0_34626662_28475.c:62:5: error: expected expression before '/' token
//if(l==r-2) return min(dis(p[l],p[l+1]),min(dis(p[l],p[l+2]),dis(p[l+1],p[l+2])));
^
0_0_34626662_28475.c:65:5: error: expected expression before '/' token
//printf("ans=%.2lf\n",ans);
^
0_0_34626662_28475.c:67:5: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
for(int i=1;i<=n;i++)
^
0_0_34626662_28475.c:72:5: error: expected expression before '/' token
//printf(" %d %d\n",tcnt1,tcnt2);
^
0_0_34626662_28475.c:74:13: error: redefinition of 'i'
for(int i=1;i<=tcnt1;i++)
^
0_0_34626662_28475.c:67:13: note: previous definition of 'i' was here
for(int i=1;i<=n;i++)
^
0_0_34626662_28475.c:74:5: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
for(int i=1;i<=tcnt1;i++)
^
0_0_34626662_28475.c:79:8: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
for(int j=i+1;j<=k;j++)
^
0_0_34626662_28475.c: In function 'main':
0_0_34626662_28475.c:89:9: error: expected expression before '/' token
//n=read();
^
0_0_34626662_28475.c:93:13: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
for(int i=1;i<=n;i++) scanf("%lf%lf",&p[i].x,&p[i].y);
^
|