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