Compile Error
foo.cc:3:20: error: ISO C++ forbids declaration of 'isLeapYear' with no type [-fpermissive]
3 | isLeapYear(int year)
| ^
foo.cc: In function 'int daysOfMonth(int, int)':
foo.cc:13:3: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
13 | if(i==4||i==6||i==9||i==11)t+=30;i++;
| ^~
foo.cc:13:36: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if'
13 | if(i==4||i==6||i==9||i==11)t+=30;i++;
| ^
[Hydro](https://hydro.ac)提供评测服务
信息
- 递交者
- 类型
- 递交
- 题目
- P1073 闰年、年天数、月天数-函数
- 语言
- C++
- 递交时间
- 2022-07-30 17:08:54
- 评测时间
- 2022-07-30 17:08:54
- 评测机
- 分数
- 0
- 总耗时
- 0ms
- 峰值内存
- 0 Bytes