Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
105830 | 李朋秦 | 08打车费用 | C++ | Compile Error | 0 MS | 0 KB | 454 | 2025-01-14 14:46:06 |
#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(){ dlouble a,b=0; cin>>a; if(a>10){ b=6+(10-2)*1.8+(a-10)*1.8*1.5; }else{ if(a>2){ b=6+(a-2)*1.8; }else{ b=6; } } cout<<b; return 0; }
Main.cc: In function 'int main()': Main.cc:8:5: error: 'dlouble' was not declared in this scope dlouble a,b=0; ^ Main.cc:9:10: error: 'a' was not declared in this scope cin>>a; ^ Main.cc:11:5: error: 'b' was not declared in this scope b=6+(10-2)*1.8+(a-10)*1.8*1.5; ^ Main.cc:14:5: error: 'b' was not declared in this scope b=6+(a-2)*1.8; ^ Main.cc:17:5: error: 'b' was not declared in this scope b=6; ^ Main.cc:20:11: error: 'b' was not declared in this scope cout<