Compile Error
/in/foo.cc: In function 'int main()':
/in/foo.cc:10:5: error: 'Time' was not declared in this scope; did you mean 'time'?
10 | Time t(h, m, s);
| ^~~~
| time
/in/foo.cc:11:9: error: expected ';' before 'res'
11 | Time res = t.addSeconds(num);
| ^~~~
| ;
/in/foo.cc:12:5: error: 'res' was not declared in this scope
12 | res.show();
| ^~~
信息
- 递交者
- 类型
- 递交
- 题目
- P1009 contest1-1 时间类Time
- 比赛
- 2026-11-13 C++实测1
- 语言
- C++
- 递交时间
- 2026-11-13 19:34:25
- 评测时间
- 2026-11-13 19:34:25
- 评测机
- 分数
- 0
- 总耗时
- 0ms
- 峰值内存
- 0 Bytes