Submission #2929761
Source Code Expand
#include <bits/stdc++.h> using namespace std; int a,b,c,d,x,y; double i,j,k,h; int main(){ cin>>a>>b>>c>>d>>x>>y; i=sqrt(pow(a-c,2)+pow(b-d,2)); j=sqrt(pow(x-c,2)+pow(y-d,2)); k=sqrt(pow(a-x,2)+pow(b-y,2)); h=1.0*(i+j+ca)/2; printf("%.1lf",sqrt(h*(h-i)*(h-j)*(h-k))); return 0; }
Submission Info
Submission Time | |
---|---|
Task | C - 直訴 |
User | luogu_bot4 |
Language | C++ (GCC 5.4.1) |
Score | 0 |
Code Size | 319 Byte |
Status | CE |
Compile Error
./Main.cpp: In function ‘int main()’: ./Main.cpp:10:16: error: ‘ca’ was not declared in this scope h=1.0*(i+j+ca)/2; ^