记录详情

Compile Error

/in/foo.cc:176:5: error: 'time' does not name a type
     time T;
     ^~~~
/in/foo.cc: In constructor 'datetime::datetime(int, int, int, int, int, int)':
/in/foo.cc:178:62: error: class 'datetime' does not have any field named 'T'
     datetime(int y,int m,int d,int h,int min,int s):D(y,m,d),T(h,min,s){}
                                                              ^
/in/foo.cc: In member function 'void datetime::secadd(int)':
/in/foo.cc:181:17: error: 'T' was not declared in this scope
         int day=T.add(x);
                 ^
/in/foo.cc: In member function 'void datetime::output()':
/in/foo.cc:187:9: error: 'T' was not declared in this scope
         T.output();
         ^

信息

递交者
类型
递交
题目
P1304 OO1-5 日期时间类DateTime
语言
C++
递交时间
2024-03-13 20:14:14
评测时间
2024-03-13 20:14:14
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes