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_37197649_5922.cpp:11:1: error: 'Point' does not name a type
 Point pre[4*MAXV], tu[4*MAXV];
 ^
0_0_37197649_5922.cpp: In function 'double get_dis(Point, Point)':
0_0_37197649_5922.cpp:67:28: error: 'tu' was not declared in this scope
         temp = ((b - a) * (tu[i] - b)) / dis(a,b);
                            ^
0_0_37197649_5922.cpp: In function 'double get_h(Point, Point)':
0_0_37197649_5922.cpp:78:18: error: 'tu' was not declared in this scope
         temp = ((tu[i] - a) ^ (tu[i] - b))/dis(a,b);
                  ^
0_0_37197649_5922.cpp: In function 'int main()':
0_0_37197649_5922.cpp:93:53: error: 'pre' was not declared in this scope
         for(int i = 0; i < N; i++) scanf("%lf%lf", &pre[i].x, &pre[i].y);
                                                     ^
0_0_37197649_5922.cpp:94:14: error: 'pre' was not declared in this scope
         sort(pre, pre + N, cmp1);
              ^
0_0_37197649_5922.cpp:101:9: error: 'tu' was not declared in this scope
         tu[0] = pre[0];
         ^


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 14:04:57, Gzip enabled