Compile Error

foo.cc: In function 'int main()':
foo.cc:8:17: error: 'days' was not declared in this scope
    8 |                 days=31;
      |                 ^~~~
foo.cc:9:66: error: expected primary-expression before ')' token
    9 |         else if( month==4 || month==6 || month==9 || month==11 ||)
      |                                                                  ^
foo.cc:10:17: error: 'days' was not declared in this scope
   10 |                 days=30;
      |                 ^~~~
foo.cc:13:38: error: expected primary-expression before '!=' token
   13 |                 if(year%4==0 && year%!=0 || year%400==0)
      |                                      ^~
foo.cc:14:25: error: 'days' was not declared in this scope
   14 |                         days=29;
      |                         ^~~~
foo.cc:17:17: error: 'days' was not declared in this scope
   17 |                 days=28;
      |                 ^~~~
[Hydro](https://hydro.ac)提供评测服务

信息

递交者
类型
递交
题目
P1023 某月的天数
语言
C++
递交时间
2023-12-08 15:42:46
评测时间
2023-12-08 15:42:46
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes