记录详情

Compile Error

foo.c: In function 'main':
foo.c:7:9: warning: this 'while' clause does not guard... [-Wmisleading-indentation]
    7 |         while(x%2==0)
      |         ^~~~~
foo.c:9:17: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'while'
    9 |                 cnt++;
      |                 ^~~
foo.c:10:9: warning: this 'while' clause does not guard... [-Wmisleading-indentation]
   10 |         while(x%2!=0)
      |         ^~~~~
foo.c:12:17: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'while'
   12 |                 cnt++
      |                 ^~~
foo.c:12:22: error: expected ';' before 'if'
   12 |                 cnt++
      |                      ^
      |                      ;
   13 |         if(x==1)
      |         ~~            
[Hydro](https://hydro.ac)提供评测服务

信息

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