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

信息

递交者
类型
递交
题目
三角形与三角形
语言
C++
递交时间
2018-05-16 21:27:23
评测时间
2018-05-16 21:35:13
评测机
分数
100
总耗时
6ms
峰值内存
384.0 KiB