这为啥运行不了,怎么改呢
#include <stdio.h>
int setup=13;
int morning=9;
int night=18;
int sum
int cost(int kilo)
{
if(nigt>=23 or morninh<=5)
{
sum=setup+(kilo-3)*1.2*2.3+1;
else
sum=setup+(kilo-3)*2.3+1;
}
return sum;
}
int main()
{
cost(12)
printf("小明的车费是%d\n",sum);
return 0;
}