#include<iostream> #include<iomanip> #include<cmath> using namespace std; int main() { int a,b,c; cin>>a>>b>>c; float p=(a+b+c)/2; float square=sqrt(p*(p-a)*(p-b)*(p-c)); cout<<fixed<<setprecision(1)<<square<<endl; return 0; }
这是我的代码,问一下错哪里了