求大神纠正错误。谢谢!
#include <stdio.h>
int a(int tim,int mile)
{ float cost;
if(tim>=5&&tim<23)
{
if(mile<=3)
{
cost=14;
}
else
{
cost=13+2.3*(13-mile)+1;
}
}
else
{if(mile<=3)
{
cost=14;
}
else
{
cost=13+4.3*(13-mile)+1;
}
}
}
return cost;
int main()
{
float x,y;
x=a(6,12);
y=a(18,12);
print("%d",x+y);
return 0;
}