Problem | splithunny |
---|---|
User | SMILE |
Submission Time | 2025-07-26 11:42:06 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
splithunny.cpp:2:98: error: stray ‘\302’ in program
2 | void bfs(const vector<string>& grid, vector<vector<bool>>& visited, int i, int j, int r, int c) { queue<pair<int, int>> q; q.push({i, j}); visited[i][j] = true; int dirs[4][2] = {{-1, 0}, {1, 0}, {0, -1}, {0, 1}}; while (!q.empty()) { auto current = q.front(); q.pop(); int x = current.first; int y = current.second; for (auto dir : dirs) { int nx = x + dir[0]; int ny = y + dir[1]; if (nx >= 0 && nx < r && ny >= 0 && ny < c && grid[nx][ny] == 'H' && !visited[nx][ny]) { visited[nx][ny] = true; q.push({nx, ny}); } } }}
| ^
splithunny.cpp:2:99: error: stray ‘\240’ in program
2 | void bfs(const vector<string>&