실행 실패 (제출 코드 컴파일 에러)
Main.c:6:14: error: unknown type name ‘bool’ 6 | int next_num(bool* arr, int start, int size) { | ^~~~ Main.c:5:1: note: ‘bool’ is defined in header ‘<stdbool.h>’; did you forget to ‘#include <stdbool.h>’? 4 | #include <stdlib.h>//qsort bsearch malloc +++ |+#include <stdbool.h> 5 | Main.c:13:15: error: unknown type name ‘bool’ 13 | int backt_num(bool* arr, int start) { | ^~~~ Main.c:13:15: note: ‘bool’ is defined in header ‘<stdbool.h>’; did you forget to ‘#include <stdbool.h>’? Main.c: In function ‘main’: Main.c:27:9: error: unknown type name ‘bool’ 27 | bool* alive = (bool*)malloc(len_sen * sizeof(bool)); | ^~~~ Main.c:27:9: note: ‘bool’ is defined in header ‘<stdbool.h>’; did you forget to ‘#include <stdbool.h>’? Main.c:27:24: error: ‘bool’ undeclared (first use in this function) 27 | bool* alive = (bool*)malloc(len_sen * sizeof(bool)); | ^~~~ Main.c:27:24: note: ‘bool’ is defined in header ‘<stdbool.h>’; did you forget to ‘#include <stdbool.h>’? Main.c:27:24: note: each undeclared identifier is reported only once for each function it appears in Main.c:27:29: error: expected expression before ‘)’ token 27 | bool* alive = (bool*)malloc(len_sen * sizeof(bool)); | ^ Main.c:28:54: error: ‘true’ undeclared (first use in this function) 28 | for (int i = 0; i < len_sen; i++) alive[i] = true;//비효율적이긴 한데 헷갈리니까 트루로 해놓자 | ^~~~ Main.c:28:54: note: ‘true’ is defined in header ‘<stdbool.h>’; did you forget to ‘#include <stdbool.h>’? Main.c:34:21: error: expected ‘;’ before ‘flag’ 34 | bool flag = 0;//플래그가 0이면 다음에 다음거 확인 1이면 다음에 전거 확인할거임 | ^~~~~ | ; Main.c:41:80: error: ‘false’ undeclared (first use in this function) 41 | for (int j = start; j < i + 1; j++) alive[j] = false; | ^~~~~ Main.c:41:80: note: ‘false’ is defined in header ‘<stdbool.h>’; did you forget to ‘#include <stdbool.h>’? Main.c:42:33: error: ‘flag’ undeclared (first use in this function) 42 | flag = 1; | ^~~~ Main.c:59:29: warning: implicit declaration of function ‘backt_num’ [-Wimplicit-function-declaration] 59 | i = backt_num(alive, i); | ^~~~~~~~~ Main.c:61:37: warning: implicit declaration of function ‘next_num’ [-Wimplicit-function-declaration] 61 | i = next_num(alive, temp,len_sen); | ^~~~~~~~ Main.c:70:13: error: expected ‘;’ before ‘empty’ 70 | bool empty = true; | ^~~~~~ | ; Main.c:74:25: error: ‘empty’ undeclared (first use in this function) 74 | empty = false; | ^~~~~ Main.c:24:9: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 24 | scanf("%s %s", sen, pokbal); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~
정답 개수:
-
틀린 개수:
-
실행 실패 개수:
-
반례를 발견하지 못했습니다.