Wrong Answer

foo.cc: In function 'int main()':
foo.cc:11:40: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
      case 2:day=(year%4==0||year%400==0&&year%100!=0?29:28);break;
                             ~~~~~~~~~~~^~~~~~~~~~~~~
foo.cc:13:11: warning: 'day' may be used uninitialized in this function [-Wmaybe-uninitialized]
     cout<<day<<endl;        
           ^~~
自豪的采用HydroJudge(https://github.com/hydro-dev/Hydro)进行评测。
# 状态 耗时 内存占用
#1 Accepted 1ms 384.0 KiB
#2 Accepted 2ms 384.0 KiB
#3 Wrong Answer Read 29, expect 28. 1ms 384.0 KiB
#4 Accepted 1ms 384.0 KiB
#5 Accepted 1ms 384.0 KiB

信息

递交者
类型
递交
题目
P1004 成绩表
语言
C++
递交时间
2021-04-14 16:44:17
评测时间
2021-04-14 16:44:17
评测机
分数
80
总耗时
9ms
峰值内存
384.0 KiB