**```cpp
#include
#include
using namespace std;
int main (){
float n;
float b;
cin >> n >> b;
if(b==0){
cout << "div0";
}
else{
cout << fixed << setprecision(4) << n+b << endl;
cout << n-b << endl;
cout << n*b << endl;
cout << n/b << endl;
}
return 0;
}
题目描述:输入 a, ba,b,计算 a+ba+b、a-ba−b、a\times ba×b、a \div ba÷b 的结果。
输出格式:输出到标准输出。 输出共 44 行,每个结果输出一行,保留四位小数。 对于前三个结果,你的输出必须和标准输出一致。 对于第四个结果,如果 b=0b=0,则输出 div0.,当 b \ne 0b
=0 时,保证标准输出的结果与真实答案差的绝对值不超过 10^{-4}10
−4
,当你的答案和标准输出相差不超过 10^{-2}10
−2
时,认为你的答案是正确的。
我不理解哪错了???