记录详情

Compile Error

foo.c: In function 'main':
foo.c:4:12: error: 'y' undeclared (first use in this function)
    4 |      int x=y,a,b,c,d;
      |            ^
foo.c:4:12: note: each undeclared identifier is reported only once for each function it appears in
foo.c:5:12: warning: comparisons like 'X<=Y<=Z' do not have their mathematical meaning [-Wparentheses]
    5 |      if(a*3<=x<a*3+3)c=a;
      |         ~~~^~~
foo.c:7:6: error: 'sum' undeclared (first use in this function)
    7 |      sum=0
      |      ^~~
foo.c:7:11: error: expected ';' before 'for'
    7 |      sum=0
      |           ^
      |           ;
    8 |      for(c+d>=3)
      |      ~~~   
foo.c:10:13: warning: statement with no effect [-Wunused-value]
   10 |      for(c+d<3)
      |          ~~~^~
foo.c:10:15: error: expected ';' before ')' token
   10 |      for(c+d<3)
      |               ^
      |               ;
foo.c:10:15: error: expected expression before ')' token
[Hydro](https://hydro.ac)提供评测服务

信息

递交者
类型
递交
题目
P1087 xf1-10多喝饮料
比赛
2022年迎新赛(第二场)
语言
C
递交时间
2022-08-27 19:40:01
评测时间
2022-08-27 19:40:01
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes