老师帮我看一下哪里错了
#include <stdio.h>
int main()
{
int year = 2008;
int month = 8;
int day = 8;
int sum;
switch(year)
{
case 1:
if(year%4==0)
switch(month)
{
case 1:sum+=day;break;
case 2:sum=31+day;break;
case 3:sum=31+29+day;break;
case 4:sum=31+29+31+day;break;
case 5:sum=31+29+30+31+day;break;
case 8:sum=31+29+31+30+31+30+31+day;break;
}
case 2:
if(year%4!=0)
switch(month)
{
case 8:sum=31+28+31+30+31+30+31+day;break;
}
}
printf("%d",sum);
return 0;
}