실행 실패 (제출 코드 컴파일 에러)
Main.cpp: In function ‘int dfs()’: Main.cpp:25:13: warning: suggest parentheses around comparison in operand of ‘&’ [-Wparentheses] 25 | if(st_x == end_x & st_y == end_y)return 0; | ~~~~~^~~~~~~~ Main.cpp:39:22: error: reference to ‘size’ is ambiguous 39 | if(!(dy>=size || dy<0 || dx>=size || dx<0)) | ^~~~ In file included from /usr/include/c++/11/string:54, from /usr/include/c++/11/bits/locale_classes.h:40, from /usr/include/c++/11/bits/ios_base.h:41, from /usr/include/c++/11/ios:42, from /usr/include/c++/11/ostream:38, from /usr/include/c++/11/iostream:39, from Main.cpp:1: /usr/include/c++/11/bits/range_access.h:254:5: note: candidates are: ‘template<class _Tp, long unsigned int _Nm> constexpr std::size_t std::size(const _Tp (&)[_Nm])’ 254 | size(const _Tp (&)[_Nm]) noexcept | ^~~~ /usr/include/c++/11/bits/range_access.h:245:5: note: ‘template<class _Container> constexpr decltype (__cont.size()) std::size(const _Container&)’ 245 | size(const _Container& __cont) noexcept(noexcept(__cont.size())) | ^~~~ Main.cpp:18:5: note: ‘int size’ 18 | int size; | ^~~~ Main.cpp:39:42: error: reference to ‘size’ is ambiguous 39 | if(!(dy>=size || dy<0 || dx>=size || dx<0)) | ^~~~ In file included from /usr/include/c++/11/string:54, from /usr/include/c++/11/bits/locale_classes.h:40, from /usr/include/c++/11/bits/ios_base.h:41, from /usr/include/c++/11/ios:42, from /usr/include/c++/11/ostream:38, from /usr/include/c++/11/iostream:39, from Main.cpp:1: /usr/include/c++/11/bits/range_access.h:254:5: note: candidates are: ‘template<class _Tp, long unsigned int _Nm> constexpr std::size_t std::size(const _Tp (&)[_Nm])’ 254 | size(const _Tp (&)[_Nm]) noexcept | ^~~~ /usr/include/c++/11/bits/range_access.h:245:5: note: ‘template<class _Container> constexpr decltype (__cont.size()) std::size(const _Container&)’ 245 | size(const _Container& __cont) noexcept(noexcept(__cont.size())) | ^~~~ Main.cpp:18:5: note: ‘int size’ 18 | int size; | ^~~~ Main.cpp: In function ‘int main()’: Main.cpp:65:17: error: reference to ‘size’ is ambiguous 65 | cin >> T >> size >> st_x >> st_y >> end_x >> end_y; | ^~~~ In file included from /usr/include/c++/11/string:54, from /usr/include/c++/11/bits/locale_classes.h:40, from /usr/include/c++/11/bits/ios_base.h:41, from /usr/include/c++/11/ios:42, from /usr/include/c++/11/ostream:38, from /usr/include/c++/11/iostream:39, from Main.cpp:1: /usr/include/c++/11/bits/range_access.h:254:5: note: candidates are: ‘template<class _Tp, long unsigned int _Nm> constexpr std::size_t std::size(const _Tp (&)[_Nm])’ 254 | size(const _Tp (&)[_Nm]) noexcept | ^~~~ /usr/include/c++/11/bits/range_access.h:245:5: note: ‘template<class _Container> constexpr decltype (__cont.size()) std::size(const _Container&)’ 245 | size(const _Container& __cont) noexcept(noexcept(__cont.size())) | ^~~~ Main.cpp:18:5: note: ‘int size’ 18 | int size; | ^~~~ Main.cpp:74:16: error: reference to ‘size’ is ambiguous 74 | cin >> size; | ^~~~ In file included from /usr/include/c++/11/string:54, from /usr/include/c++/11/bits/locale_classes.h:40, from /usr/include/c++/11/bits/ios_base.h:41, from /usr/include/c++/11/ios:42, from /usr/include/c++/11/ostream:38, from /usr/include/c++/11/iostream:39, from Main.cpp:1: /usr/include/c++/11/bits/range_access.h:254:5: note: candidates are: ‘template<class _Tp, long unsigned int _Nm> constexpr std::size_t std::size(const _Tp (&)[_Nm])’ 254 | size(const _Tp (&)[_Nm]) noexcept | ^~~~ /usr/include/c++/11/bits/range_access.h:245:5: note: ‘template<class _Container> constexpr decltype (__cont.size()) std::size(const _Container&)’ 245 | size(const _Container& __cont) noexcept(noexcept(__cont.size())) | ^~~~ Main.cpp:18:5: note: ‘int size’ 18 | int size; | ^~~~ Main.cpp:75:24: error: reference to ‘size’ is ambiguous 75 | for(int j=0; j<size; ++j) | ^~~~ In file included from /usr/include/c++/11/string:54, from /usr/include/c++/11/bits/locale_classes.h:40, from /usr/include/c++/11/bits/ios_base.h:41, from /usr/include/c++/11/ios:42, from /usr/include/c++/11/ostream:38, from /usr/include/c++/11/iostream:39, from Main.cpp:1: /usr/include/c++/11/bits/range_access.h:254:5: note: candidates are: ‘template<class _Tp, long unsigned int _Nm> constexpr std::size_t std::size(const _Tp (&)[_Nm])’ 254 | size(const _Tp (&)[_Nm]) noexcept | ^~~~ /usr/include/c++/11/bits/range_access.h:245:5: note: ‘template<class _Container> constexpr decltype (__cont.size()) std::size(const _Container&)’ 245 | size(const _Container& __cont) noexcept(noexcept(__cont.size())) | ^~~~ Main.cpp:18:5: note: ‘int size’ 18 | int size; | ^~~~ Main.cpp:77:44: error: reference to ‘size’ is ambiguous 77 | memset(visit[j],0,sizeof(bool)*size); | ^~~~ In file included from /usr/include/c++/11/string:54, from /usr/include/c++/11/bits/locale_classes.h:40, from /usr/include/c++/11/bits/ios_base.h:41, from /usr/include/c++/11/ios:42, from /usr/include/c++/11/ostream:38, from /usr/include/c++/11/iostream:39, from Main.cpp:1: /usr/include/c++/11/bits/range_access.h:254:5: note: candidates are: ‘template<class _Tp, long unsigned int _Nm> constexpr std::size_t std::size(const _Tp (&)[_Nm])’ 254 | size(const _Tp (&)[_Nm]) noexcept | ^~~~ /usr/include/c++/11/bits/range_access.h:245:5: note: ‘template<class _Container> constexpr decltype (__cont.size()) std::size(const _Container&)’ 245 | size(const _Container& __cont) noexcept(noexcept(__cont.size())) | ^~~~ Main.cpp:18:5: note: ‘int size’ 18 | int size; | ^~~~
정답 개수:
-
틀린 개수:
-
실행 실패 개수:
-
반례를 발견하지 못했습니다.