F.A.Q
Hand In Hand
Online Acmers
Problem Archive
Realtime Judge Status
Authors Ranklist
 
     C/C++/Java Exams     
ACM Steps
Go to Job
Contest LiveCast
ICPC@China
Best Coder beta
VIP | STD Contests
    DIY | Web-DIY beta
Author ID 
Password 
 Register new ID

View Compilation Error

0_0_28483516_30169.cpp: In function 'double Area(int)':
0_0_28483516_30169.cpp:41:49: error: 'fabs' was not declared in this scope
         ans += fabs(Cross(p[i]-p[0],p[i+1]-p[0]));
                                                 ^
0_0_28483516_30169.cpp: In function 'int main()':
0_0_28483516_30169.cpp:47:25: error: 'stdin' was not declared in this scope
     freopen("i.txt","r",stdin);
                         ^
0_0_28483516_30169.cpp:47:30: error: 'freopen' was not declared in this scope
     freopen("i.txt","r",stdin);
                              ^
0_0_28483516_30169.cpp:49:5: error: 'cin' was not declared in this scope
     cin >> t;
     ^
0_0_28483516_30169.cpp:55:19: error: 'sort' was not declared in this scope
         sort(p,p+n);
                   ^
0_0_28483516_30169.cpp:62:8: error: 'cout' was not declared in this scope
        cout<<p[i].x << " " << p[i].y<<endl;
        ^
0_0_28483516_30169.cpp:62:39: error: 'endl' was not declared in this scope
        cout<<p[i].x << " " << p[i].y<<endl;
                                       ^
0_0_28483516_30169.cpp:64:32: error: 'printf' was not declared in this scope
         printf("%.1f\n",Area(m));
                                ^


Hangzhou Dianzi University Online Judge 3.0
Copyright © 2005-2024 HDU ACM Team. All Rights Reserved.
Designer & Developer : Wang Rongtao LinLe GaoJie GanLu
Total 0.000000(s) query 1, Server time : 2024-11-26 16:19:43, Gzip enabled