请问我这个哪里错了,提示expected declaration or statement at end of input
#include <stdio.h>
float pay(int z,int s)
{
float y;
if(s<=3)
{
y=14;
printf("费用为14元");
}
else
{
if(z>=5&&z<23)
{
y=14+(s-3)*2.3;
}
else
{
y=14+(s-3)*1.2*2.3;
}
return y;
}
int main()
{
printf("费用为%f元",pay(9,12)+pay(18,12));
return 0;
}