遇到问题了,高手帮忙啊
写了个程序,没错可是没法运行啊#include<stdio.h>
int main()
{int num0,num1,num2,num3,num4,num5,num6,num7,num8,num9,num10,sum;
printf("输入一个二进制数\n");
scanf("%d",&num0);
num1=num0%1000000000;
num2=num0/1000000000%100000000;
num3=num0/1000000000/100000000%10000000;
num4=num0/1000000000/100000000/10000000%1000000;
num5=num0/1000000000/100000000/10000000/1000000%100000;
num6=num0/1000000000/100000000/10000000/1000000/100000%10000;
num7=num0/1000000000/100000000/10000000/1000000/100000/10000%1000;
num8=num0/1000000000/100000000/10000000/1000000/100000/10000/1000%100;
num9=num0/1000000000/100000000/10000000/1000000/100000/10000/1000/100%10;
num10=num0/1000000000/100000000/10000000/1000000/100000/10000/1000/100/10;
sum=num10*1+num9*2+num8*4+num7*8+num6*16+num6*32+num5*64+num4*128+
num3*256+num2*512+num1*1024;
printf("十进制数是%d",sum);
return 0;
}