有没有大佬能解决一下
#include <stdio.h>
float cost(int distance int over)
double price=2.3;
double night;
if(distance<=3)
{
night= 14;
}
else if(over<=23&&over>=5){
night=(distance-3)*price+14;
printf("白天车费为%f\n",night);
}
else{
night=(distance-3)*(price*1.2)+14;
printf("白天车费为%f\n",night);
}
return night;
int main()
{
double allcost = 69.4;
printf("小明每天打车是",allcost);
return 0;
}