记录详情

Accepted

foo.cc: In function 'int main()':
foo.cc:11:2: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
  for(int m=1;m<month;m++)
  ^~~
foo.cc:13:3: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for'
   cout<<sum<<endl;
   ^~~~
foo.cc: In function 'int isLeap(int)':
foo.cc:21:19: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
  if(r400==0||r4==0&&r100!=0)
              ~~~~~^~~~~~~~~
foo.cc: In function 'int MonthDay(int, int)':
foo.cc:33:3: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
   if(month==2)
   ^~
foo.cc:35:4: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if'
    return day;
    ^~~~~~
# 状态 耗时 内存占用
#1 Accepted 2ms 384.0 KiB
#2 Accepted 2ms 356.0 KiB
#3 Accepted 2ms 384.0 KiB
#4 Accepted 2ms 384.0 KiB
#5 Accepted 1ms 384.0 KiB

信息

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