/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(const Triangle&, const Triangle&)':
/in/foo.cc:112:1: warning: no return statement in function returning non-void [-Wreturn-type]
}
^
/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]
}
^