Submission #112189


Source Code Expand

#include <iostream>
 
using namespace std;
 
int main() {
  int xa, ya, xb, yb, xc, yc; cin >> xa >> ya >> xb >> yb >> xc >> yc;
  double s = (xa * (yb - yc) + xb * (yc - ya) + xc * (ya - yb)) / 2.0;
  if (s < 0) s *= -1;
  printf("%f\n", s);
 
  return 0;
}

Submission Info

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

Compile Error

./Main.cpp: In function ‘int main()’:
./Main.cpp:9:19: error: ‘printf’ was not declared in this scope