新手求教啊 帮忙看看有错没
输入年月日,求这天是今年第几天的问题#include<stdio.h>
int main()
{
int a,b,c,t;
while(scanf("%d%d%d",&a,&b,&c)!=EOF)
{
if(a%4==0 && a%100!=0 || a%400==0)
t=29;
else
t=28;
switch(b)
{
catch 1; pfintf("%d\n",c);break;
catch 2; pfintf("%d\n",31+c);break;
catch 3; pfintf("%d\n",31+t+c);break;
catch 4; pfintf("%d\n",31+t+31+c);break;
catch 5; pfintf("%d\n",31+t+31+30+t);break;
catch 6; pfintf("%d\n",31+t+31+30+31+t);break;
catch 7; pfintf("%d\n",31+t+31+30+31+30+t);break;
catch 8; pfintf("%d\n",31+t+31+30+31+30+31+c);break;
catch 9; pfintf("%d\n",31+t+31+30+31+30+31+31+c);break;
catch 10; pfintf("%d\n",31+t+31+30+31+30+31+31+30+c);break;
catch 11; pfintf("%d\n"31+t+31+30+31+30+31+31+30+31+t,);break;
catch 12; pfintf("%d\n"31+t+31+30+31+30+31+31+30+31+30+t,);break;
}
}
}