./Main.java:1: error: class, interface, or enum expected
struct Date
^
./Main.java:4: error: class, interface, or enum expected
int month;
^
./Main.java:5: error: class, interface, or enum expected
int day;
^
./Main.java:6: error: class, interface, or enum expected
};
^
./Main.java:8: error: class, interface, or enum expected
int month1[12] = {31,29,31,30,31,30,31,31,30,31,30,31};
^
./Main.java:9: error: class, interface, or enum expected
int month2[12] = {31,28,31,30,31,30,31,31,30,31,30,31};
^
./Main.java:11: error: class, interface, or enum expected
int isLeap(int year)
^
./Main.java:15: error: class, interface, or enum expected
else
^
./Main.java:17: error: class, interface, or enum expected
}
^
./Main.java:22: error: class, interface, or enum expected
int sum = 0;
^
./Main.java:23: error: class, interface, or enum expected
if(isLeap(y))
^
./Main.java:25: error: class, interface, or enum expected
for(i = 0;i<m-1;i++)
^
./Main.java:25: error: class, interface, or enum expected
for(i = 0;i<m-1;i++)
^
./Main.java:28: error: class, interface, or enum expected
}
^
./Main.java:31: error: class, interface, or enum expected
}
^
./Main.java:34: error: class, interface, or enum expected
for(i = 0;i<m-1;i++)
^
./Main.java:34: error: class, interface, or enum expected
for(i = 0;i<m-1;i++)
^
./Main.java:37: error: class, interface, or enum expected
}
^
./Main.java:39: error: class, interface, or enum expected
}
^
./Main.java:41: error: class, interface, or enum expected
}
^
./Main.java:46: error: class, interface, or enum expected
Date D1,D2;
^
./Main.java:47: error: class, interface, or enum expected
scanf("%d%d%d%d%d%d",&D1.year,&D1.month,&D1.day,&D2.year,&D2.month,&D2.day);
^
./Main.java:49: error: class, interface, or enum expected
int tol = 0;
^
./Main.java:50: error: class, interface, or enum expected
for(i = 0;i<= D2.year - D1.year - 1;i++)
^
./Main.java:50: error: class, interface, or enum expected
for(i = 0;i<= D2.year - D1.year - 1;i++)
^
./Main.java:50: error: class, interface, or enum expected
for(i = 0;i<= D2.year - D1.year - 1;i++)
^
./Main.java:53: error: class, interface, or enum expected
}
^
./Main.java:55: error: class, interface, or enum expected
int day2 = transform(D2.year,D2.month,D2.day);
^
./Main.java:57: error: class, interface, or enum expected
tol -= day1;
^
./Main.java:58: error: class, interface, or enum expected
tol += day2;
^
./Main.java:60: error: class, interface, or enum expected
printf("%d\n",tol);
^
./Main.java:61: error: class, interface, or enum expected
return 0;
^
./Main.java:62: error: class, interface, or enum expected
}
^
33 errors
[Hydro](https://hydro.ac)提供评测服务