Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
147739 张锦程 08打车费用 C++ Compile Error 0 MS 0 KB 182 2026-02-07 14:39:37

Tests(0/0):


Code:

#include<iostream> using namespace std; int main(){ int x; cin>>x; int sum=0; if(x<=2){ sum=6; }else sum=6+1.8x; cout<<sum<<endl; }


Run Info:

Main.cc: In function 'int main()':
Main.cc:10:15: error: unable to find numeric literal operator 'operator""x'
         sum=6+1.8x;
               ^
Main.cc:10:15: note: use -std=gnu++11 or -fext-numeric-literals to enable more built-in suffixes