Compile Error
foo.cc: In function 'int main()':
foo.cc:24:16: error: 'Time::Time(int, int, int)' is private within this context
   24 |  Time t(h, m, s);
      |                ^
foo.cc:6:2: note: declared private here
    6 |  Time(int h, int m, int s) {
      |  ^~~~
foo.cc:27:30: error: 'int Time::minus(int, int, int)' is private within this context
   27 |  int total=t.minus(h1, m1, s1);
      |                              ^
foo.cc:11:6: note: declared private here
   11 |  int minus(int h, int m, int s) {
      |      ^~~~~
  [Hydro](https://hydro.ac)提供评测服务
信息
- 递交者
 - 类型
 - 递交
 - 题目
 - P1001 OO1-2 时间类Time
 - 比赛
 - 2022春 面向对象程序设计方法的上机作业
 - 语言
 - C++
 - 递交时间
 - 2022-05-12 22:08:56
 - 评测时间
 - 2022-05-12 22:08:56
 - 评测机
 
- 分数
 - 0
 - 总耗时
 - 0ms
 - 峰值内存
 - 0 Bytes