실행 실패 (제출 코드 컴파일 에러)
Main.cpp: In function ‘int bfs(const std::vector<std::__cxx11::basic_string<char> >&, const std::vector<std::vector<int> >&, int, int, int, int)’: Main.cpp:18:13: error: assignment of read-only location ‘(&(& v)->std::vector<std::vector<int> >::operator[](((std::vector<std::vector<int> >::size_type)x)))->std::vector<int>::operator[](((std::vector<int>::size_type)y))’ 18 | v[x][y] = 1; Main.cpp:29:31: error: assignment of read-only location ‘(&(& v)->std::vector<std::vector<int> >::operator[](((std::vector<std::vector<int> >::size_type)nx)))->std::vector<int>::operator[](((std::vector<int>::size_type)ny))’ 29 | v[nx][ny] = v[xx][yy] + 1; Main.cpp: In function ‘int main()’: Main.cpp:52:26: error: ‘visted’ was not declared in this scope; did you mean ‘visited’? 52 | ans = max(bfs(map, visted, n, m, i, j), ans); | ^~~~~~ | visited
정답 개수:
-
틀린 개수:
-
실행 실패 개수:
-
비공개 코드입니다. 코드 작성자만 볼 수 있습니다.
반례를 발견하지 못했습니다.