编译失败☟
/tmp/compiler_u9mly69u/src: 在函数‘int main()’中: /tmp/compiler_u9mly69u/src:26:1: 错误:expected ‘}’ at end of input } ^ /tmp/compiler_u9mly69u/src:3:11: 附注:to match this ‘{’ int main(){
程序☟
#include <iostream>
using namespace std;
int main(){
int a=0;
double b=0;
cin>>a;
if(a<=150)
{
b=a*0.4463;
}
else
{
if(a>=151&&a<=400)
{
b+=150*0.4463;
b+=(a-150)*0.4663;
}
else
{
b+=150*0.4463;
b+=(400-150)*0.4663;
b+=(a-400)*0.5663;
}
b=(int)(b*10)+0.5/10.0;
return 0;
}
无奈