嗯 我明白了 谢谢各位啦。。。。
scanf("year=%d",&year);改为scanf("%d",&year);
if(leap=1)
printf("%d is a leap year\n",year);
else(leap=0);
printf("%d is not a leap year\n",year);
判断的条件应该用==而不是=。
最后的else后直接跟printf语句