Compile Error

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)提供评测服务

信息

递交者
类型
递交
题目
P1023 某月的天数
语言
C++
递交时间
2021-11-27 20:27:24
评测时间
2021-11-27 20:27:24
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes