请帮忙改一下
#include<stdio.h>void main()
{ int a,b,c,d,e,f,g,i;
i=0;
while ((a!=0)&&(b!=0))
{ scanf("%d%d",&a,&b);
if ((a!=0)&&(b!=0))
{ if((a<1000)||(a>=10000)||(b<1000)||(b>=10000)) printf("Error\n");
else { for (a=a+1;a<b;a++)
{ g=a%2;
if (g==0)
{ c=a/1000;
d=(a-c*1000)/100;
e=(a-c*1000-d*100)/10;
f=(a-c*1000-d*100-e*10);
if ((c!=d)&&(c!=e)&&(c!=f)&&(d!=e)&&(d!=f)&&(e!=f))
{ printf("%d ",a);i++;}
}
}
printf("\ncounter=%d\n",i);
i=0;
}
}
}
}
为什么在vc上可以运行,在gcc上不行?