문제는 여기! #include using namespace std; int N, M, K; bool isVisited[101][101]; int dx[] = {1, -1, 0, 0}; int dy[] = {0, 0, 1, -1}; vector answers; void bfs(int a, int b){ queue q; q.push({a, b}); isVisited[a][b] = true; int area = 1; while(!q.empty()){ int x = q.front().first; int y = q.front().second; q.pop(); for(int i=0; i> M >> N >> K; for(int i=0; i> a >> b >> c >> d; for(int x=b; x