실행 실패 (제출 코드 컴파일 에러)
Main.cpp: In function ‘int bfs(int, int, int, int)’: Main.cpp:30:19: error: invalid use of member function ‘std::queue<_Tp, _Sequence>::const_reference std::queue<_Tp, _Sequence>::front() const [with _Tp = std::pair<int, int>; _Sequence = std::deque<std::pair<int, int>, std::allocator<std::pair<int, int> > >; std::queue<_Tp, _Sequence>::const_reference = const std::pair<int, int>&]’ (did you forget the ‘()’ ?) 30 | int x = q.front.first; | ~~^~~~~ | () Main.cpp:31:19: error: invalid use of member function ‘std::queue<_Tp, _Sequence>::const_reference std::queue<_Tp, _Sequence>::front() const [with _Tp = std::pair<int, int>; _Sequence = std::deque<std::pair<int, int>, std::allocator<std::pair<int, int> > >; std::queue<_Tp, _Sequence>::const_reference = const std::pair<int, int>&]’ (did you forget the ‘()’ ?) 31 | int y = q.front.second; // must initalise the value before pop the queue. | ~~^~~~~ | ()
정답 개수:
-
틀린 개수:
-
실행 실패 개수:
-
반례를 발견하지 못했습니다.