실행 실패 (제출 코드 컴파일 에러)
Main.cpp: In function ‘int main()’: Main.cpp:48:17: error: reference to ‘movable’ is ambiguous 48 | if (movable(cur, dir) && fire[cur.first + offset[dir][0]][cur.second + offset[dir][1]] == 0) { | ^~~~~~~ In file included from /usr/include/c++/11/compare:39, from /usr/include/c++/11/bits/stl_pair.h:65, from /usr/include/c++/11/bits/stl_algobase.h:64, from /usr/include/c++/11/bits/specfun.h:45, from /usr/include/c++/11/cmath:1935, from /usr/include/aarch64-linux-gnu/c++/11/bits/stdc++.h:41, from Main.cpp:1: /usr/include/c++/11/concepts:247:13: note: candidates are: ‘template<class _Tp> concept std::movable’ 247 | concept movable = is_object_v<_Tp> && move_constructible<_Tp> | ^~~~~~~ Main.cpp:10:6: note: ‘bool movable(std::pair<int, int>&, int)’ 10 | bool movable(pair<int,int>& cur, int dir) { | ^~~~~~~ Main.cpp:65:17: error: reference to ‘movable’ is ambiguous 65 | if (movable(cur, dir) && jihoon[cur.first + offset[dir][0]][cur.second + offset[dir][1]] == 0) { | ^~~~~~~ In file included from /usr/include/c++/11/compare:39, from /usr/include/c++/11/bits/stl_pair.h:65, from /usr/include/c++/11/bits/stl_algobase.h:64, from /usr/include/c++/11/bits/specfun.h:45, from /usr/include/c++/11/cmath:1935, from /usr/include/aarch64-linux-gnu/c++/11/bits/stdc++.h:41, from Main.cpp:1: /usr/include/c++/11/concepts:247:13: note: candidates are: ‘template<class _Tp> concept std::movable’ 247 | concept movable = is_object_v<_Tp> && move_constructible<_Tp> | ^~~~~~~ Main.cpp:10:6: note: ‘bool movable(std::pair<int, int>&, int)’ 10 | bool movable(pair<int,int>& cur, int dir) { | ^~~~~~~
정답 개수:
-
틀린 개수:
-
실행 실패 개수:
-
반례를 발견하지 못했습니다.