Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
90632 | 秦浩然 | 08打车费用 | C++ | Compile Error | 0 MS | 0 KB | 409 | 2024-09-16 10:54:30 |
#include<iostream> using namespace std; int main(){ double s,money; cin>>s; if(z<=2){ money = 6; } else if(z<=10){ money = 6+(s-2)*1.8; } else if(s>10){ money = 6+8*1.8+(s-10)*1.8*(1+0.5); } cout<<money; return 0; }
Main.cc: In function 'int main()': Main.cc:6:8: error: 'z' was not declared in this scope if(z<=2){ ^