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
Compile Error
./Main.cpp: In function ‘int main()’: ./Main.cpp:9:19: error: ‘printf’ was not declared in this scope