求C程序哪错了
#include<stdio.h>#include<math.h>
void main()
{
float i,c;
scanf("%f",&i);
c=0.00001*i;
double floor(double x);
{
double c,d;
c=0.00001*i;
d=floor(c);
}
double floor(double x)
{
double x,y;
scanf("%f",&x);
y=floor(x);
return(y);
}
double p;
if(i>=1000000) c=10;
switch(c)
{
case'0':p=0.1*i;break;
case'1':p=0.1*100000+0.075*(i-100000);break;
case'2':
case'3':p=0.1*100000+0.075*100000+0.05*(i-200000);break;
case'4':
case'5':p=0.1*100000+0.075*100000+0.05*200000+0.03*(i-400000);break;
case'6':
case'7':
case'8':
case'9':p=0.1*100000+0.075*100000+0.05*200000+0.03*200000+0.015*(i-600000);break;
case'10':p=0.1*100000+0.075*100000+0.05*200000+0.03*200000+0.015*400000+0.01*(i-1000000);break;
}
prinft("%f",p);
}