실행 실패 (제출 코드 컴파일 에러)
Main.c: In function ‘pri’: Main.c:9:9: error: unknown type name ‘bool’ 9 | bool isPrime = true; | ^~~~ Main.c:3:1: note: ‘bool’ is defined in header ‘<stdbool.h>’; did you forget to ‘#include <stdbool.h>’? 2 | #include <math.h> +++ |+#include <stdbool.h> 3 | long long prime[1000000000000]; Main.c:9:24: error: ‘true’ undeclared (first use in this function) 9 | bool isPrime = true; | ^~~~ Main.c:9:24: note: ‘true’ is defined in header ‘<stdbool.h>’; did you forget to ‘#include <stdbool.h>’? Main.c:9:24: note: each undeclared identifier is reported only once for each function it appears in Main.c:13:27: error: ‘false’ undeclared (first use in this function) 13 | isPrime = false; | ^~~~~ Main.c:13:27: note: ‘false’ is defined in header ‘<stdbool.h>’; did you forget to ‘#include <stdbool.h>’? Main.c: In function ‘main’: Main.c:30:7: warning: passing argument 1 of ‘pri’ from incompatible pointer type [-Wincompatible-pointer-types] 30 | pri(prime,&cou,(int)ceil(sqrt(max))); | ^~~~~ | | | long long int * Main.c:5:14: note: expected ‘int *’ but argument is of type ‘long long int *’ 5 | void pri(int prime[], int *count, int ma) { | ~~~~^~~~~~~ Main.c:29:3: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 29 | scanf("%lld %lld",&min,&max); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
정답 개수:
-
틀린 개수:
-
실행 실패 개수:
-
반례를 발견하지 못했습니다.