记录详情

Compile Error

foo.c: In function 'main':
foo.c:6:10: warning: suggest parentheses around comparison in operand of '!=' [-Wparentheses]
    6 |         x!=y!=z;
      |         ~^~~
foo.c:6:13: warning: statement with no effect [-Wunused-value]
    6 |         x!=y!=z;
      |         ~~~~^~~
foo.c:7:15: error: expected expression before '%' token
    7 |         scanf(%d%d%d,&x,&y,&z);
      |               ^
foo.c:8:13: warning: comparisons like 'X<=Y<=Z' do not have their mathematical meaning [-Wparentheses]
    8 |         if(x>y>z)
      |            ~^~
foo.c:10:18: warning: comparisons like 'X<=Y<=Z' do not have their mathematical meaning [-Wparentheses]
   10 |         else if(x>z>y)
      |                 ~^~
foo.c:12:15: warning: comparisons like 'X<=Y<=Z' do not have their mathematical meaning [-Wparentheses]
   12 |     else if (y>x>z)
      |              ~^~
foo.c:14:19: warning: comparisons like 'X<=Y<=Z' do not have their mathematical meaning [-Wparentheses]
   14 |         else if (y>z>x)
      |                  ~^~
foo.c:16:15: warning: comparisons like 'X<=Y<=Z' do not have their mathematical meaning [-Wparentheses]
   16 |     else if (z>x>y)
      |              ~^~
foo.c:18:19: warning: comparisons like 'X<=Y<=Z' do not have their mathematical meaning [-Wparentheses]
   18 |         else if (z>y>x)
      |                  ~^~
foo.c:20:16: error: expected expression before '%' token
   20 |         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 分支结构练习:三数排序
比赛
2022年迎新赛(第一场)
语言
C
递交时间
2022-08-15 18:58:56
评测时间
2022-08-15 18:58:56
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes