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_36910953_21300.cpp:12:14: error: 'Point' was not declared in this scope
 double cross(Point a,Point b,Point c) ///叉积
              ^
0_0_36910953_21300.cpp:12:22: error: 'Point' was not declared in this scope
 double cross(Point a,Point b,Point c) ///叉积
                      ^
0_0_36910953_21300.cpp:12:30: error: 'Point' was not declared in this scope
 double cross(Point a,Point b,Point c) ///叉积
                              ^
0_0_36910953_21300.cpp:12:37: error: expression list treated as compound expression in initializer [-fpermissive]
 double cross(Point a,Point b,Point c) ///叉积
                                     ^
0_0_36910953_21300.cpp:13:1: error: expected ',' or ';' before '{' token
 {
 ^
0_0_36910953_21300.cpp:16:1: error: 'Point' does not name a type
 Point intersection(Point a,Point b,Point c,Point d)
 ^
0_0_36910953_21300.cpp: In function 'double CPIA(Point*, Point*, int, int)':
0_0_36910953_21300.cpp:46:47: error: 'cross' cannot be used as a function
         sflag = dcmp(cross(a[i + 1], p[0],a[i]));
                                               ^
0_0_36910953_21300.cpp:50:55: error: 'cross' cannot be used as a function
             eflag = dcmp(cross(a[i + 1], p[j + 1],a[i]));
                                                       ^
0_0_36910953_21300.cpp:52:72: error: 'intersection' was not declared in this scope
                 tmp[tn++] = intersection(a[i], a[i + 1], p[j], p[j + 1]); ///求交点
                                                                        ^
0_0_36910953_21300.cpp: In function 'double SPIA(Point*, Point*, int, int)':
0_0_36910953_21300.cpp:69:45: error: 'cross' cannot be used as a function
         num1 = dcmp(cross(t1[1], t1[2],t1[0]));
                                             ^
0_0_36910953_21300.cpp:74:49: error: 'cross' cannot be used as a function
             num2 = dcmp(cross(t2[1], t2[2],t2[0]));
                                                 ^


Hangzhou Dianzi University Online Judge 3.0
Copyright © 2005-2025 HDU ACM Team. All Rights Reserved.
Designer & Developer : Wang Rongtao LinLe GaoJie GanLu
Total 0.001000(s) query 1, Server time : 2025-02-17 08:54:04, Gzip enabled