Compile Error
/in/foo.cc: In function 'int main()': /in/foo.cc:50:14: error: conflicting declaration 'Date d' 50 | Date d(y,m,d); | ^ /in/foo.cc:47:17: note: previous declaration as 'int d' 47 | int y,m,d,num; | ^ /in/foo.cc:51:11: error: request for member 'Add' in 'd', which is of non-class type 'int' 51 | d.Add(num); | ^~~ /in/foo.cc:52:11: error: request for member 'Output' in 'd', which is of non-class type 'int' 52 | d.Output(); | ^~~~~~
信息
- 递交者
- 类型
- 自测
- 题目
- P1003 OO1-3 日期类Date
- 语言
- C++
- 递交时间
- 2025-03-14 18:51:06
- 评测时间
- 2025-03-14 18:51:06
- 评测机
- 分数
- 0
- 总耗时
- 0ms
- 峰值内存
- 0 Bytes