记录详情

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\n",x);
      |                ~^    ~
      |                 |    |
      |                 |    int
      |                 int *
foo.c:12:19: error: invalid suffix "x" on integer constant
   12 |                 x=3x+1;
      |                   ^~
foo.c:13:13: error: 'cnt' undeclared (first use in this function); did you mean 'int'?
   13 |             cnt+=1;}
      |             ^~~
      |             int
foo.c:13:13: note: each undeclared identifier is reported only once for each function it appears in
[Hydro](https://hydro.ac)提供评测服务

信息

递交者
类型
递交
题目
2-1 单个数的3N+1猜想
语言
C
递交时间
2023-10-04 22:41:19
评测时间
2023-10-04 22:41:19
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes