编译总是出错!
#include<stdio.h>int main()
{
int n,o,p=0,d,i,j;
scanf("%d",d);
while(d>=1&&d<=10)
{
i=d;
int a[i],p[i],o[i];
for(i=0;i<=d;i++)
{
scanf("%d",a[i]);
n=a[i];
while(n>=1&&n<=1000000&&(n%2==0))
{
n=n/2;
p=p+1;
}
a[i]=n;p[i]=p;
}
for(j=1;j<=d;j++)
{
printf("%d %d",a[j]);
printf("\n");
}
}
return 0;
}