실행 실패 (제출 코드 컴파일 에러)
Main.cpp: In function ‘int main()’: Main.cpp:64:17: error: reference to ‘movable’ is ambiguous 64 | if (movable(cur, dir)) { | ^~~~~~~ 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:22:6: note: ‘bool movable(std::pair<int, int>&, int)’ 22 | bool movable(pair<int,int>& cur, int dir) { | ^~~~~~~ Main.cpp:72:17: error: reference to ‘movable’ is ambiguous 72 | if (movable(cur_fire, dir)) { | ^~~~~~~ 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:22:6: note: ‘bool movable(std::pair<int, int>&, int)’ 22 | bool movable(pair<int,int>& cur, int dir) { | ^~~~~~~ Main.cpp: In function ‘int converted(char)’: Main.cpp:20:1: warning: control reaches end of non-void function [-Wreturn-type] 20 | } | ^
정답 개수:
-
틀린 개수:
-
실행 실패 개수:
-
반례를 발견하지 못했습니다.