记录详情

Compile Error

foo.cc: In function 'int main()':
foo.cc:8:12: warning: comparison of constant '100' with boolean expression is always true [-Wbool-compare]
  while (1<x<100)
         ~~~^~~~
foo.cc:8:10: warning: comparisons like 'X<=Y<=Z' do not have their mathematical meaning [-Wparentheses]
  while (1<x<100)
         ~^~
foo.cc:10:9: error: lvalue required as left operand of assignment
  if(x%2=0)
         ^
foo.cc:13:8: error: unable to find numeric literal operator 'operator""x'
  cout<<3x+1<<endl;
        ^~
foo.cc:13:8: note: use -std=gnu++11 or -fext-numeric-literals to enable more built-in suffixes

信息

递交者
类型
递交
题目
2-1 单个数的3N+1猜想
比赛
2020苏青奥赛集训营(2021-2-4实验初中选拔赛)
语言
C++
递交时间
2021-02-04 13:00:41
评测时间
2021-02-04 13:00:41
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes