Borderou de evaluare (job #1771714)

Utilizator ArkinyStoica Alex Arkiny Data 5 octombrie 2016 21:56:31
Problema Arie Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 10

Raport evaluator

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: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) ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms508kbIncorect0
20ms504kbIncorect0
30ms504kbIncorect0
40ms504kbOK10
50ms428kbKilled by signal 11(SIGSEGV).0
60ms508kbIncorect0
70ms508kbIncorect0
80ms504kbIncorect0
90ms508kbIncorect0
100ms504kbIncorect0
Punctaj total10

Ceva nu functioneaza?