Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
101627 | 陈骏睿 | 09优惠活动 | C++ | Compile Error | 0 MS | 0 KB | 629 | 2024-12-15 15:53:56 |
#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(){ double a; char p; cin>>p>>a; switch(p) { case 'P': cout<<a*0.7<<endl; break; case 'G': cout<<a*0.8<<endl; break; case 'S': cout<<a*0.9<<endl; break; default: cout<<a*0.95; break; } printf("%.2lf\n",b*c) return 0; }
Main.cc: In function 'int main()': Main.cc:26:20: error: 'b' was not declared in this scope printf("%.2lf\n",b*c) ^ Main.cc:26:22: error: 'c' was not declared in this scope printf("%.2lf\n",b*c) ^