求大神解读,哪里错了?
#include "stdio.h"
double fun(int t,int m);
{float q;
if(m<=3)
q=13+1;
else
{if(m<=5||m>=23)
q=2.3*(m-3)+13+1;
else
q=2.3*(1+0.2)*(m-3)+13+1;
}
return q;
}
int main(void)
{float x,y,sum;
x=fun(9,12);
y=fun(18,12);
sum=x+y;
printf("晓明一天的打车总费用是%f\n",sum);
return 0;
}