Borderou de evaluare (job #1771707)
Utilizator | Data | 5 octombrie 2016 21:52:57 | |
---|---|---|---|
Problema | Arie | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In member function ‘bool LINE2D::intersects(LINE2D&, POINT2D&)’:
user.cpp:62:24: warning: suggest parentheses around ‘&&’ within ‘||’ [-Wparentheses]
if ((p2.x >= l.p1.x && p2.x <= l.p2.x || p2.x <= l.p1.x && p2.x >= l.p2.x) && (p.y >= p1.y && p.y <= p2.y || p.y <= p1.y && p.y >= p2.y))
^
user.cpp:62:95: warning: suggest parentheses around ‘&&’ within ‘||’ [-Wparentheses]
if ((p2.x >= l.p1.x && p2.x <= l.p2.x || p2.x <= l.p1.x && p2.x >= l.p2.x) && (p.y >= p1.y && p.y <= p2.y || p.y <= p1.y && p.y >= p2.y))
^
user.cpp:74:24: warning: suggest parentheses around ‘&&’ within ‘||’ [-Wparentheses]
if ((l.p2.x >= p1.x && l.p2.x <= p2.x || l.p2.x <= p1.x && l.p2.x >= p2.x) && (p.y >= l.p1.y && p.y <= l.p2.y || p.y <= l.p1.y && p.y >= l.p2.y))
^
user.cpp:74:97: warning: suggest parentheses around ‘&&’ within ‘||’ [-Wparentheses]
if ((l.p2.x >= p1.x && l.p2.x <= p2.x || l.p2.x <= p1.x && l.p2.x >= p2.x) && (p.y >= l.p1.y && p.y <= l.p2.y || p.y <= l.p1.y && p.y >= l.p2.y))
^
user.cpp:88:19: warning: suggest parentheses around ‘&&’ within ‘||’ [-Wparentheses]
if ((x >= p1.x && x <= p2.x || x <= p1.x && x >= p2.x) && (y >= p1.y && y <= p2.y || y <= p1.y && y >= p2.y))
^
user.cpp:88:73: warning: suggest parentheses around ‘&&’ within ‘||’ [-Wparentheses]
if ((x >= p1.x && x <= p2.x || x <= p1.x && x >= p2.x) && (y >= p1.y && y <= p2.y || y <= p1.y && y >= p2.y))
^
user.cpp: In member function ‘int Polygon::point_inside_polygon(POINT2D)’:
user.cpp:123:55: error: no matching function for call to ‘LINE2D::LINE2D(POINT2D&, POINT2D)’
LINE2D horizontal_line = LINE2D(p, POINT2D(-60, p.y));
^
user.cpp:123:55: note: candidates are:
user.cpp:41:2: note: LINE2D::LINE2D(POINT2D&, POINT2D&)
LINE2D(POINT2D &p1, POINT2D &p2)
^
user.cpp:41:2: note: no known conversion for argument 2 from ‘POINT2D’ to ‘POINT2D&’
user.cpp:35:2: note: LINE2D::LINE2D()
LINE2D()
^
user.cpp:35:2: note: candidate expects 0 arguments, 2 provided
user.cpp:31:8: note: constexpr LINE2D::LINE2D(const LINE2D&)
struct LINE2D
^
user.cpp:31:8: note: candidate expects 1 argument, 2 provided
user.cpp:31:8: note: constexpr LINE2D::LINE2D(LINE2D&&)
user.cpp:31:8: note: candidate expects 1 argument, 2 provided
user.cpp:133:29: warning: suggest parentheses around ‘&&’ within ‘||’ [-Wparentheses]
if (p.y >= points[i].y && p.y <= points[i+1].y || p.y >= points[i + 1].y && p.y <= points[i].y)
^
user.cpp:147:28: warning: suggest parentheses around ‘&&’ within ‘||’ [-Wparentheses]
if (p.y >= points[1].y && p.y <= points[number_points].y || p.y >= points[number_points].y && p.y <= points[1].y)
^
user.cpp: In member function ‘void Polygon::trigonometric_order()’:
user.cpp:209:33: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int i = 0;i < stack.size();++i)
^
user.cpp: In member function ‘Polygon Polygon::intertsects(Polygon&)’:
user.cpp:234:113: error: no matching function for call to ‘LINE2D::intersects(LINE2D, POINT2D&)’
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !