帮忙看一下我这个程序哪里出错了,谢谢
#include <stdio.h>
float money(float mile,float time)
{
float l,a,pay;
{
if(time>=23.0||time<5.0)
l=(mile-3)*2;
else
l=0;
}
if(mile<=3)
a=13.0;
else
a=13.0+(2.3)*(mile-3);
pay=a+l+1;
return pay;
}
int main()
{
float money1;
money1=money(12.0,9.0)+money(12.0,18.0);
printf("小明每天打车的总费用:%d",money1);
return 0;
}