/ XMU_ACM /

记录详情

Accepted

/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]
 }
 ^
# 状态 耗时 内存占用
#1 Accepted 4ms 356.0 KiB

信息

递交者
类型
递交
题目
点与三角形的关系
语言
C++
递交时间
2018-05-10 13:23:34
评测时间
2018-05-10 13:23:34
评测机
分数
100
总耗时
4ms
峰值内存
356.0 KiB