记录详情

Compile Error

foo.cc: In function 'std::ostream operator<<(std::ostream&, myclass&)':
foo.cc:13:9: warning: no return statement in function returning non-void [-Wreturn-type]
   13 |         };
      |         ^
foo.cc: At global scope:
foo.cc:40:1: error: redefinition of 'myclass::myclass(int, int, int, int, int, int)'
   40 | myclass::myclass(int x1=0, int x2=0, int x3=0, int x4=0, int x5=0, int x6=0) :y(x1), m1(x2), d(x3), h(x4), m2(x5), s(x6) {};
      | ^~~~~~~
foo.cc:9:9: note: 'myclass::myclass(int, int, int, int, int, int)' previously defined here
    9 |         myclass(int y, int m1, int d, int h, int m2, int s) {};
      |         ^~~~~~~
[Hydro](https://hydro.ac)提供评测服务

信息

递交者
类型
递交
题目
P1006 OO1-5 日期时间类DateTime
语言
C++
递交时间
2023-05-12 16:28:01
评测时间
2023-05-12 16:28:01
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes