| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 147288 | 邓凯方 | 08打车费用 | C++ | Compile Error | 0 MS | 0 KB | 481 | 2026-02-03 19:41:14 |
#include<iostream> // cin\cout\endl #include<cstdio> //scanf()\printf() #include<cstring> // strcpy()\strcat()\strcmp()\strlen()\memset() #include<cmath> //sqrt()\pow()\abs()\ceil()\floor()\max()\min() using namespace std; int main(){ int lu; cin>>lu; if(lu<=2){ cout<<"6"; } else if(lu>2&&lu<=10){ cout<<(lu-2)*1.8+6; } else if(lu>10){ cout<<(lu-2)*1.8+(lu-10)*[1.8+(1.8*1.5)]+6; } return 0; }
Main.cc: In function 'int main()':
Main.cc:16:35: error: expected identifier before numeric constant
cout<<(lu-2)*1.8+(lu-10)*[1.8+(1.8*1.5)]+6;
^
Main.cc: In lambda function:
Main.cc:16:49: error: expected '{' before '+' token
cout<<(lu-2)*1.8+(lu-10)*[1.8+(1.8*1.5)]+6;
^
Main.cc: In function 'int main()':
Main.cc:16:33: error: no match for 'operator*' (operand types are 'int' and 'main()::')
cout<<(lu-2)*1.8+(lu-10)*[1.8+(1.8*1.5)]+6;
^