Compile Error
/in/foo.cc: In member function 'int DateTime::calculateSeconds(const DateTime&) const': /in/foo.cc:58:38: error: no matching function for call to 'DateTime::getDayOfYear(const DateTime&) const' seconds += getDayOfYear(other) * 24 * 60 * 60; ^ /in/foo.cc:90:9: note: candidate: int DateTime::getDayOfYear(const Date&) const int getDayOfYear(const Date& date) const { ^~~~~~~~~~~~ /in/foo.cc:90:9: note: no known conversion for argument 1 from 'const DateTime' to 'const Date&'
信息
- 递交者
- 类型
- 递交
- 题目
- P1008 OO1-6 日期时间类DateTime
- 语言
- C++
- 递交时间
- 2023-12-11 22:47:54
- 评测时间
- 2023-12-11 22:47:54
- 评测机
- 分数
- 0
- 总耗时
- 0ms
- 峰值内存
- 0 Bytes