error: expected declaration or statement at end of input } ^
#include <stdio.h>
double taxifee(int hour,int miles)
{
double perfee;
int taxi=13;
if((hour<5 || hour>=23) && miles<=3)
{
perfee=2.3;
printf("打车费为%d\n",taxi+1);
return 0;
}
else if((hour<5 || hour>=23) && miles>3)
{
perfee=1.2*perfee;
printf("打车费为%f\n",taxi+(miles-3)*perfee+1);
return 0;
}
else if((5<=hour<23) && miles>3)
{
perfee=2.3;
printf("打车费为%f\n",taxi+perfee*(miles-3)+1);
return 0;
}
else
{
printf("打车费为14\n");
return 0;
}
return 0;
int main()
{
taxifee(9,12)+taxifee(18,12);
return 0;
}