0_0_36154670_3342.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_36154670_3342.cpp:32:7: error: expected ')' before '.' token
0_0_36154670_3342.cpp: In function 'bool ck1(int, int, int)':
0_0_36154670_3342.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_36154670_3342.cpp:42:12: note: in expansion of macro 'crossOp'
int t1 = crossOp(l[0], l[1], ps[p1]);
^
0_0_36154670_3342.cpp:11:12: note: declared here
inline int sgn(db a, db E = EPS) { return a < -E ? -1 : a > E; }
^
0_0_36154670_3342.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_36154670_3342.cpp:43:12: note: in expansion of macro 'crossOp'
int t2 = crossOp(l[0], l[1], ps[p2]);
^
0_0_36154670_3342.cpp:11:12: note: declared here
inline int sgn(db a, db E = EPS) { return a < -E ? -1 : a > E; }
^
0_0_36154670_3342.cpp:48:13: error: 'n' was not declared in this scope
p1 += n;
^
0_0_36154670_3342.cpp:49:15: error: 'n' was not declared in this scope
if (p2 >= n)
^
0_0_36154670_3342.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_36154670_3342.cpp:54:12: note: in expansion of macro 'crossOp'
if (!crossOp(l[0], l[1], ps[p1]) && nn <= 1)
^
0_0_36154670_3342.cpp:11:12: note: declared here
inline int sgn(db a, db E = EPS) { return a < -E ? -1 : a > E; }
^
0_0_36154670_3342.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_36154670_3342.cpp:59:10: note: in expansion of macro 'crossOp'
if (!crossOp(l[0], l[1], md) && !sgn((l[1] - l[0]).dot(ps[p1] - ps[p2]))) {
^
0_0_36154670_3342.cpp:11:12: note: declared here
inline int sgn(db a, db E = EPS) { return a < -E ? -1 : a > E; }
^
0_0_36154670_3342.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_36154670_3342.cpp:65:15: note: in expansion of macro 'crossOp'
int tt1 = crossOp(l[0], l[1], ps[p1]);
^
0_0_36154670_3342.cpp:11:12: note: declared here
inline int sgn(db a, db E = EPS) { return a < -E ? -1 : a > E; }
^
0_0_36154670_3342.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_36154670_3342.cpp:66:15: note: in expansion of macro 'crossOp'
int tt2 = crossOp(l[0], l[1], ps[p2]);
^
0_0_36154670_3342.cpp:11:12: note: declared here
inline int sgn(db a, db E = EPS) { return a < -E ? -1 : a > E; }
^
0_0_36154670_3342.cpp:70:19: error: 'n' was not declared in this scope
if ((p1 - 1 + n) % n == p2) {
^
0_0_36154670_3342.cpp: In function 'int ck(std::vector<P>&)':
0_0_36154670_3342.cpp:82:13: error: 'n' was not declared in this scope
rep(i, 0, n - 1) {
^
0_0_36154670_3342.cpp:2:46: note: in definition of macro 'rep'
#define rep(i, a, b) for (int i = (a); i <= (b); ++i)
^
0_0_36154670_3342.cpp:88:13: error: 'n' was not declared in this scope
rep(i, 0, n - 1) {
^
0_0_36154670_3342.cpp:2:46: note: in definition of macro 'rep'
#define rep(i, a, b) for (int i = (a); i <= (b); ++i)
^
0_0_36154670_3342.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_36154670_3342.cpp:94:10: note: in expansion of macro 'crossOp'
if (!crossOp(l[0], l[1], ps[pm]))
^
0_0_36154670_3342.cpp:11:12: note: declared here
inline int sgn(db a, db E = EPS) { return a < -E ? -1 : a > E; }
^
0_0_36154670_3342.cpp:95:7: error: 'nn' was not declared in this scope
nn = 0;
^
0_0_36154670_3342.cpp:96:21: error: 'nn' was not declared in this scope
if (ck1(p1, p2, nn))
^
0_0_36154670_3342.cpp: In function 'int main()':
0_0_36154670_3342.cpp:109:12: error: 'n' was not declared in this scope
cin >> n;
^
|