실행 실패 (제출 코드 컴파일 에러)
Main.c:4:1: error: unknown type name ‘bool’ 4 | bool visit[2600002]={0,}; | ^~~~ 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 n; Main.c: In function ‘f’: Main.c:8:20: error: ‘true’ undeclared (first use in this function) 8 | visit[sum]=true; | ^~~~ Main.c:8:20: note: ‘true’ is defined in header ‘<stdbool.h>’; did you forget to ‘#include <stdbool.h>’? Main.c:8:20: note: each undeclared identifier is reported only once for each function it appears in Main.c: In function ‘main’: Main.c:27:22: error: ‘arr’ undeclared (first use in this function) 27 | Sum+=arr[i]; | ^~~ Main.c:33:30: error: ‘false’ undeclared (first use in this function) 33 | if(visit[i]==false) count+=1; | ^~~~~ Main.c:33:30: note: ‘false’ is defined in header ‘<stdbool.h>’; did you forget to ‘#include <stdbool.h>’? Main.c:23:9: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 23 | scanf("%d",&n); | ^~~~~~~~~~~~~~ Main.c:26:17: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 26 | scanf("%d",&num[i]); | ^~~~~~~~~~~~~~~~~~~
정답 개수:
-
틀린 개수:
-
실행 실패 개수:
-
반례를 발견하지 못했습니다.