실행 실패 (제출 코드 컴파일 에러)
Main.c:2:1: error: unknown type name ‘bool’ 2 | bool intersect(int r1,int c1,int r2,int c2,int r3,int c3,int r4,int c4){ | ^~~~ Main.c:2:1: note: ‘bool’ is defined in header ‘<stdbool.h>’; did you forget to ‘#include <stdbool.h>’? 1 | #include<stdio.h> +++ |+#include <stdbool.h> 2 | bool intersect(int r1,int c1,int r2,int c2,int r3,int c3,int r4,int c4){ Main.c: In function ‘intersect’: Main.c:4:24: error: ‘false’ undeclared (first use in this function) 4 | return false; | ^~~~~ Main.c:4:24: note: ‘false’ is defined in header ‘<stdbool.h>’; did you forget to ‘#include <stdbool.h>’? Main.c:4:24: note: each undeclared identifier is reported only once for each function it appears in Main.c:9:16: error: ‘true’ undeclared (first use in this function) 9 | return true; | ^~~~ Main.c:9:16: note: ‘true’ is defined in header ‘<stdbool.h>’; did you forget to ‘#include <stdbool.h>’? Main.c:10:1: warning: control reaches end of non-void function [-Wreturn-type] 10 | } | ^ Main.c: In function ‘main’: Main.c:14:9: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 14 | scanf("%d%d%d%d",&r1,&c1,&r2,&c2); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
정답 개수:
-
틀린 개수:
-
실행 실패 개수:
-
반례를 발견하지 못했습니다.