Compile Error
foo.cc: In function 'int isLeapYear(int)': foo.cc:5:14: warning: suggest parentheses around '&&' within '||' [-Wparentheses] 5 | if(year%4==0&&year%100!=0||year%400==0) | ~~~~~~~~~^~~~~~~~~~~~~ foo.cc: In function 'int main()': foo.cc:57:35: error: 'month' was not declared in this scope 57 | first=weekdayOfTheFirstDay(year,month); | ^~~~~
[Hydro](https://hydro.ac)提供评测服务
信息
- 递交者
- 类型
- 递交
- 题目
- P1076 打印年历
- 语言
- C++
- 递交时间
- 2022-07-15 21:54:27
- 评测时间
- 2022-07-15 21:54:27
- 评测机
- 分数
- 0
- 总耗时
- 0ms
- 峰值内存
- 0 Bytes