记录详情

Compile Error

foo.c: In function 'main':
foo.c:6:4: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'scanf'
    6 |    scanf("%d",z);
      |    ^~~~~
foo.c:9:16: warning: right-hand operand of comma expression has no effect [-Wunused-value]
    9 |         for(i=1,i>=1,i++)
      |                ^
foo.c:9:25: error: expected ';' before ')' token
    9 |         for(i=1,i>=1,i++)
      |                         ^
      |                         ;
foo.c:9:25: error: expected expression before ')' token
foo.c:17:25: error: 'k' undeclared (first use in this function)
   17 |                         k=x%3;
      |                         ^
foo.c:17:25: note: each undeclared identifier is reported only once for each function it appears in
foo.c:28:17: error: expected ';' before '}' token
   28 |         return 0
      |                 ^
      |                 ;
   29 | 
   30 | }
      | ~                
[Hydro](https://hydro.ac)提供评测服务

信息

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