记录详情

Wrong Answer

foo.cc: In function 'int main()':
foo.cc:14:31: warning: left operand of comma operator has no effect [-Wunused-value]
   14 |                 else if (month==1,3,5,7,8,10,12)
      |                          ~~~~~^~~
foo.cc:14:37: warning: right operand of comma operator has no effect [-Wunused-value]
   14 |                 else if (month==1,3,5,7,8,10,12)
      |                                     ^
foo.cc:14:39: warning: right operand of comma operator has no effect [-Wunused-value]
   14 |                 else if (month==1,3,5,7,8,10,12)
      |                                       ^
foo.cc:14:41: warning: right operand of comma operator has no effect [-Wunused-value]
   14 |                 else if (month==1,3,5,7,8,10,12)
      |                                         ^
foo.cc:14:43: warning: right operand of comma operator has no effect [-Wunused-value]
   14 |                 else if (month==1,3,5,7,8,10,12)
      |                                           ^~
foo.cc:14:46: warning: right operand of comma operator has no effect [-Wunused-value]
   14 |                 else if (month==1,3,5,7,8,10,12)
      |                                              ^~
foo.cc:30:32: warning: left operand of comma operator has no effect [-Wunused-value]
   30 |                 else if (month == 1, 3, 5, 7, 8, 10, 12)
      |                          ~~~~~~^~~~
foo.cc:30:41: warning: right operand of comma operator has no effect [-Wunused-value]
   30 |                 else if (month == 1, 3, 5, 7, 8, 10, 12)
      |                                         ^
foo.cc:30:44: warning: right operand of comma operator has no effect [-Wunused-value]
   30 |                 else if (month == 1, 3, 5, 7, 8, 10, 12)
      |                                            ^
foo.cc:30:47: warning: right operand of comma operator has no effect [-Wunused-value]
   30 |                 else if (month == 1, 3, 5, 7, 8, 10, 12)
      |                                               ^
foo.cc:30:50: warning: right operand of comma operator has no effect [-Wunused-value]
   30 |                 else if (month == 1, 3, 5, 7, 8, 10, 12)
      |                                                  ^~
foo.cc:30:54: warning: right operand of comma operator has no effect [-Wunused-value]
   30 |                 else if (month == 1, 3, 5, 7, 8, 10, 12)
      |                                                      ^~
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Accepted 7ms 828.0 KiB
#2 Accepted 6ms 792.0 KiB
#3 Wrong Answer Read 29, expect 28. 4ms 792.0 KiB
#4 Wrong Answer Read 31, expect 30. 6ms 792.0 KiB
#5 Accepted 6ms 792.0 KiB

信息

递交者
类型
递交
题目
A1-3 分支结构练习:月份天数
比赛
2023年新生赛(第一场)
语言
C++
递交时间
2023-08-15 10:17:32
评测时间
2023-08-15 10:17:32
评测机
分数
60
总耗时
31ms
峰值内存
828.0 KiB