记录详情

Accepted

foo.c: In function 'main':
foo.c:11:11: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
   11 |  if(n%4==0&&n%100!=0||n%100==0&&n%400==0)
      |     ~~~~~~^~~~~~~~~~
foo.c:43:5: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
   43 |     if(y==8)
      |     ^~
foo.c:45:2: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if'
   45 |  if(y==9)
      |  ^~
foo.c:6:3: warning: ignoring return value of 'scanf', declared with attribute warn_unused_result [-Wunused-result]
    6 |   scanf("%d %d %d",&n,&y,&r);
      |   ^~~~~~~~~~~~~~~~~~~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Accepted 1ms 256.0 KiB

信息

递交者
类型
自测
语言
C
递交时间
2022-01-30 21:15:53
评测时间
2022-01-30 21:15:53
评测机
分数
10
总耗时
1ms
峰值内存
256.0 KiB