记录详情

Wrong Answer

foo.c: In function 'main':
foo.c:8:17: warning: format '%d' expects argument of type 'int *', but argument 2 has type 'double *' [-Wformat=]
    8 |         scanf("%d\n",&n);
      |                ~^    ~~
      |                 |    |
      |                 |    double *
      |                 int *
      |                %le
foo.c:13:20: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
   13 |                 if(c='0')
      |                    ^
foo.c:15:25: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
   15 |                 else if(c='1')
      |                         ^
foo.c:17:25: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
   17 |                 else if(c='2')
      |                         ^
foo.c:19:25: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
   19 |                 else if(c='3')
      |                         ^
foo.c:21:25: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
   21 |                 else if(c='4')
      |                         ^
foo.c:23:25: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
   23 |                 else if(c='5')
      |                         ^
foo.c:25:25: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
   25 |                 else if(c='6')
      |                         ^
foo.c:27:25: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
   27 |                 else if(c='7')
      |                         ^
foo.c:29:25: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
   29 |                 else if(c='8')
      |                         ^
foo.c:31:25: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
   31 |                 else if(c='9')
      |                         ^
foo.c:6:19: warning: unused variable 'x' [-Wunused-variable]
    6 |         int max=0,x=0,n0=0,n1=0,n2=0,n3=0,n4=0,n5=0,n6=0,n7=0,n8=0,n9=0;
      |                   ^
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Wrong Answer Read 1, expect 10. 2ms 256.0 KiB
#2 Wrong Answer Read 1, expect 8. 2ms 256.0 KiB

信息

递交者
类型
递交
题目
1-4 最大值的个数
比赛
2022年迎新赛(第一场)
语言
C
递交时间
2022-08-15 17:06:30
评测时间
2022-08-15 17:06:30
评测机
分数
0
总耗时
5ms
峰值内存
256.0 KiB