실행 실패 (제출 코드 컴파일 에러)
Main.c: In function ‘bfs’: Main.c:38:41: error: ‘CORD’ has no member named ‘z’ 38 | if (field[cord.x+1][cord.y][cord.z]==0) | ^ Main.c:39:40: error: ‘CORD’ has no member named ‘z’ 39 | push(cord.x+1, cord.y, cord.z, QUEUE, cord.day+1); | ^ Main.c:40:41: error: ‘CORD’ has no member named ‘z’ 40 | if (field[cord.x-1][cord.y][cord.z]==0) | ^ Main.c:41:40: error: ‘CORD’ has no member named ‘z’ 41 | push(cord.x-1, cord.y, cord.z, QUEUE, cord.day+1); | ^ Main.c:42:41: error: ‘CORD’ has no member named ‘z’ 42 | if (field[cord.x][cord.y+1][cord.z]==0) | ^ Main.c:43:40: error: ‘CORD’ has no member named ‘z’ 43 | push(cord.x, cord.y+1, cord.z, QUEUE, cord.day+1); | ^ Main.c:44:41: error: ‘CORD’ has no member named ‘z’ 44 | if (field[cord.x][cord.y-1][cord.z]==0) | ^ Main.c:45:40: error: ‘CORD’ has no member named ‘z’ 45 | push(cord.x, cord.y-1, cord.z, QUEUE, cord.day+1); | ^ Main.c:46:39: error: ‘CORD’ has no member named ‘z’ 46 | if (field[cord.x][cord.y][cord.z+1]==0) | ^ Main.c:47:38: error: ‘CORD’ has no member named ‘z’ 47 | push(cord.x, cord.y, cord.z+1, QUEUE, cord.day+1); | ^ Main.c:48:39: error: ‘CORD’ has no member named ‘z’ 48 | if (field[cord.x][cord.y][cord.z-1]==0) | ^ Main.c:49:38: error: ‘CORD’ has no member named ‘z’ 49 | push(cord.x, cord.y, cord.z-1, QUEUE, cord.day+1); | ^ Main.c: In function ‘main’: Main.c:55:11: warning: too many arguments for format [-Wformat-extra-args] 55 | scanf("%d %d",&N,&M,&L); | ^~~~~~~ Main.c:61:34: error: expected ‘]’ before ‘)’ token 61 | if(field[i][j][k==1){ | ^ | ] Main.c:55:5: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 55 | scanf("%d %d",&N,&M,&L); | ^~~~~~~~~~~~~~~~~~~~~~~ Main.c:60:15: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 60 | scanf("%d",&field[i][j][k]); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~
정답 개수:
-
틀린 개수:
-
실행 실패 개수:
-
반례를 발견하지 못했습니다.