Compile Error
/in/foo.cc: In member function 'void Date::Diff(int)': /in/foo.cc:14:17: error: 'months' was not declared in this scope; did you mean 'month'? 14 | months[12]={0,31,28+isLeap(year),31,30,31,30,31,31,30,31,30,31}; | ^~~~~~ | month /in/foo.cc: In function 'int main()': /in/foo.cc:42:10: error: no match for call to '(Date) (int&, int&, int&)' 42 | d(year,month,day); | ~^~~~~~~~~~~~~~~~
信息
- 递交者
- 类型
- 递交
- 题目
- P1003 OO1-3 日期类Date
- 语言
- C++
- 递交时间
- 2025-03-17 17:08:40
- 评测时间
- 2025-03-17 17:08:40
- 评测机
- 分数
- 0
- 总耗时
- 0ms
- 峰值内存
- 0 Bytes