| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 146943 | 张晓冉 | 09优惠活动 | C++ | Compile Error | 0 MS | 0 KB | 450 | 2026-02-01 12:40:32 |
#include<bits/stdc++.h> using namespace std; int main(){ char a; cin>>a; int x; cin>>x; if(a == 'P'){ x = x/10*7; cout<<fixed<<setprecision(2)<<x; }else if(a == 'G'){ x = x/10*8; cout<<fixed<<setprecision(2)<<x; }else if(a == 'S'){ x = x/10*9; cout<<fixed<<setprecision(2)<<x; }else{ x = x/10*9.5; cout<<fixed<<setprecision(2)<<x; } return 0;
Main.cc: In function 'int main()':
Main.cc:21:13: error: expected '}' at end of input
return 0;
^