这个编程出什么问题了,求助大佬
题目是#include
void main()
{
int leap,month,day,d,y;
scanf("%d%d%d",&leap,&month,&day);
if (leap%4==0)
if(leap%100==0 && leap%400!=0)
{y=0;}
else y=1;
else y=0;
if (y==0)
switch(month-1)
{case 0:d=0;break;
case 1: d=31;break;
case 2:d=59;break;
case 3:d=90;break;
case 4:d=120;break;
case 5:d=151;break;
case 6:d=181;break;
case 7:d=212;break;
case 8:d=243;break;
case 9:d=273;break;
case 10:d=304;break;
case 11:d=334;break;}
printf("是第%d天\n",d+day);
if (y==1)
switch(month-1)
{case 0:d=0;break;
case 1: d=31;break;
case 2:d=60;break;
case 3:d=91;break;
case 4:d=121;break;
case 5:d=152;break;
case 6:d=182;break;
case 7:d=213;break;
case 8:d=244;break;
case 9:d=274;break;
case 10:d=305;break;
case 11:d=335;break;}
printf("是第%d天\n",d+day);
}