/in/foo.cc: In function 'int pointAndTriangle(const Vector2&, const Triangle&)':
/in/foo.cc:91:17: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
if (d1 == 0 && onSegment(t1.p1, t1.p2, p0) ||
~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/in/foo.cc:93:17: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
d3 == 0 && onSegment(t1.p3, t1.p1, p0))
~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/in/foo.cc: In function 'int triangleAndTriangle(Triangle&, Triangle&)':
/in/foo.cc:130:37: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
if (pointAndTriangle(t1.p1, t2) &&
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
pointAndTriangle(t1.p2, t2) &&
~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
pointAndTriangle(t1.p3, t2) ||
~~~~~~~~~~~~~~~~~~~~~~~~~~~
/in/foo.cc:140:20: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
k == 2 && (
~~~~~~~^~~~~
onSegment(t1.p1, t1.p3, t2.p3) ||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
onSegment(t1.p2, t1.p3, t2.p3) ||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
onSegment(t2.p1, t2.p3, t1.p3) ||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
onSegment(t2.p2, t2.p3, t1.p3)))
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/in/foo.cc: In function 'int intersections(const Vector2&, const Vector2&, const Vector2&, const Vector2&)':
/in/foo.cc:75:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^