记录详情

Accepted

foo.c: In function 'main':
foo.c:20:3: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
   if(s(a)==0);
   ^~
foo.c:21:4: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if'
    i=0;
    ^
foo.c:24:7: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
    if(i=0)
       ^
foo.c: In function 's':
foo.c:13:1: warning: control reaches end of non-void function [-Wreturn-type]
 }
 ^
foo.c: In function 'main':
foo.c:17:2: warning: ignoring return value of 'scanf', declared with attribute warn_unused_result [-Wunused-result]
  scanf("%d",&a);
  ^~~~~~~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Accepted 0ms 256.0 KiB

信息

递交者
类型
自测
语言
C
递交时间
2021-10-21 14:51:21
评测时间
2021-10-21 14:51:21
评测机
分数
10
总耗时
0ms
峰值内存
256.0 KiB