记录详情

Wrong Answer

foo.cc: In function ‘int main()’:
foo.cc:10:26: warning: right operand of comma operator has no effect [-Wunused-value]
   10 |                 if(b=4,6,9,11)
      |                          ^
foo.cc:10:28: warning: right operand of comma operator has no effect [-Wunused-value]
   10 |                 if(b=4,6,9,11)
      |                            ^~
foo.cc:13:15: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
   13 |           if(b=2)
      |              ~^~
foo.cc:19:21: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
   19 |                 if(b=2)
      |                    ~^~
foo.cc:23:18: warning: right operand of comma operator has no effect [-Wunused-value]
   23 |         if(b=4,6,9,11)
      |                  ^
foo.cc:23:20: warning: right operand of comma operator has no effect [-Wunused-value]
   23 |         if(b=4,6,9,11)
      |                    ^~
foo.cc:18:7: warning: suggest explicit braces to avoid ambiguous ‘else’ [-Wdangling-else]
   18 |     if(a%400==r)
      |       ^
foo.cc:18:5: warning: ‘r’ is used uninitialized [-Wuninitialized]
   18 |     if(a%400==r)
      |     ^~
foo.cc:6:14: note: ‘r’ was declared here
    6 |    int a,b,c,r;
      |              ^
# 状态 耗时 内存占用
#1 Wrong Answer Read 30, expect 28. 2ms 536.0 KiB
#2 Wrong Answer Read 30, expect 28. 2ms 536.0 KiB
#3 Wrong Answer Read 28, expect 29. 2ms 324.0 KiB
#4 Wrong Answer Read 30, expect 31. 2ms 536.0 KiB
#5 Wrong Answer Read 28, expect 30. 2ms 324.0 KiB

信息

递交者
类型
递交
题目
A1-3 分支结构练习:月份天数
比赛
南师大(含泰州学院)2024年新生赛(第一场)
语言
C++
递交时间
2024-08-15 09:04:40
评测时间
2024-08-15 09:04:40
评测机
分数
0
总耗时
13ms
峰值内存
536.0 KiB