실행 실패 (제출 코드 컴파일 에러)
Main.c:2:1: error: unknown type name ‘bool’ 2 | bool graph[51][51]={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 | bool graph[51][51]={0,}; Main.c:3:1: error: unknown type name ‘bool’ 3 | bool visit[51][51]={0,}; | ^~~~ Main.c:3:1: note: ‘bool’ is defined in header ‘<stdbool.h>’; did you forget to ‘#include <stdbool.h>’? Main.c: In function ‘DFS’: Main.c:6:21: error: ‘true’ undeclared (first use in this function) 6 | visit[y][x]=true; | ^~~~ Main.c:6:21: note: ‘true’ is defined in header ‘<stdbool.h>’; did you forget to ‘#include <stdbool.h>’? Main.c:6:21: note: each undeclared identifier is reported only once for each function it appears in Main.c:11:45: error: ‘false’ undeclared (first use in this function) 11 | if(graph[y+dy[i]][x+dx[i]]==false||visit[y+dy[i]][x+dx[i]]==true||y+dy[i]<1||50<y+dy[i]||x+dx[i]<1||50<x+dx[i]) continue; | ^~~~~ Main.c:11:45: note: ‘false’ is defined in header ‘<stdbool.h>’; did you forget to ‘#include <stdbool.h>’? Main.c: In function ‘reset’: Main.c:21:37: error: ‘false’ undeclared (first use in this function) 21 | graph[i][j]=false; | ^~~~~ Main.c:21:37: note: ‘false’ is defined in header ‘<stdbool.h>’; did you forget to ‘#include <stdbool.h>’? Main.c: In function ‘solved’: Main.c:35:29: error: ‘true’ undeclared (first use in this function) 35 | graph[y][x]=true; | ^~~~ Main.c:35:29: note: ‘true’ is defined in header ‘<stdbool.h>’; did you forget to ‘#include <stdbool.h>’? Main.c:42:41: error: ‘false’ undeclared (first use in this function) 42 | if(graph[i][j]==false||visit[i][j]==true) continue; | ^~~~~ Main.c:42:41: note: ‘false’ is defined in header ‘<stdbool.h>’; did you forget to ‘#include <stdbool.h>’? Main.c:30:9: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 30 | scanf("%d %d %d",&m,&n,&k); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ Main.c:34:17: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 34 | scanf("%d %d",&x,&y); | ^~~~~~~~~~~~~~~~~~~~ Main.c: In function ‘main’: Main.c:52:9: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 52 | scanf("%d",&T); | ^~~~~~~~~~~~~~
정답 개수:
-
틀린 개수:
-
실행 실패 개수:
-
반례를 발견하지 못했습니다.