哪里出问题了吗?
#include<bits/stdc++.h>
using namespace std;
int x1,x2,y4,y2,x3,y3;
double tot,cmp,orz,s,ans;
int main(){
cin>>x1>>y4>>x2>>y2>>x3>>y3;
tot=sqrt((x2-x1)*(x2-x1)+(y2-y4)*(y2-y4));
cmp=sqrt((x3-x2)*(x3-x2)+(y3-y2)*(y3-y2));
orz=sqrt((x3-x1)*(x3-x1)+(y3-y4)*(y3-y4));
s=(tot+cmp+orz)/2;
ans=sqrt(s*(s-tot)*(s-cmp)*(s-orz))+1;
cout<<(int)ans<<endl;
return 0;
}