[c++ | 백준] 2178번 미로 탐색
[백준 2178번 미로 탐색 문제]https://www.acmicpc.net/problem/2178 전체 풀이 코드#include #include using namespace std;int row = 0, col = 0;char arr[100][100];int visited[100][100] = { {-1,} };queue> q;int dx[] = { 1, 0, -1, 0 };int dy[] = { 0, 1, 0, -1 };void BFS(int x, int y){ q.push({ x,y }); visited[x][y] = 1; while (!q.empty()) { int x = q.front().first; int y = q.front().sec..