실행 실패 (제출 코드 컴파일 에러)
Main.cpp: In function ‘void init()’: Main.cpp:27:9: error: reference to ‘rotate’ is ambiguous 27 | rotate.push({a, b}); | ^~~~~~ In file included from /usr/include/c++/11/deque:62, from Main.cpp:1: /usr/include/c++/11/bits/stl_algo.h:1405:5: note: candidates are: ‘template<class _FIter> constexpr _FIter std::_V2::rotate(_FIter, _FIter, _FIter)’ 1405 | rotate(_ForwardIterator __first, _ForwardIterator __middle, | ^~~~~~ Main.cpp:13:24: note: ‘std::queue<std::pair<int, char> > rotate’ 13 | queue<pair<int, char>> rotate; | ^~~~~~ Main.cpp: In function ‘void rotation()’: Main.cpp:59:27: error: reference to ‘rotate’ is ambiguous 59 | pair<int, char> cur = rotate.front(); | ^~~~~~ In file included from /usr/include/c++/11/deque:62, from Main.cpp:1: /usr/include/c++/11/bits/stl_algo.h:1405:5: note: candidates are: ‘template<class _FIter> constexpr _FIter std::_V2::rotate(_FIter, _FIter, _FIter)’ 1405 | rotate(_ForwardIterator __first, _ForwardIterator __middle, | ^~~~~~ Main.cpp:13:24: note: ‘std::queue<std::pair<int, char> > rotate’ 13 | queue<pair<int, char>> rotate; | ^~~~~~ Main.cpp:60:5: error: reference to ‘rotate’ is ambiguous 60 | rotate.pop(); | ^~~~~~ In file included from /usr/include/c++/11/deque:62, from Main.cpp:1: /usr/include/c++/11/bits/stl_algo.h:1405:5: note: candidates are: ‘template<class _FIter> constexpr _FIter std::_V2::rotate(_FIter, _FIter, _FIter)’ 1405 | rotate(_ForwardIterator __first, _ForwardIterator __middle, | ^~~~~~ Main.cpp:13:24: note: ‘std::queue<std::pair<int, char> > rotate’ 13 | queue<pair<int, char>> rotate; | ^~~~~~ Main.cpp: In function ‘void solve()’: Main.cpp:77:22: error: reference to ‘rotate’ is ambiguous 77 | if (times == rotate.front().first) | ^~~~~~ In file included from /usr/include/c++/11/deque:62, from Main.cpp:1: /usr/include/c++/11/bits/stl_algo.h:1405:5: note: candidates are: ‘template<class _FIter> constexpr _FIter std::_V2::rotate(_FIter, _FIter, _FIter)’ 1405 | rotate(_ForwardIterator __first, _ForwardIterator __middle, | ^~~~~~ Main.cpp:13:24: note: ‘std::queue<std::pair<int, char> > rotate’ 13 | queue<pair<int, char>> rotate; | ^~~~~~
정답 개수:
-
틀린 개수:
-
실행 실패 개수:
-
반례를 발견하지 못했습니다.