실행 실패 (제출 코드 컴파일 에러)
Main.c: In function ‘main’: Main.c:14:5: error: unknown type name ‘bool’ 14 | bool flag; | ^~~~ Main.c:3:1: note: ‘bool’ is defined in header ‘<stdbool.h>’; did you forget to ‘#include <stdbool.h>’? 2 | #include <stdlib.h> +++ |+#include <stdbool.h> 3 | struct nlist { Main.c:19:16: error: ‘true’ undeclared (first use in this function) 19 | flag = true; | ^~~~ Main.c:19:16: note: ‘true’ is defined in header ‘<stdbool.h>’; did you forget to ‘#include <stdbool.h>’? Main.c:19:16: note: each undeclared identifier is reported only once for each function it appears in Main.c:22:24: error: ‘false’ undeclared (first use in this function) 22 | flag = false; | ^~~~~ Main.c:22:24: note: ‘false’ is defined in header ‘<stdbool.h>’; did you forget to ‘#include <stdbool.h>’? Main.c:15:5: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 15 | scanf("%d %d", &n, &c); | ^~~~~~~~~~~~~~~~~~~~~~ Main.c:18:9: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 18 | scanf("%d", &elem); | ^~~~~~~~~~~~~~~~~~
정답 개수:
-
틀린 개수:
-
실행 실패 개수:
-
비공개 코드입니다. 코드 작성자만 볼 수 있습니다.
반례를 발견하지 못했습니다.