실행 실패 (제출 코드 컴파일 에러)
Main.c: In function ‘main’: Main.c:35:9: error: unknown type name ‘bool’ 35 | bool flag=true; | ^~~~ 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:35:19: error: ‘true’ undeclared (first use in this function) 35 | bool flag=true; | ^~~~ Main.c:35:19: note: ‘true’ is defined in header ‘<stdbool.h>’; did you forget to ‘#include <stdbool.h>’? Main.c:35:19: note: each undeclared identifier is reported only once for each function it appears in Main.c:39:22: error: ‘false’ undeclared (first use in this function) 39 | flag=false; | ^~~~~ Main.c:39:22: note: ‘false’ is defined in header ‘<stdbool.h>’; did you forget to ‘#include <stdbool.h>’? Main.c:4:5: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 4 | scanf("%d",&tc); | ^~~~~~~~~~~~~~~ Main.c:10:9: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 10 | scanf("%d %d %d",&n,&m,&w); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ Main.c:15:13: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 15 | scanf("%d %d %d",&s,&e,&t); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ Main.c:20:13: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 20 | scanf("%d %d %d",&s,&e,&t); | ^~~~~~~~~~~~~~~~~~~~~~~~~~
정답 개수:
-
틀린 개수:
-
실행 실패 개수:
-
비공개 코드입니다. 코드 작성자만 볼 수 있습니다.
반례를 발견하지 못했습니다.