Compile Error

foo.cc: In function 'int main()':
foo.cc:18:6: error: unable to find numeric literal operator 'operator""x'
    y=2x-1;
      ^~
foo.cc:18:6: note: use -std=gnu++11 or -fext-numeric-literals to enable more built-in suffixes
foo.cc:22:2: error: 'else' without a previous 'if'
  else
  ^~~~
foo.cc:30:2: error: 'else' without a previous 'if'
  else if(x>25)
  ^~~~
foo.cc:32:5: error: unable to find numeric literal operator 'operator""x'
   y=10x+294;
     ^~~
foo.cc:32:5: note: use -std=gnu++11 or -fext-numeric-literals to enable more built-in suffixes
[Hydro](https://hydro.ac)提供评测服务

信息

递交者
类型
递交
题目
P1064 阶段测验2-1
语言
C++
递交时间
2021-07-25 20:27:13
评测时间
2021-07-25 20:27:13
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes