실행 실패 (제출 코드 컴파일 에러)
Main.c:8:1: error: unknown type name ‘bool’ 8 | bool cmp(int i, int j) { | ^~~~ 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 | char S[1001]; Main.c: In function ‘main’: Main.c:28:16: error: ‘true’ undeclared (first use in this function) 28 | while (true) { | ^~~~ Main.c:28:16: note: ‘true’ is defined in header ‘<stdbool.h>’; did you forget to ‘#include <stdbool.h>’? Main.c:28:16: note: each undeclared identifier is reported only once for each function it appears in Main.c:30:17: warning: implicit declaration of function ‘sort’; did you mean ‘qsort’? [-Wimplicit-function-declaration] 30 | sort(sa, sa + N, cmp); | ^~~~ | qsort Main.c:56:20: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘:’ token 56 | for (int a : lcp) { | ^ Main.c:57:24: error: ‘a’ undeclared (first use in this function) 57 | sum += a; | ^ Main.c:17:9: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 17 | scanf("%s", S); | ^~~~~~~~~~~~~~
정답 개수:
-
틀린 개수:
-
실행 실패 개수:
-
비공개 코드입니다. 코드 작성자만 볼 수 있습니다.
반례를 발견하지 못했습니다.