记录详情

Wrong Answer

foo.cc: In function 'int MonthDay(int, int)':
foo.cc:32:2: warning: this 'else' clause does not guard... [-Wmisleading-indentation]
  else
  ^~~~
foo.cc:35:3: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'else'
   return day;
   ^~~~~~
foo.cc: In function 'int GoDays(int, int, int)':
foo.cc:40:2: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
  for(int m=1; m<month; m++)
  ^~~
foo.cc:42:3: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for'
   return sum;
   ^~~~~~
foo.cc: In function 'int main()':
foo.cc:38:7: warning: 'sum' may be used uninitialized in this function [-Wmaybe-uninitialized]
  {int sum;
       ^~~
foo.cc: In function 'int GoDays(int, int, int)':
foo.cc:38:7: warning: 'sum' may be used uninitialized in this function [-Wmaybe-uninitialized]
# 状态 耗时 内存占用
#1 Wrong Answer Read {0}, expect {1}. ["0","1"] 1ms 384.0 KiB
#2 Accepted 2ms 384.0 KiB
#3 Wrong Answer Read {0}, expect {1}. ["341","365"] 2ms 384.0 KiB
#4 Wrong Answer Read {0}, expect {1}. ["341","365"] 2ms 384.0 KiB
#5 Wrong Answer Read {0}, expect {1}. ["341","344"] 2ms 384.0 KiB

信息

递交者
类型
递交
题目
A1-4 分支结构练习:今年过去了多少天
比赛
2020苏青奥赛集训营(2021-1-31课堂小练)
语言
C++
递交时间
2021-01-31 12:56:01
评测时间
2021-01-31 12:56:01
评测机
分数
20
总耗时
10ms
峰值内存
384.0 KiB