실행 실패 (제출 코드 컴파일 에러)
Main.c:3:16: error: expected ‘]’ before ‘;’ token 3 | #define max 100; | ^ Main.c:6:11: note: in expansion of macro ‘max’ 6 | int visit[max][max]; | ^~~ Main.c:6:19: error: expected identifier or ‘(’ before ‘]’ token 6 | int visit[max][max]; | ^ Main.c:3:16: error: expected ‘]’ before ‘;’ token 3 | #define max 100; | ^ Main.c:7:10: note: in expansion of macro ‘max’ 7 | int dist[max][max]; | ^~~ Main.c:7:18: error: expected identifier or ‘(’ before ‘]’ token 7 | int dist[max][max]; | ^ Main.c:3:16: error: expected ‘]’ before ‘;’ token 3 | #define max 100; | ^ Main.c:8:9: note: in expansion of macro ‘max’ 8 | int map[max][max]; | ^~~ Main.c:8:17: error: expected identifier or ‘(’ before ‘]’ token 8 | int map[max][max]; | ^ Main.c:3:16: error: expected ‘]’ before ‘;’ token 3 | #define max 100; | ^ Main.c:14:11: note: in expansion of macro ‘max’ 14 | point que[max * max]; | ^~~ Main.c: In function ‘enque’: Main.c:18:9: error: ‘que’ undeclared (first use in this function); did you mean ‘enque’? 18 | que[tail].x = x; | ^~~ | enque Main.c:18:9: note: each undeclared identifier is reported only once for each function it appears in Main.c:18:23: error: ‘x’ undeclared (first use in this function) 18 | que[tail].x = x; | ^ Main.c:19:23: error: ‘y’ undeclared (first use in this function) 19 | que[tail].y = y; | ^ Main.c: In function ‘deque’: Main.c:24:16: error: ‘que’ undeclared (first use in this function); did you mean ‘deque’? 24 | return que[head++]; | ^~~ | deque Main.c: In function ‘bfs’: Main.c:31:9: error: ‘visit’ undeclared (first use in this function) 31 | visit[startx][starty] = 1; | ^~~~~ Main.c:32:9: error: ‘dist’ undeclared (first use in this function) 32 | dist[startx][starty] = 0; | ^~~~ Main.c:42:76: error: ‘map’ undeclared (first use in this function); did you mean ‘max’? 42 | if (!visit[nx][ny] && dist[nx][ny] == 0 && map[nx][ny]!=0) { | ^~~ | max Main.c: In function ‘main’: Main.c:56:38: error: ‘map’ undeclared (first use in this function); did you mean ‘max’? 56 | scanf("%d", &map[i][j]); | ^~~ | max Main.c:57:25: error: ‘visit’ undeclared (first use in this function) 57 | visit[i][j] = 0; | ^~~~~ Main.c:58:25: error: ‘dist’ undeclared (first use in this function) 58 | dist[i][j] = 0; | ^~~~ Main.c: In function ‘deque’: Main.c:25:1: warning: control reaches end of non-void function [-Wreturn-type] 25 | } | ^ 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 %d", &n, &m); | ^~~~~~~~~~~~~~~~~~~~~~
정답 개수:
-
틀린 개수:
-
실행 실패 개수:
-
반례를 발견하지 못했습니다.