记录详情

Accepted

/in/foo.cc: In member function 'int Datetime::day()':
/in/foo.cc:22:30: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
   22 |                 if(nian%4==0 && nian%100!=0||nian%400==0)
      |                    ~~~~~~~~~~^~~~~~~~~~~~~~
/in/foo.cc:21:15: warning: suggest explicit braces to avoid ambiguous 'else' [-Wdangling-else]
   21 |             if(yue==2)
      |               ^
/in/foo.cc:26:9: warning: control reaches end of non-void function [-Wreturn-type]
   26 |         }
      |         ^
# 状态 耗时 内存占用
#1 Accepted 4ms 640.0 KiB
#2 Accepted 3ms 712.0 KiB
#3 Accepted 2ms 632.0 KiB
#4 Accepted 2ms 680.0 KiB
#5 Accepted 2ms 636.0 KiB

信息

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