실행 실패 (제출 코드 컴파일 에러)
Main.cpp: In function ‘void BFS(int, int)’: Main.cpp:44:25: error: reference to ‘count’ is ambiguous 44 | count++; | ^~~~~ In file included from /usr/include/c++/11/string:52, 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/stl_algo.h:4059:5: note: candidates are: ‘template<class _IIter, class _Tp> constexpr typename std::iterator_traits< <template-parameter-1-1> >::difference_type std::count(_IIter, _IIter, const _Tp&)’ 4059 | count(_InputIterator __first, _InputIterator __last, const _Tp& __value) | ^~~~~ Main.cpp:4:5: note: ‘int count’ 4 | int count=0; | ^~~~~ Main.cpp: In function ‘int main()’: Main.cpp:124:21: error: reference to ‘count’ is ambiguous 124 | printf("%d",count); | ^~~~~ In file included from /usr/include/c++/11/string:52, 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/stl_algo.h:4059:5: note: candidates are: ‘template<class _IIter, class _Tp> constexpr typename std::iterator_traits< <template-parameter-1-1> >::difference_type std::count(_IIter, _IIter, const _Tp&)’ 4059 | count(_InputIterator __first, _InputIterator __last, const _Tp& __value) | ^~~~~ Main.cpp:4:5: note: ‘int count’ 4 | int count=0; | ^~~~~ Main.cpp:89:14: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 89 | scanf("%d %d",&c,&r); | ~~~~~^~~~~~~~~~~~~~~ Main.cpp:95:30: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 95 | scanf("%d",&map[i][j]); | ~~~~~^~~~~~~~~~~~~~~~~
정답 개수:
-
틀린 개수:
-
실행 실패 개수:
-
반례를 발견하지 못했습니다.