记录详情

Compile Error

/in/foo.cc: In function 'int main()':
/in/foo.cc:36:7: error: expected ';' before 't1'
  time t1(h1,m1,s1);  
       ^~
/in/foo.cc:36:19: warning: statement is a reference, not call, to function 'time' [-Waddress]
  time t1(h1,m1,s1);  
                   ^
/in/foo.cc:36:19: warning: statement has no effect [-Wunused-value]
/in/foo.cc:37:7: error: expected ';' before 't2'
  time t2(h2,m2,s2);
       ^~
/in/foo.cc:37:19: warning: statement is a reference, not call, to function 'time' [-Waddress]
  time t2(h2,m2,s2);
                   ^
/in/foo.cc:37:19: warning: statement has no effect [-Wunused-value]
/in/foo.cc:38:10: error: 't1' was not declared in this scope
  while(!(t1==t2))
          ^~
/in/foo.cc:38:14: error: 't2' was not declared in this scope
  while(!(t1==t2))
              ^~

信息

递交者
类型
递交
语言
C++
递交时间
2021-06-23 15:58:46
评测时间
2021-06-23 15:58:46
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes