실행 실패 (제출 코드 컴파일 에러)
Main.c: In function ‘main’: Main.c:8:9: error: unknown type name ‘bool’ 8 | bool isPass; | ^~~~ Main.c:4:1: note: ‘bool’ is defined in header ‘<stdbool.h>’; did you forget to ‘#include <stdbool.h>’? 3 | #include<string.h> +++ |+#include <stdbool.h> 4 | Main.c:11:26: error: ‘false’ undeclared (first use in this function) 11 | isPass = false; | ^~~~~ Main.c:11:26: note: ‘false’ is defined in header ‘<stdbool.h>’; did you forget to ‘#include <stdbool.h>’? Main.c:11:26: note: each undeclared identifier is reported only once for each function it appears in Main.c:22:46: error: ‘true’ undeclared (first use in this function) 22 | if (i == 4) isPass = true; | ^~~~ Main.c:22:46: note: ‘true’ is defined in header ‘<stdbool.h>’; did you forget to ‘#include <stdbool.h>’? Main.c:14:17: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 14 | scanf("%s %f %s", subject, &curCredit, curRating); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
정답 개수:
-
틀린 개수:
-
실행 실패 개수:
-
비공개 코드입니다. 코드 작성자만 볼 수 있습니다.
반례를 발견하지 못했습니다.