请问哪里错了,求大神详解,万分感谢~~
#include <stdio.h>
int main()
{
int year = 2008;
int month = 8;
int day = 8;
switch(day)
{
case 1:day=0;break;
case 2:day=31;break;
case 3:day+=29;
if(year%400=0)
flag=1;
else
flag=0;day+=28;
break;
case 4:day+=31;break;
case 5:day+=30;break;
case 6:day+=31;break;
case 7:day+=30;break;
case 8:day+=31;break;
case 9:day+=31;break;
case 10:day+=30;break;
case 11:day+=31;break;
case 12:day+=30;break;
default:day+=8;break;
printf("%d年%d月%d日是改年的第%d天", year,month,day);
return 0;
}