记录详情

Compile Error

/in/foo.cc:11:25: error: expected ',' or '...' before '.' token
   11 |         Time(int h,int m.int s):hour(h),min(m),second(s)
      |                         ^
/in/foo.cc: In constructor 'Time::Time(int, int)':
/in/foo.cc:11:55: error: 's' was not declared in this scope
   11 |         Time(int h,int m.int s):hour(h),min(m),second(s)
      |                                                       ^
/in/foo.cc: In function 'int main()':
/in/foo.cc:26:14: error: 'a1' was not declared in this scope
   26 |         cin>>a1>>b1>>c1;
      |              ^~
/in/foo.cc:26:18: error: 'b1' was not declared in this scope
   26 |         cin>>a1>>b1>>c1;
      |                  ^~
/in/foo.cc:26:22: error: 'c1' was not declared in this scope
   26 |         cin>>a1>>b1>>c1;
      |                      ^~
/in/foo.cc:27:14: error: 'a2' was not declared in this scope
   27 |         cin>>a2>>b2>>c2;
      |              ^~
/in/foo.cc:27:18: error: 'b2' was not declared in this scope
   27 |         cin>>a2>>b2>>c2;
      |                  ^~
/in/foo.cc:27:22: error: 'c2' was not declared in this scope
   27 |         cin>>a2>>b2>>c2;
      |                      ^~

信息

递交者
类型
递交
题目
P1416 1 时间类(生死过程)
语言
C++
递交时间
2025-06-15 13:30:00
评测时间
2025-06-15 13:30:00
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes