记录详情

Compile Error

foo.cc: In function 'int main()':
foo.cc:21:25: error: 'cin' was not declared in this scope
   21 |     int x1, y1, z1;     cin >> x1 >> y1 >> z1;
      |                         ^~~
foo.cc:24:8: error: 'class Time' has no member named 'inopt'
   24 |     t2.inopt(x2, y2, z2);    t1.inopt(x1, y1, z1);
      |        ^~~~~
foo.cc:24:33: error: 'class Time' has no member named 'inopt'
   24 |     t2.inopt(x2, y2, z2);    t1.inopt(x1, y1, z1);
      |                                 ^~~~~
foo.cc:25:5: error: 'cout' was not declared in this scope
   25 |     cout << t1.timeconsion() - t2.timeconsion();
      |     ^~~~
foo.cc:26:14: error: expected '}' at end of input
   26 |     return 0;
      |              ^
foo.cc:20:1: note: to match this '{'
   20 | {
      | ^
[Hydro](https://hydro.ac)提供评测服务

信息

递交者
类型
递交
题目
P1001 OO1-2 时间类Time
语言
C++
递交时间
2023-05-20 10:35:30
评测时间
2023-05-20 10:35:30
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes