记录详情

Accepted

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

信息

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