Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
135833 罗晟睿 09优惠活动 C++ Compile Error 0 MS 0 KB 300 2025-11-08 15:13:15

Tests(0/0):


Code:

#include<bits/stdc++.h> using namespace std; int main(){ char a; double b; cin>>a>>b; switch(a){ case 'P':printf("%.2lf", b*0.7);break; case 'G':printf("%.2lf",b*0.8);break; case 'S':printf("%.2lf",b*0.9);break; default:printf("%.2lf",b*0.95) } return 0; }


Run Info:

Main.cc: In function 'int main()':
Main.cc:12:2: error: expected ';' before '}' token
  }
  ^