실행 실패 (제출 코드 컴파일 에러)
Main.cpp: In function ‘void Move(int, int, int, int&, int&, int&)’: Main.cpp:9:13: error: ‘arr’ was not declared in this scope 9 | if (arr[nextrow + Dir_X[dir]][nextcol + Dir_Y[dir]] == '#') | ^~~ Main.cpp:9:27: error: ‘Dir_X’ was not declared in this scope 9 | if (arr[nextrow + Dir_X[dir]][nextcol + Dir_Y[dir]] == '#') | ^~~~~ Main.cpp:9:49: error: ‘Dir_Y’ was not declared in this scope 9 | if (arr[nextrow + Dir_X[dir]][nextcol + Dir_Y[dir]] == '#') | ^~~~~ Main.cpp:12:20: error: ‘Dir_X’ was not declared in this scope 12 | nextrow += Dir_X[dir]; | ^~~~~ Main.cpp:13:20: error: ‘Dir_Y’ was not declared in this scope 13 | nextcol += Dir_Y[dir]; | ^~~~~ Main.cpp:16:13: error: ‘arr’ was not declared in this scope 16 | if (arr[nextrow][nextcol] == 'O') | ^~~ Main.cpp: In function ‘int BFS()’: Main.cpp:23:11: error: ‘tuple’ was not declared in this scope 23 | queue<tuple<int, int, int, int, int>> q; | ^~~~~ Main.cpp:23:5: error: ‘queue’ was not declared in this scope 23 | queue<tuple<int, int, int, int, int>> q; | ^~~~~ Main.cpp:23:17: error: expected primary-expression before ‘int’ 23 | queue<tuple<int, int, int, int, int>> q; | ^~~ Main.cpp:24:5: error: ‘q’ was not declared in this scope 24 | q.push(make_tuple(redpos.first, redpos.second, bluepos.first, bluepos.second, 1)); | ^ Main.cpp:24:23: error: ‘redpos’ was not declared in this scope 24 | q.push(make_tuple(redpos.first, redpos.second, bluepos.first, bluepos.second, 1)); | ^~~~~~ Main.cpp:24:52: error: ‘bluepos’ was not declared in this scope 24 | q.push(make_tuple(redpos.first, redpos.second, bluepos.first, bluepos.second, 1)); | ^~~~~~~ Main.cpp:24:12: error: ‘make_tuple’ was not declared in this scope 24 | q.push(make_tuple(redpos.first, redpos.second, bluepos.first, bluepos.second, 1)); | ^~~~~~~~~~ Main.cpp:25:5: error: ‘visited’ was not declared in this scope 25 | visited[redpos.first][redpos.second][bluepos.first][bluepos.second] = true; | ^~~~~~~ Main.cpp:34:29: error: ‘MAXDIR’ was not declared in this scope 34 | for (int i = 0; i < MAXDIR; i++) | ^~~~~~ Main.cpp:43:17: error: ‘arr’ was not declared in this scope 43 | if (arr[nextbluex][nextbluey] == 'O') continue; | ^~~ Main.cpp:46:17: error: ‘arr’ was not declared in this scope 46 | if (arr[nextredx][nextredy] == 'O') return curcount; | ^~~ Main.cpp:53:33: error: ‘Dir_X’ was not declared in this scope 53 | nextredx -= Dir_X[i]; | ^~~~~ Main.cpp:54:33: error: ‘Dir_Y’ was not declared in this scope 54 | nextredy -= Dir_Y[i]; | ^~~~~ Main.cpp:58:34: error: ‘Dir_X’ was not declared in this scope 58 | nextbluex -= Dir_X[i]; | ^~~~~ Main.cpp:59:34: error: ‘Dir_Y’ was not declared in this scope 59 | nextbluey -= Dir_Y[i]; | ^~~~~
정답 개수:
-
틀린 개수:
-
실행 실패 개수:
-
반례를 발견하지 못했습니다.