실행 실패 (제출 코드 컴파일 에러)
Main.cpp: In function ‘int main()’: Main.cpp:80:13: error: no matching function for call to ‘fill(<brace-enclosed initializer list>)’ 80 | fill({dist,x,y}) = mn; | ~~~~^~~~~~~~~~~~ In file included 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/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:80:13: note: candidate expects 3 arguments, 1 provided 80 | fill({dist,x,y}) = mn; | ~~~~^~~~~~~~~~~~ In file included from /usr/include/c++/11/algorithm:74, from /usr/include/aarch64-linux-gnu/c++/11/bits/stdc++.h:65, from Main.cpp:1: /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:80:13: note: candidate expects 4 arguments, 1 provided 80 | fill({dist,x,y}) = mn; | ~~~~^~~~~~~~~~~~ In file included 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/bits/stl_algobase.h: In instantiation of ‘constexpr typename __gnu_cxx::__enable_if<std::__is_scalar<_Tp>::__value, void>::__type std::__fill_a1(_ForwardIterator, _ForwardIterator, const _Tp&) [with _ForwardIterator = int (*)[22]; _Tp = int; typename __gnu_cxx::__enable_if<std::__is_scalar<_Tp>::__value, void>::__type = void]’: /usr/include/c++/11/bits/stl_algobase.h:969:21: required from ‘constexpr void std::__fill_a(_FIte, _FIte, const _Tp&) [with _FIte = int (*)[22]; _Tp = int]’ /usr/include/c++/11/bits/stl_algobase.h:999:20: required from ‘constexpr void std::fill(_ForwardIterator, _ForwardIterator, const _Tp&) [with _ForwardIterator = int (*)[22]; _Tp = int]’ Main.cpp:22:13: required from here /usr/include/c++/11/bits/stl_algobase.h:924:18: error: incompatible types in assignment of ‘const int’ to ‘int [22]’ 924 | *__first = __tmp; | ~~~~~~~~~^~~~~~~
정답 개수:
-
틀린 개수:
-
실행 실패 개수:
-
반례를 발견하지 못했습니다.