실행 실패 (제출 코드 컴파일 에러)
Main.c: In function ‘main’: Main.c:7:17: error: unknown type name ‘bool’ 7 | int c=0;bool chk=true; | ^~~~ Main.c:3:1: note: ‘bool’ is defined in header ‘<stdbool.h>’; did you forget to ‘#include <stdbool.h>’? 2 | #include<string.h> +++ |+#include <stdbool.h> 3 | int main(){ Main.c:7:26: error: ‘true’ undeclared (first use in this function) 7 | int c=0;bool chk=true; | ^~~~ Main.c:7:26: note: ‘true’ is defined in header ‘<stdbool.h>’; did you forget to ‘#include <stdbool.h>’? Main.c:7:26: note: each undeclared identifier is reported only once for each function it appears in Main.c:11:24: error: ‘false’ undeclared (first use in this function) 11 | if(c<0)chk=false; | ^~~~~ Main.c:11:24: note: ‘false’ is defined in header ‘<stdbool.h>’; did you forget to ‘#include <stdbool.h>’? Main.c:4:11: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 4 | int T;scanf("%d",&T); | ^~~~~~~~~~~~~~ Main.c:6:20: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 6 | char I[50];scanf("%s",I); | ^~~~~~~~~~~~~
정답 개수:
-
틀린 개수:
-
실행 실패 개수:
-
반례를 발견하지 못했습니다.