실행 실패 (제출 코드 컴파일 에러)
Main.cpp: In function ‘void merge_sort(int, int)’: Main.cpp:66:5: error: reference to ‘count’ is ambiguous 66 | count++; | ^~~~~ In file included from /usr/include/c++/11/algorithm:74, from Main.cpp:2: /usr/include/c++/11/pstl/glue_algorithm_defs.h:101:1: note: candidates are: ‘template<class _ExecutionPolicy, class _ForwardIterator, class _Tp> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, typename std::iterator_traits<_II>::difference_type> std::count(_ExecutionPolicy&&, _ForwardIterator, _ForwardIterator, const _Tp&)’ 101 | count(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last, const _Tp& __value); | ^~~~~ 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: ‘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:9:12: note: ‘int count’ 9 | static int count = 0; | ^~~~~ Main.cpp: At global scope: Main.cpp:9:12: warning: ‘count’ defined but not used [-Wunused-variable]
정답 개수:
-
틀린 개수:
-
실행 실패 개수:
-
반례를 발견하지 못했습니다.