记录详情

Accepted

foo.cc: In function 'int monthday(int, int)':
foo.cc:42:2: warning: this 'else' clause does not guard... [-Wmisleading-indentation]
  else
  ^~~~
foo.cc:47: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 main()':
foo.cc:59:7: warning: 'sum' may be used uninitialized in this function [-Wmaybe-uninitialized]
    sum=sum+day ; 
    ~~~^~~~~~~~
foo.cc:53:7: note: 'sum' was declared here
   int sum;
       ^~~
foo.cc: In function 'int godays(int, int, int)':
foo.cc:59:7: warning: 'sum' may be used uninitialized in this function [-Wmaybe-uninitialized]
    sum=sum+day ; 
    ~~~^~~~~~~~
# 状态 耗时 内存占用
#1 Accepted 1ms 384.0 KiB
#2 Accepted 2ms 384.0 KiB
#3 Accepted 1ms 384.0 KiB
#4 Accepted 2ms 384.0 KiB
#5 Accepted 1ms 384.0 KiB

信息

递交者
类型
递交
比赛
2020苏青奥赛集训营(2021-1-31课堂小练)
语言
C++
递交时间
2021-01-31 15:46:12
评测时间
2021-01-31 15:46:12
评测机
分数
100
总耗时
9ms
峰值内存
384.0 KiB