记录详情

Wrong Answer

/in/foo.cc: In function 'int check(int)':
/in/foo.cc:5:26: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
  if(x%400==0 || (x%4==0) && x%100!=0 ) return 1;return 0;
                 ~~~~~~~~~^~~~~~~~~~~
/in/foo.cc:5:2: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
  if(x%400==0 || (x%4==0) && x%100!=0 ) return 1;return 0;
  ^~
/in/foo.cc:5:49: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'if'
  if(x%400==0 || (x%4==0) && x%100!=0 ) return 1;return 0;
                                                 ^~~~~~
# 状态 耗时 内存占用
#1 Accepted 2ms 228.0 KiB
#2 Wrong Answer 1ms 220.0 KiB

信息

递交者
类型
递交
题目
P1182 闰年祝福
比赛
2020年互联网创新创业科技节程序设计大赛
语言
C++
递交时间
2020-12-09 13:40:20
评测时间
2020-12-09 13:40:20
评测机
分数
50
总耗时
3ms
峰值内存
228.0 KiB