실행 실패 (제출 코드 컴파일 에러)
Main.cpp: In function ‘int main()’: Main.cpp:18:13: error: no matching function for call to ‘fill(int*, int, int)’ 18 | fill(&dp[0][0], dp[0][0]+5001*2, 0); | ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/c++/11/bits/char_traits.h:39, from /usr/include/c++/11/ios:40, from /usr/include/c++/11/ostream:38, from /usr/include/c++/11/iostream:39, from Main.cpp:1: /usr/include/c++/11/bits/stl_algobase.h:992:5: note: candidate: ‘template<class _ForwardIterator, class _Tp> constexpr void std::fill(_ForwardIterator, _ForwardIterator, const _Tp&)’ 992 | fill(_ForwardIterator __first, _ForwardIterator __last, const _Tp& __value) | ^~~~ /usr/include/c++/11/bits/stl_algobase.h:992:5: note: template argument deduction/substitution failed: Main.cpp:18:13: note: deduced conflicting types for parameter ‘_ForwardIterator’ (‘int*’ and ‘int’) 18 | fill(&dp[0][0], dp[0][0]+5001*2, 0); | ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/c++/11/algorithm:74, from Main.cpp:2: /usr/include/c++/11/pstl/glue_algorithm_defs.h:191:1: note: candidate: ‘template<class _ExecutionPolicy, class _ForwardIterator, class _Tp> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, void> std::fill(_ExecutionPolicy&&, _ForwardIterator, _ForwardIterator, const _Tp&)’ 191 | fill(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last, const _Tp& __value); | ^~~~ /usr/include/c++/11/pstl/glue_algorithm_defs.h:191:1: note: template argument deduction/substitution failed: Main.cpp:18:13: note: candidate expects 4 arguments, 3 provided 18 | fill(&dp[0][0], dp[0][0]+5001*2, 0); | ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Main.cpp:27:24: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::__cxx11::basic_string<char>::size_type’ {aka ‘long unsigned int’} [-Wsign-compare] 27 | for (int i=0; i<pass.size(); i++) | ~^~~~~~~~~~~~ Main.cpp:37:24: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::__cxx11::basic_string<char>::size_type’ {aka ‘long unsigned int’} [-Wsign-compare] 37 | for (int i=1; i<=pass.size(); i++) | ~^~~~~~~~~~~~~
정답 개수:
-
틀린 개수:
-
실행 실패 개수:
-
비공개 코드입니다. 코드 작성자만 볼 수 있습니다.
반례를 발견하지 못했습니다.