大佬帮忙指点一下哪里错了
#include <stdio.h>
int main()
{
/* 定义需要计算的日期 */
int year = 2008;
int month = 8;
int day = 8;
int k,sum,i=0,j=0,f=0,n=0;
for(k=0;k<=month;k++)
{
switch(k)
{
case 0:
n=0;
break;
case 1:
case 3:
case 5:
case 7:
case 8:
case 10:
case 12:
j+=31;
break;
case 2:
f+=28;
break;
case 4:
case 6:
case 9:
case 11:
i+=30;
break;
}
sum=i+j+f+n+day;
if(year%400==0&&month>2)
{
printf("这是一年中的第%d天",sum+1);
}
else
{
printf("这是一年中的第%d天",sum);
}
return 0;
}