不知道哪里错了 老是出现 else without a previous if
#incude<iostream>using namespace std;
int main(){
int year;
scanf("%d",year);
if(year<=0)
printf("illegal year"\n);
else{
printf("legal year\n);
if else (year>1949&&(year-1949)%10==0)
printf("luky year\n");
if else(year>1921&&!((year-1921)%10))
printf ("good year\n");
if else (year%10=0&&year%100||year%7400)
printf("leap year\n);
}
return 0;
}