Submission #112252
Source Code Expand
#include <iostream> #include <string> #include <vector> //#include <math.h> using namespace std; int main(int argc,const char* argv[]){ int ax,ay,bx,by,cx,cy; cin >> ax>>ay>>bx>>by>>cx>>cy; double S=1.0; S*=abs((bx-ax)*(cy-ay)-(by-ay)*(cx-ax))*0.5; cout << S << endl; return 0; }
Submission Info
Submission Time | |
---|---|
Task | C - 直訴 |
User | hawksin |
Language | C++ (G++ 4.6.4) |
Score | 0 |
Code Size | 317 Byte |
Status | CE |
Compile Error
./Main.cpp: In function ‘int main(int, const char**)’: ./Main.cpp:11:43: error: ‘abs’ was not declared in this scope