记录详情

Accepted

foo.c: In function 'main':
foo.c:8:3: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
   if(l%10==2)n+=1;c=l/10;
   ^~
foo.c:8:19: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if'
   if(l%10==2)n+=1;c=l/10;
                   ^
foo.c:9:3: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
   if(c%10==2)n+=1;c=c/10;
   ^~
foo.c:9:19: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if'
   if(c%10==2)n+=1;c=c/10;
                   ^
foo.c:10:3: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
   if(c%10==2)n+=1;c=c/10;
   ^~
foo.c:10:19: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if'
   if(c%10==2)n+=1;c=c/10;
                   ^
foo.c:11:3: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
   if(c%10==2)n+=1;c=c/10;
   ^~
foo.c:11:19: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if'
   if(c%10==2)n+=1;c=c/10;
                   ^
foo.c:4:16: warning: unused variable 'i' [-Wunused-variable]
  int l,p,n=0,c,i;
                ^
foo.c:5:2: warning: ignoring return value of 'scanf', declared with attribute warn_unused_result [-Wunused-result]
  scanf("%d %d",&l,&p);
  ^~~~~~~~~~~~~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Accepted 0ms 256.0 KiB
#2 Accepted 1ms 288.0 KiB
#3 Accepted 0ms 256.0 KiB
#4 Accepted 0ms 256.0 KiB
#5 Accepted 0ms 256.0 KiB
#6 Accepted 0ms 256.0 KiB
#7 Accepted 1ms 256.0 KiB
#8 Accepted 1ms 256.0 KiB
#9 Accepted 0ms 256.0 KiB
#10 Accepted 1ms 288.0 KiB

信息

递交者
类型
递交
题目
P1006 数字统计
语言
C
递交时间
2021-09-11 14:52:34
评测时间
2021-09-11 14:52:34
评测机
分数
100
总耗时
10ms
峰值内存
288.0 KiB