记录详情

Compile Error

foo.cc: In function 'int main()':
foo.cc:7:8: error: expected '(' before numeric constant
    7 |  while 1;
      |        ^
      |        (
foo.cc:7:9: error: expected ')' before ';' token
    7 |  while 1;
      |        ~^
      |         )
foo.cc:7:2: warning: this 'while' clause does not guard... [-Wmisleading-indentation]
    7 |  while 1;
      |  ^~~~~
foo.cc:8:2: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'while'
    8 |  {
      |  ^
foo.cc:13:7: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
   13 |   if(a=1)
      |      ~^~
foo.cc:14:4: error: break statement not within loop or switch
   14 |    break;
      |    ^~~~~
[Hydro](https://hydro.ac)提供评测服务

信息

递交者
类型
递交
题目
2-1 单个数的3N+1猜想
比赛
2022暑期青少年社团(入门赛)
语言
C++
递交时间
2022-07-28 19:49:58
评测时间
2022-07-28 19:49:58
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes