실행 실패 (제출 코드 컴파일 에러)
Main.c:7:9: error: unknown type name ‘XY’ 7 | int ccw(XY a1,XY a2,XY a3) | ^~ Main.c:7:15: error: unknown type name ‘XY’ 7 | int ccw(XY a1,XY a2,XY a3) | ^~ Main.c:7:21: error: unknown type name ‘XY’ 7 | int ccw(XY a1,XY a2,XY a3) | ^~ Main.c: In function ‘main’: Main.c:27:5: error: unknown type name ‘XY’; use ‘struct’ keyword to refer to the type 27 | XY b1={x1,y1},b2={x2,y2},b3={x3,y3},b4={x4,y4}; | ^~ | struct Main.c:27:15: warning: excess elements in scalar initializer 27 | XY b1={x1,y1},b2={x2,y2},b3={x3,y3},b4={x4,y4}; | ^~ Main.c:27:15: note: (near initialization for ‘b1’) Main.c:27:26: warning: excess elements in scalar initializer 27 | XY b1={x1,y1},b2={x2,y2},b3={x3,y3},b4={x4,y4}; | ^~ Main.c:27:26: note: (near initialization for ‘b2’) Main.c:27:37: warning: excess elements in scalar initializer 27 | XY b1={x1,y1},b2={x2,y2},b3={x3,y3},b4={x4,y4}; | ^~ Main.c:27:37: note: (near initialization for ‘b3’) Main.c:27:48: warning: excess elements in scalar initializer 27 | XY b1={x1,y1},b2={x2,y2},b3={x3,y3},b4={x4,y4}; | ^~ Main.c:27:48: note: (near initialization for ‘b4’) Main.c:28:11: warning: implicit declaration of function ‘ccw’ [-Wimplicit-function-declaration] 28 | int l=ccw(b1,b2,b3)*ccw(b1,b2,b4); | ^~~ Main.c:25:5: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 25 | scanf("%lld %lld %lld %lld",&x1,&y1,&x2,&y2); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Main.c:26:5: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 26 | scanf("%lld %lld %lld %lld",&x3,&y3,&x4,&y4); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
정답 개수:
-
틀린 개수:
-
실행 실패 개수:
-
반례를 발견하지 못했습니다.