记录详情

Accepted

/in/foo.cc: In member function 'bool Date::Isleap(int)':
/in/foo.cc:12:32: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
   12 |                 return y%100!=0&&y%4==0||y%400==0;
      |                        ~~~~~~~~^~~~~~~~
/in/foo.cc: In member function 'bool Date::Isleap()':
/in/foo.cc:16:32: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
   16 |                 return y%100!=0&&y%4==0||y%400==0;
      |                        ~~~~~~~~^~~~~~~~
# 状态 耗时 内存占用
#1 Accepted 2ms 500.0 KiB
#2 Accepted 1ms 460.0 KiB
#3 Accepted 2ms 540.0 KiB
#4 Accepted 2ms 392.0 KiB
#5 Accepted 1ms 484.0 KiB

信息

递交者
类型
递交
题目
P1005 OO1-4 日期类Date
比赛
2024级《面向对象的方法与实践》第一次作业
语言
C++
递交时间
2025-03-14 19:56:04
评测时间
2025-03-14 19:56:04
评测机
分数
100
总耗时
10ms
峰值内存
540.0 KiB