记录详情

Compile Error

foo.c: In function 'main':
foo.c:6:17: warning: format '%d' expects argument of type 'int *', but argument 2 has type 'int' [-Wformat=]
    6 |         scanf("%d",x);
      |                ~^  ~
      |                 |  |
      |                 |  int
      |                 int *
foo.c:7:16: warning: right-hand operand of comma expression has no effect [-Wunused-value]
    7 |         for(i=0,i<=19,i++)
      |                ^
foo.c:7:26: error: expected ';' before ')' token
    7 |         for(i=0,i<=19,i++)
      |                          ^
      |                          ;
foo.c:7:26: error: expected expression before ')' token
foo.c:9:20: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
    9 |                 if(x=0)
      |                    ^
foo.c:17:32: error: invalid type argument of unary '*' (have 'int')
   17 |                         k=k+(2**i)*j;
      |                                ^~
[Hydro](https://hydro.ac)提供评测服务

信息

递交者
类型
递交
题目
P1081 xf1-4进制转换2
比赛
2022年迎新赛(第二场)
语言
C
递交时间
2022-08-27 14:12:54
评测时间
2022-08-27 14:12:54
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes