Pagini recente » Borderou de evaluare (job #1214017) | Borderou de evaluare (job #67764) | Borderou de evaluare (job #1666899) | Borderou de evaluare (job #1822090) | Borderou de evaluare (job #1771748)
Borderou de evaluare (job #1771748)
Raport evaluator
Compilare:
user.cpp: In member function ‘bool LINE2D::intersects(LINE2D, POINT2D&)’:
user.cpp:64:28: warning: suggest parentheses around ‘&&’ within ‘||’ [-Wparentheses]
if ((abs(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:64:99: warning: suggest parentheses around ‘&&’ within ‘||’ [-Wparentheses]
if ((abs(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:76: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:76: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:90:20: 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:90:74: 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:91:22: warning: suggest parentheses around ‘&&’ within ‘||’ [-Wparentheses]
&& ((x >= l.p1.x && x <= l.p2.x || x <= l.p1.x && x >= l.p2.x) && (y >= l.p1.y && y <= l.p2.y || y <= l.p1.y && y >= l.p2.y)))
^
user.cpp:91:84: warning: suggest parentheses around ‘&&’ within ‘||’ [-Wparentheses]
&& ((x >= l.p1.x && x <= l.p2.x || x <= l.p1.x && x >= l.p2.x) && (y >= l.p1.y && y <= l.p2.y || y <= l.p1.y && y >= l.p2.y)))
^
user.cpp: In member function ‘int Polygon::point_inside_polygon(POINT2D)’:
user.cpp:136: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:150: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:217:34: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int i = 0;i < stack.size();++i)
^
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
1 | 0ms | 496kb | OK | 10 |
2 | 0ms | 504kb | Incorect | 0 |
3 | 0ms | 504kb | Incorect | 0 |
4 | 0ms | 500kb | Incorect | 0 |
5 | 0ms | 500kb | Incorect | 0 |
6 | 0ms | 504kb | OK | 10 |
7 | 0ms | 504kb | OK | 10 |
8 | 0ms | 504kb | Incorect | 0 |
9 | 0ms | 500kb | Incorect | 0 |
10 | 0ms | 504kb | Incorect | 0 |
Punctaj total | 30 |