记录详情

Compile Error

foo.cc: In function 'int main()':
foo.cc:21:7: error: expected ';' before 'g1'
  time g1(a[0],a[1],a[2]);
       ^~
foo.cc:21:25: warning: statement is a reference, not call, to function 'time' [-Waddress]
  time g1(a[0],a[1],a[2]);
                         ^
foo.cc:21:25: warning: statement has no effect [-Wunused-value]
foo.cc:23:7: error: expected ';' before 'g2'
  time g2(b[0],b[1],b[2]);
       ^~
foo.cc:23:25: warning: statement is a reference, not call, to function 'time' [-Waddress]
  time g2(b[0],b[1],b[2]);
                         ^
foo.cc:23:25: warning: statement has no effect [-Wunused-value]
foo.cc:24:10: error: 'g1' was not declared in this scope
  int ans=g1.minus(g2);
          ^~
foo.cc:24:19: error: 'g2' was not declared in this scope
  int ans=g1.minus(g2);
                   ^~
自豪的采用HydroJudge(https://github.com/hydro-dev/Hydro)进行评测。

信息

递交者
类型
递交
题目
P1001 OO1-2 时间类Time
语言
C++
递交时间
2021-06-29 14:18:47
评测时间
2021-06-29 14:18:47
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes