Compile Error

/in/foo.cc: In function 'int main()':
/in/foo.cc:13:5: error: unable to find numeric literal operator 'operator""x'
   y=2x-1;
     ^~
/in/foo.cc:13:5: note: use -std=gnu++11 or -fext-numeric-literals to enable more built-in suffixes
/in/foo.cc:17:5: error: unable to find numeric literal operator 'operator""x'
   y=3x+4;
     ^~
/in/foo.cc:17:5: note: use -std=gnu++11 or -fext-numeric-literals to enable more built-in suffixes
/in/foo.cc:21:8: error: unable to find numeric literal operator 'operator""x'
   y=90-5x;
        ^~
/in/foo.cc:21:8: note: use -std=gnu++11 or -fext-numeric-literals to enable more built-in suffixes
/in/foo.cc:25:8: error: unable to find numeric literal operator 'operator""x'
   y=80+3x;
        ^~
/in/foo.cc:25:8: note: use -std=gnu++11 or -fext-numeric-literals to enable more built-in suffixes

信息

递交者
类型
递交
题目
P1021 分段函数
语言
C++
递交时间
2023-11-24 16:27:09
评测时间
2023-11-24 16:27:09
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes