실행 실패 (제출 코드 컴파일 에러)
Main.c:15:21: warning: multi-character character constant [-Wmultichar] 15 | const int LM_SUM = 2'600'000; | ^~~~~ Main.c:15:21: error: expected ‘,’ or ‘;’ before '\x363030' Main.c:18:15: error: variably modified ‘arr’ at file scope 18 | int K, total, arr[LM_K], ans; | ^~~ Main.c:19:1: error: unknown type name ‘bool’ 19 | bool totalCheck[LM_SUM]; | ^~~~ Main.c:9:1: note: ‘bool’ is defined in header ‘<stdbool.h>’; did you forget to ‘#include <stdbool.h>’? 8 | #include <stdio.h> +++ |+#include <stdbool.h> 9 | Main.c:19:6: error: variably modified ‘totalCheck’ at file scope 19 | bool totalCheck[LM_SUM]; | ^~~~~~~~~~ Main.c: In function ‘dfs’: Main.c:26:32: error: ‘true’ undeclared (first use in this function) 26 | totalCheck[diff] = true; | ^~~~ Main.c:26:32: note: ‘true’ is defined in header ‘<stdbool.h>’; did you forget to ‘#include <stdbool.h>’? Main.c:26:32: note: each undeclared identifier is reported only once for each function it appears in Main.c: In function ‘main’: Main.c:38:5: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 38 | scanf("%d", &K); | ^~~~~~~~~~~~~~~ Main.c:40:9: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 40 | scanf("%d", &arr[i]); | ^~~~~~~~~~~~~~~~~~~~
정답 개수:
-
틀린 개수:
-
실행 실패 개수:
-
반례를 발견하지 못했습니다.