Submission #3881854


Source Code Expand

#include<bits/stdc++.h>
using namespace std;
int main()
{
    long double a,b,c,d,e,f,a1,b1,c1,p;
    cin>>a>>b>>c>>d>>e>>f;
    a1=sqrt((c-a)*(c-a)+(d-b)*(d-b));
    b1=sqrt(((f-d)*(f-d)+(e-c)*(e-c));
    c1=sqrt((e-a)*(e-a)+(f-b)*(f-b));
    p=(a1+b1+c1)/2;
    cout<<(long double)(sqrt(p*(p-a1)*(p-b1)*(p*c1)))<<endl;
}

Submission Info

Submission Time
Task C - 直訴
User luogu_bot2
Language C++ (GCC 5.4.1)
Score 0
Code Size 333 Byte
Status CE

Compile Error

./Main.cpp: In function ‘int main()’:
./Main.cpp:8:38: error: expected ‘)’ before ‘;’ token
     b1=sqrt(((f-d)*(f-d)+(e-c)*(e-c));
                                      ^