실행 실패 (제출 코드 컴파일 에러)
Main.c: In function ‘main’: Main.c:3:5: error: unknown type name ‘bool’ 3 | bool prime[405002]={false}; | ^~~~ Main.c:2:1: note: ‘bool’ 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:3:25: error: ‘false’ undeclared (first use in this function) 3 | bool prime[405002]={false}; | ^~~~~ Main.c:3:25: note: ‘false’ is defined in header ‘<stdbool.h>’; did you forget to ‘#include <stdbool.h>’? Main.c:3:25: note: each undeclared identifier is reported only once for each function it appears in Main.c:9:28: error: ‘true’ undeclared (first use in this function) 9 | prime[i*j]=true; | ^~~~ Main.c:9:28: note: ‘true’ is defined in header ‘<stdbool.h>’; did you forget to ‘#include <stdbool.h>’?
정답 개수:
-
틀린 개수:
-
실행 실패 개수:
-
반례를 발견하지 못했습니다.