#include
int r(int year); //这里被你写成s了
void main()
{
int year,month,day,tianshu,i;
int a[12]={31,28,31,30,31,30,31,31,30,31,30,31};
printf("输入年月日");
scanf("%d%d%d",&year,&month,&day);
tianshu=0;
for(i=0;itianshu=tianshu+a[i];
if( r(year))
if(month>2)
tianshu=tianshu+day+1;
else tianshu=tianshu+day;
else tianshu=tianshu+day;
printf("%d",tianshu);
}
int r(int year) //;这里多了一个分号
{
if(year%4==0&&year%100!=0||year%400==0)
return(1);
else return(0);
}