记录详情

Compile Error

/in/foo.cc: In function 'int main()':
/in/foo.cc:29:7: error: expected ';' before 'k'
  time k;
       ^
/in/foo.cc:29:8: warning: statement is a reference, not call, to function 'time' [-Waddress]
  time k;
        ^
/in/foo.cc:29:8: warning: statement has no effect [-Wunused-value]
/in/foo.cc:30:2: error: 'k' was not declared in this scope
  k.input();
  ^
/in/foo.cc:27:6: warning: unused variable 'h1' [-Wunused-variable]
  int h1,m1,s1;
      ^~
/in/foo.cc:27:9: warning: unused variable 'm1' [-Wunused-variable]
  int h1,m1,s1;
         ^~
/in/foo.cc:27:12: warning: unused variable 's1' [-Wunused-variable]
  int h1,m1,s1;
            ^~
/in/foo.cc:28:6: warning: unused variable 'h2' [-Wunused-variable]
  int h2,m2,s2;
      ^~
/in/foo.cc:28:9: warning: unused variable 'm2' [-Wunused-variable]
  int h2,m2,s2;
         ^~
/in/foo.cc:28:12: warning: unused variable 's2' [-Wunused-variable]
  int h2,m2,s2;
            ^~

信息

递交者
类型
自测
题目
P1001 OO1-2 时间类Time
语言
C++
递交时间
2021-06-22 11:42:01
评测时间
2021-06-22 11:42:01
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes