大佬帮忙看下这里错哪了
#include <stdio.h>
int spurs(int d)
{
float sum;
if(d<=3)
{
sum=14;
}
else
{
sum=14+(d-3)*2.3;
}
}
int arsenal(int t)
{
if(23<=t<=24||0<=t<=3)
{
float sum;
sum=spurs(12)*1.2;
}
else
{
sum=spurs(12);
}
}
int main()
{
int sum=arsenal(9)+arsenal(18);
printf("小明每天打车的总费用为%d元。\n",sum);
return 0;
}