记录详情

Compile Error

/in/foo.cc: In function 'int main()':
/in/foo.cc:22:24: error: 's1' was not declared in this scope; did you mean 's2'?
   22 |     cin >> h1 >> m1 >> s1;
      |                        ^~
      |                        s2
/in/foo.cc:23:12: error: 'h2' was not declared in this scope; did you mean 's2'?
   23 |     cin >> h2 >> m2 >> s2;
      |            ^~
      |            s2
/in/foo.cc:27:29: error: 't2\U0000ff09\U0000ff1b' was not declared in this scope
   27 |         int time2=t2.Second(t2);
      |                             ^~~~~~
/in/foo.cc:20:15: warning: unused variable 's1h2' [-Wunused-variable]
   20 |     int h1,m1,s1h2,m2,s2;
      |               ^~~~
/in/foo.cc:26:13: warning: unused variable 'time1' [-Wunused-variable]
   26 |         int time1=t1.Second(t1);
      |             ^~~~~
/in/foo.cc:27:13: warning: unused variable 'time2' [-Wunused-variable]
   27 |         int time2=t2.Second(t2);
      |             ^~~~~

信息

递交者
类型
自测
题目
P1001 OO1-2 时间类Time
语言
C++
递交时间
2025-03-14 18:35:05
评测时间
2025-03-14 18:35:05
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes