실행 실패 (제출 코드 컴파일 에러)
Main.c: In function ‘main’: Main.c:13:9: error: unknown type name ‘bool’ 13 | bool rev = false, error = false; | ^~~~ Main.c:4:1: note: ‘bool’ is defined in header ‘<stdbool.h>’; did you forget to ‘#include <stdbool.h>’? 3 | #include <stdlib.h> +++ |+#include <stdbool.h> 4 | Main.c:13:20: error: ‘false’ undeclared (first use in this function) 13 | bool rev = false, error = false; | ^~~~~ Main.c:13:20: note: ‘false’ is defined in header ‘<stdbool.h>’; did you forget to ‘#include <stdbool.h>’? Main.c:13:20: note: each undeclared identifier is reported only once for each function it appears in Main.c:40:28: error: ‘true’ undeclared (first use in this function) 40 | else rev = true; | ^~~~ Main.c:40:28: note: ‘true’ is defined in header ‘<stdbool.h>’; did you forget to ‘#include <stdbool.h>’? Main.c:9:5: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 9 | scanf("%d", &t); | ^~~~~~~~~~~~~~~ Main.c:16:9: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 16 | scanf("%s", p); | ^~~~~~~~~~~~~~ Main.c:17:9: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 17 | scanf("%d", &n); | ^~~~~~~~~~~~~~~ Main.c:20:9: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 20 | scanf(" %c", &non); | ^~~~~~~~~~~~~~~~~~ Main.c:23:13: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 23 | scanf("%d", &num[0]); | ^~~~~~~~~~~~~~~~~~~~ Main.c:27:17: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 27 | scanf(" %c", &non); | ^~~~~~~~~~~~~~~~~~ Main.c:28:17: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 28 | scanf("%d", &num[n_cnt]); | ^~~~~~~~~~~~~~~~~~~~~~~~ Main.c:33:9: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 33 | scanf(" %c", &non); | ^~~~~~~~~~~~~~~~~~
정답 개수:
-
틀린 개수:
-
실행 실패 개수:
-
반례를 발견하지 못했습니다.