简单程序找错
# include <stdio.h>void main()
{
long int sum,sum1,sum2,sum4,sum6,sum10,i;
scanf("%ld\n",&i);
sum1=100000*0.1;
sum2=sum1+100000*0.75;
sum4=sum2+200000*0.5;
sum6=sum4+200000*0.3;
sum10=sum6+400000*0.15;
if(i<100000)
sum=i*0.1;
else if(i<=200000)
sum=sum1+(i-100000)*0.75;
else if(i<=400000)
sum=sum2+(i-200000)*0.5;
else if(i<=600000)
sum=sum4+(i-400000)*0.3;
else if(i<=1000000)
sum=sum6+(i-600000)*0.15;
else
sum=sum10+(i-1000000)*0.1;
prinft("该同志的奖金:%ld",sum);
}
自己学编的,提示有2个错误,11个警告,请高手帮我看下