记录详情

Wrong Answer

foo.c: In function ‘main’:
foo.c:5:10: warning: format ‘%a’ expects argument of type ‘float *’, but argument 2 has type ‘double *’ [-Wformat=]
    5 | scanf ("%a%b%c",&a,&b,&c);
      |         ~^      ~~
      |          |      |
      |          |      double *
      |          float *
      |         %la
foo.c:5:12: warning: format ‘%b’ expects argument of type ‘unsigned int *’, but argument 3 has type ‘double *’ [-Wformat=]
    5 | scanf ("%a%b%c",&a,&b,&c);
      |           ~^       ~~
      |            |       |
      |            |       double *
      |            unsigned int *
      |           %le
foo.c:5:14: warning: format ‘%c’ expects argument of type ‘char *’, but argument 4 has type ‘double *’ [-Wformat=]
    5 | scanf ("%a%b%c",&a,&b,&c);
      |             ~^        ~~
      |              |        |
      |              char *   double *
      |             %le
foo.c:9:9: warning: too many arguments for format [-Wformat-extra-args]
    9 | printf ("%f,%f,%f中最大的数是%m",a,b,c,m);
      |         ^~~~~~~~~~~~~~~~~~~~~~~~
# 状态 耗时 内存占用
#1 Wrong Answer Read 请分别输入abc:, expect 5. 1ms 288.0 KiB

信息

递交者
类型
自测
题目
A1-2 分支结构练习:三数的特征值
语言
C
递交时间
2024-08-19 14:51:53
评测时间
2024-08-19 14:51:53
评测机
分数
0
总耗时
1ms
峰值内存
288.0 KiB