记录详情

Compile Error

foo.c: In function 'main':
foo.c:7:12: warning: statement with no effect [-Wunused-value]
    7 |         x>1&&x<100;
      |         ~~~^~~~~~~
foo.c:8:14: error: invalid suffix "n" on integer constant
    8 |         if(x=2n-1)
      |              ^~
foo.c:9:17: error: 'next' undeclared (first use in this function)
    9 |                 next=3x+1;
      |                 ^~~~
foo.c:9:17: note: each undeclared identifier is reported only once for each function it appears in
foo.c:9:22: error: invalid suffix "x" on integer constant
    9 |                 next=3x+1;
      |                      ^~
foo.c:10:14: error: invalid suffix "n" on integer constant
   10 |         if(x=2n)
      |              ^~
foo.c:5:8: warning: unused variable 'n' [-Wunused-variable]
    5 |  int x,n,s;
      |        ^
[Hydro](https://hydro.ac)提供评测服务

信息

递交者
类型
递交
题目
2-1 单个数的3N+1猜想
比赛
2022年迎新赛(第一场)
语言
C
递交时间
2022-08-15 19:32:00
评测时间
2022-08-15 19:32:00
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes