记录详情

Wrong Answer

/in/foo.cc: In member function 'int Date::is_leap()':
/in/foo.cc:32:20: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
   if (y % 100 != 0 && y % 4 == 0 || y % 400 == 0)
       ~~~~~~~~~~~~~^~~~~~~~~~~~~
/in/foo.cc: In constructor 'DateTime::DateTime(int, int, int, int, int, int)':
/in/foo.cc:64:7: warning: 'DateTime::d' will be initialized after [-Wreorder]
  Date d;
       ^
/in/foo.cc:63:7: warning:   'Time DateTime::t' [-Wreorder]
  Time t;
       ^
/in/foo.cc:66:2: warning:   when initialized here [-Wreorder]
  DateTime(int y, int m, int d, int h, int mm, int s) :d(y, m, d), t(h, mm, s) {}
  ^~~~~~~~
# 状态 耗时 内存占用
#1 Wrong Answer 1ms 376.0 KiB
#2 Wrong Answer 1ms 336.0 KiB
#3 Wrong Answer 1ms 344.0 KiB
#4 Wrong Answer 1ms 376.0 KiB
#5 Wrong Answer 1ms 344.0 KiB

信息

递交者
类型
递交
题目
P1006 OO1-5 日期时间类DateTime
语言
C++
递交时间
2024-05-29 16:07:05
评测时间
2024-05-29 16:07:05
评测机
分数
0
总耗时
7ms
峰值内存
376.0 KiB