Submission #111776


Source Code Expand

#include <iostream>
#include <string>
#include <math.h>
 
using namespace std;
 
int main(){
    int xa,ya,xb,yb,xc,yc;
    cin >> xa >> ya >> xb >> yb >> xc >> yc;
    xa = xa - xc;
    ya = ya - yc;
    xb = xb - xc;
    yb = yb - yc;
    double S = double(abs(xa*yb-ya*xb))/2;
    cout << S << endl;
    return 0;
}

Submission Info

Submission Time
Task C - 直訴
User universato
Language C++ (G++ 4.6.4)
Score 0
Code Size 334 Byte
Status CE

Compile Error

./Main.cpp: In function ‘int main()’:
./Main.cpp:14:38: error: ‘abs’ was not declared in this scope