실행 실패 (제출 코드 컴파일 에러)
Main.c: In function ‘main’: Main.c:25:11: error: ‘true’ undeclared (first use in this function) 25 | while(true) | ^~~~ Main.c:2:1: note: ‘true’ is defined in header ‘<stdbool.h>’; did you forget to ‘#include <stdbool.h>’? 1 | #include <stdio.h> +++ |+#include <stdbool.h> 2 | int main() Main.c:25:11: note: each undeclared identifier is reported only once for each function it appears in 25 | while(true) | ^~~~ Main.c:27:9: error: unknown type name ‘bool’ 27 | bool check=true; | ^~~~ Main.c:27:9: note: ‘bool’ is defined in header ‘<stdbool.h>’; did you forget to ‘#include <stdbool.h>’? Main.c:54:23: error: ‘false’ undeclared (first use in this function) 54 | check=false; | ^~~~~ Main.c:54:23: note: ‘false’ is defined in header ‘<stdbool.h>’; did you forget to ‘#include <stdbool.h>’? Main.c:5:5: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 5 | scanf("%d",&n); | ^~~~~~~~~~~~~~ Main.c:11:9: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 11 | scanf("%d",&a[i]); | ^~~~~~~~~~~~~~~~~
정답 개수:
-
틀린 개수:
-
실행 실패 개수:
-
반례를 발견하지 못했습니다.