记录详情

Compile Error

foo.c: In function 'main':
foo.c:6:15: error: expected expression before '%' token
    6 |         scanf(%d%d%d,&x,&y,&z);
      |               ^
foo.c:7:13: warning: comparisons like 'X<=Y<=Z' do not have their mathematical meaning [-Wparentheses]
    7 |         if(x>y>z)
      |            ~^~
foo.c:9:18: warning: comparisons like 'X<=Y<=Z' do not have their mathematical meaning [-Wparentheses]
    9 |         else if(x>z>y)
      |                 ~^~
foo.c:11:15: warning: comparisons like 'X<=Y<=Z' do not have their mathematical meaning [-Wparentheses]
   11 |     else if (y>x>z)
      |              ~^~
foo.c:13:19: warning: comparisons like 'X<=Y<=Z' do not have their mathematical meaning [-Wparentheses]
   13 |         else if (y>z>x)
      |                  ~^~
foo.c:15:15: warning: comparisons like 'X<=Y<=Z' do not have their mathematical meaning [-Wparentheses]
   15 |     else if (z>x>y)
      |              ~^~
foo.c:17:19: warning: comparisons like 'X<=Y<=Z' do not have their mathematical meaning [-Wparentheses]
   17 |         else if (z>y>x)
      |                  ~^~
foo.c:19:16: error: expected expression before '%' token
   19 |         printf(%d%d%dn,max,med,min);
      |                ^
foo.c:5:27: warning: variable 'min' set but not used [-Wunused-but-set-variable]
    5 |         int x,y,z,max,med,min;
      |                           ^~~
foo.c:5:23: warning: variable 'med' set but not used [-Wunused-but-set-variable]
    5 |         int x,y,z,max,med,min;
      |                       ^~~
foo.c:5:19: warning: variable 'max' set but not used [-Wunused-but-set-variable]
    5 |         int x,y,z,max,med,min;
      |                   ^~~
[Hydro](https://hydro.ac)提供评测服务

信息

递交者
类型
自测
题目
A1-1 分支结构练习:三数排序
语言
C
递交时间
2022-08-15 18:54:44
评测时间
2022-08-15 18:54:44
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes