0_0_18014745_1408.cpp:4:1: error: 'typede' does not name a type
typede double DB;
^
0_0_18014745_1408.cpp:5:7: error: 'DB' does not name a type
const DB eps = 1e-8;
^
0_0_18014745_1408.cpp:6:7: error: 'DB' does not name a type
const DB PI = 3.14159265358979323846;
^
0_0_18014745_1408.cpp:8:19: error: 'sign' declared as an 'inline' variable
__inline int sign(DB x) {
^
0_0_18014745_1408.cpp:8:19: error: 'DB' was not declared in this scope
0_0_18014745_1408.cpp:8:25: error: expected ',' or ';' before '{' token
__inline int sign(DB x) {
^
0_0_18014745_1408.cpp:11:10: error: 'DB' does not name a type
__inline DB msqrt(DB x) {
^
0_0_18014745_1408.cpp:16:5: error: 'DB' does not name a type
DB x, y;
^
0_0_18014745_1408.cpp:18:23: error: expected ')' before 'x'
__inline Point(DB x, DB y): x(x), y(y) {}
^
0_0_18014745_1408.cpp:25:27: error: 'DB' has not been declared
__inline Point rotate(DB ang) const {
^
0_0_18014745_1408.cpp:29:14: error: 'DB' does not name a type
__inline DB len2() const {
^
0_0_18014745_1408.cpp:32:14: error: 'DB' does not name a type
__inline DB len() const {
^
0_0_18014745_1408.cpp:45:30: error: 'DB' has not been declared
__inline Point operator*(DB k) const {
^
0_0_18014745_1408.cpp: In constructor 'Point::Point()':
0_0_18014745_1408.cpp:17:23: error: class 'Point' does not have any field named 'x'
__inline Point(): x(0), y(0) {}
^
0_0_18014745_1408.cpp:17:29: error: class 'Point' does not have any field named 'y'
__inline Point(): x(0), y(0) {}
^
0_0_18014745_1408.cpp: In member function 'Point Point::operator+(const Point&) const':
0_0_18014745_1408.cpp:20:22: error: 'x' was not declared in this scope
return Point(x + rhs.x, y + rhs.y);
^
0_0_18014745_1408.cpp:20:30: error: 'const struct Point' has no member named 'x'
return Point(x + rhs.x, y + rhs.y);
^
0_0_18014745_1408.cpp:20:33: error: 'y' was not declared in this scope
return Point(x + rhs.x, y + rhs.y);
^
0_0_18014745_1408.cpp:20:41: error: 'const struct Point' has no member named 'y'
return Point(x + rhs.x, y + rhs.y);
^
0_0_18014745_1408.cpp: In member function 'Point Point::operator-(const Point&) const':
0_0_18014745_1408.cpp:23:22: error: 'x' was not declared in this scope
return Point(x - rhs.x, y - rhs.y);
^
0_0_18014745_1408.cpp:23:30: error: 'const struct Point' has no member named 'x'
return Point(x - rhs.x, y - rhs.y);
^
0_0_18014745_1408.cpp:23:33: error: 'y' was not declared in this scope
return Point(x - rhs.x, y - rhs.y);
^
0_0_18014745_1408.cpp:23:41: error: 'const struct Point' has no member named 'y'
return Point(x - rhs.x, y - rhs.y);
^
0_0_18014745_1408.cpp: In member function 'Point Point::rotate(int) const':
0_0_18014745_1408.cpp:26:33: error: 'x' was not declared in this scope
return Point(cos(ang) * x - sin(ang) * y,
^
0_0_18014745_1408.cpp:26:48: error: 'y' was not declared in this scope
return Point(cos(ang) * x - sin(ang) * y,
^
0_0_18014745_1408.cpp: In member function 'void Point::read()':
0_0_18014745_1408.cpp:36:21: error: 'x' was not declared in this scope
std::cin >> x >> y;
^
0_0_18014745_1408.cpp:36:26: error: 'y' was not declared in this scope
std::cin >> x >> y;
^
0_0_18014745_1408.cpp: In member function 'bool Point::operator<(const Point&) const':
0_0_18014745_1408.cpp:39:21: error: 'y' was not declared in this scope
return sign(y - rhs.y) == 0 ?
^
0_0_18014745_1408.cpp:39:29: error: 'const struct Point' has no member named 'y'
return sign(y - rhs.y) == 0 ?
^
0_0_18014745_1408.cpp:39:30: error: 'sign' cannot be used as a function
return sign(y - rhs.y) == 0 ?
^
0_0_18014745_1408.cpp:40:18: error: 'x' was not declared in this scope
sign(x - rhs.x) < 0 : sign(y - rhs.y) < 0;
^
0_0_18014745_1408.cpp:40:26: error: 'const struct Point' has no member named 'x'
sign(x - rhs.x) < 0 : sign(y - rhs.y) < 0;
^
0_0_18014745_1408.cpp:40:27: error: 'sign' cannot be used as a function
sign(x - rhs.x) < 0 : sign(y - rhs.y) < 0;
^
0_0_18014745_1408.cpp:40:48: error: 'const struct Point' has no member named 'y'
sign(x - rhs.x) < 0 : sign(y - rhs.y) < 0;
^
0_0_18014745_1408.cpp:40:49: error: 'sign' cannot be used as a function
sign(x - rhs.x) < 0 : sign(y - rhs.y) < 0;
^
0_0_18014745_1408.cpp: In member function 'bool Point::operator==(const Point&) const':
0_0_18014745_1408.cpp:43:21: error: 'x' was not declared in this scope
return sign(x - rhs.x) == 0 && sign(y - rhs.y) == 0;
^
0_0_18014745_1408.cpp:43:29: error: 'const struct Point' has no member named 'x'
return sign(x - rhs.x) == 0 && sign(y - rhs.y) == 0;
^
0_0_18014745_1408.cpp:43:30: error: 'sign' cannot be used as a function
return sign(x - rhs.x) == 0 && sign(y - rhs.y) == 0;
^
0_0_18014745_1408.cpp:43:45: error: 'y' was not declared in this scope
return sign(x - rhs.x) == 0 && sign(y - rhs.y) == 0;
^
0_0_18014745_1408.cpp:43:53: error: 'const struct Point' has no member named 'y'
return sign(x - rhs.x) == 0 && sign(y - rhs.y) == 0;
^
0_0_18014745_1408.cpp:43:54: error: 'sign' cannot be used as a function
return sign(x - rhs.x) == 0 && sign(y - rhs.y) == 0;
^
0_0_18014745_1408.cpp: In member function 'Point Point::operator*(int) const':
0_0_18014745_1408.cpp:46:22: error: 'x' was not declared in this scope
return Point(x * k, y * k);
^
0_0_18014745_1408.cpp:46:29: error: 'y' was not declared in this scope
return Point(x * k, y * k);
^
0_0_18014745_1408.cpp: At global scope:
0_0_18014745_1408.cpp:50:10: error: 'DB' does not name a type
__inline DB dot(const Point& a, const Point& b) {
^
0_0_18014745_1408.cpp:54:10: error: 'DB' does not name a type
__inline DB det(const Point& a, const Point& b) {
^
0_0_18014745_1408.cpp: In member function 'void Convex::make_shell(const std::vector<Point>&, std::vector<Point>&)':
0_0_18014745_1408.cpp:72:48: error: 'det' was not declared in this scope
p[i] - shell[j - 2])) < 0; -- j)
^
0_0_18014745_1408.cpp:72:49: error: 'sign' cannot be used as a function
p[i] - shell[j - 2])) < 0; -- j)
^
0_0_18014745_1408.cpp: At global scope:
0_0_18014745_1408.cpp:94:56: error: 'DB' has not been declared
__inline void rotate(Polygen& polygen, const Point& p, DB ang) {
^
0_0_18014745_1408.cpp:100:20: error: 'DB' has not been declared
bool isCL(Point o, DB r, Point a, Point b, Point& p1, Point& p2) {
^
0_0_18014745_1408.cpp: In function 'bool isCL(Point, int, Point, Point, Point&, Point&)':
0_0_18014745_1408.cpp:101:5: error: 'DB' was not declared in this scope
DB x = dot(a - o, b - a),
^
0_0_18014745_1408.cpp:104:14: error: 'd' was not declared in this scope
if (sign(d) < 0) return false;
^
0_0_18014745_1408.cpp:104:15: error: 'sign' cannot be used as a function
if (sign(d) < 0) return false;
^
0_0_18014745_1408.cpp:105:31: error: 'x' was not declared in this scope
Point p = a - ((b - a) * (x / y)),
^
0_0_18014745_1408.cpp:105:35: error: 'y' was not declared in this scope
Point p = a - ((b - a) * (x / y)),
^
0_0_18014745_1408.cpp:107:14: error: 'delta' was not declared in this scope
p1 = p + delta, p2 = p - delta;
^
0_0_18014745_1408.cpp: In function 'bool onSeg(Point, Point, Point)':
0_0_18014745_1408.cpp:112:33: error: 'det' was not declared in this scope
return sign(det(p - a, b - a)) == 0 &&
^
0_0_18014745_1408.cpp:112:34: error: 'sign' cannot be used as a function
return sign(det(p - a, b - a)) == 0 &&
^
0_0_18014745_1408.cpp:113:30: error: 'dot' was not declared in this scope
sign(dot(p - a, p - b)) <= 0;
^
0_0_18014745_1408.cpp:113:31: error: 'sign' cannot be used as a function
sign(dot(p - a, p - b)) <= 0;
^
0_0_18014745_1
|