foo.cc: In function 'int main()':
foo.cc:20:58: error: expected statement at end of input
if(month==2 && ((year%4==0&&year%100!=0) || year%400==0))
^
foo.cc:20:2: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
if(month==2 && ((year%4==0&&year%100!=0) || year%400==0))
^~
cc1plus: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if'
foo.cc:20:58: error: expected '}' at end of input
if(month==2 && ((year%4==0&&year%100!=0) || year%400==0))
^
[Hydro](https://hydro.ac)提供评测服务