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_36154657_11711.cpp:32:7: error: expected ')' before '.' token
   ((p2.x - p1.x) * (p3.y - p1.y) - (p3.x - p1.x) * (p2.y - p1.y))
       ^
0_0_36154657_11711.cpp:32:7: error: expected ')' before '.' token
0_0_36154657_11711.cpp: In function 'bool ck1(int, int, int, int)':
0_0_36154657_11711.cpp:33:50: error: too few arguments to function 'int sgn(db, db)'
 #define crossOp(p1, p2, p3) sgn(cross(p1, p2, p3))
                                                  ^
0_0_36154657_11711.cpp:42:12: note: in expansion of macro 'crossOp'
   int t1 = crossOp(l[0], l[1], ps[p1]);
            ^
0_0_36154657_11711.cpp:11:12: note: declared here
 inline int sgn(db a, db E = EPS) { return a < -E ? -1 : a > E; }
            ^
0_0_36154657_11711.cpp:33:50: error: too few arguments to function 'int sgn(db, db)'
 #define crossOp(p1, p2, p3) sgn(cross(p1, p2, p3))
                                                  ^
0_0_36154657_11711.cpp:43:12: note: in expansion of macro 'crossOp'
   int t2 = crossOp(l[0], l[1], ps[p2]);
            ^
0_0_36154657_11711.cpp:11:12: note: declared here
 inline int sgn(db a, db E = EPS) { return a < -E ? -1 : a > E; }
            ^
0_0_36154657_11711.cpp:49:13: error: 'n' was not declared in this scope
       p1 += n;
             ^
0_0_36154657_11711.cpp:50:15: error: 'n' was not declared in this scope
     if (p2 >= n)
               ^
0_0_36154657_11711.cpp:33:50: error: too few arguments to function 'int sgn(db, db)'
 #define crossOp(p1, p2, p3) sgn(cross(p1, p2, p3))
                                                  ^
0_0_36154657_11711.cpp:57:17: note: in expansion of macro 'crossOp'
       int tt1 = crossOp(l[0], l[1], ps[p1]);
                 ^
0_0_36154657_11711.cpp:11:12: note: declared here
 inline int sgn(db a, db E = EPS) { return a < -E ? -1 : a > E; }
            ^
0_0_36154657_11711.cpp:33:50: error: too few arguments to function 'int sgn(db, db)'
 #define crossOp(p1, p2, p3) sgn(cross(p1, p2, p3))
                                                  ^
0_0_36154657_11711.cpp:58:17: note: in expansion of macro 'crossOp'
       int tt2 = crossOp(l[0], l[1], ps[p2]);
                 ^
0_0_36154657_11711.cpp:11:12: note: declared here
 inline int sgn(db a, db E = EPS) { return a < -E ? -1 : a > E; }
            ^
0_0_36154657_11711.cpp:33:50: error: too few arguments to function 'int sgn(db, db)'
 #define crossOp(p1, p2, p3) sgn(cross(p1, p2, p3))
                                                  ^
0_0_36154657_11711.cpp:63:10: note: in expansion of macro 'crossOp'
     if (!crossOp(l[0], l[1], md) && !sgn((ps[p2] - ps[p1]).dot(l[1] - l[0]))) {
          ^
0_0_36154657_11711.cpp:11:12: note: declared here
 inline int sgn(db a, db E = EPS) { return a < -E ? -1 : a > E; }
            ^
0_0_36154657_11711.cpp: In function 'int ck(std::vector<P>&)':
0_0_36154657_11711.cpp:78:13: error: 'n' was not declared in this scope
   rep(i, 0, n - 1) {
             ^
0_0_36154657_11711.cpp:2:46: note: in definition of macro 'rep'
 #define rep(i, a, b) for (int i = (a); i <= (b); ++i)
                                              ^
0_0_36154657_11711.cpp:84:13: error: 'n' was not declared in this scope
   rep(i, 0, n - 1) {
             ^
0_0_36154657_11711.cpp:2:46: note: in definition of macro 'rep'
 #define rep(i, a, b) for (int i = (a); i <= (b); ++i)
                                              ^
0_0_36154657_11711.cpp:33:50: error: too few arguments to function 'int sgn(db, db)'
 #define crossOp(p1, p2, p3) sgn(cross(p1, p2, p3))
                                                  ^
0_0_36154657_11711.cpp:90:10: note: in expansion of macro 'crossOp'
     if (!crossOp(l[0], l[1], ps[pm]))
          ^
0_0_36154657_11711.cpp:11:12: note: declared here
 inline int sgn(db a, db E = EPS) { return a < -E ? -1 : a > E; }
            ^
0_0_36154657_11711.cpp:91:7: error: 'nn' was not declared in this scope
       nn = 0;
       ^
0_0_36154657_11711.cpp:92:21: error: 'nn' was not declared in this scope
     if (ck1(p1, p2, nn, n - 3))
                     ^
0_0_36154657_11711.cpp: In function 'int main()':
0_0_36154657_11711.cpp:105:12: error: 'n' was not declared in this scope
     cin >> n;
            ^


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-07-02 13:35:53, Gzip enabled