실행 실패 (제출 코드 컴파일 에러)
{"stderr": "In file included from /usr/include/c++/11/bits/specfun.h:45,\n from /usr/include/c++/11/cmath:1935,\n from /usr/include/aarch64-linux-gnu/c++/11/bits/stdc++.h:41,\n from Main.cpp:1:\n/usr/include/c++/11/bits/stl_algobase.h: In instantiation of \u2018constexpr typename __gnu_cxx::__enable_if<std::__is_scalar<_Tp>::__value, void>::__type std::__fill_a1(_ForwardIterator, _ForwardIterator, const _Tp&) [with _ForwardIterator = std::vector<int>*; _Tp = int; typename __gnu_cxx::__enable_if<std::__is_scalar<_Tp>::__value, void>::__type = void]\u2019:\n/usr/include/c++/11/bits/stl_algobase.h:953:21: required from \u2018constexpr void std::__fill_a1(__gnu_cxx::__normal_iterator<_Iterator, _Container>, __gnu_cxx::__normal_iterator<_Iterator, _Container>, const _Tp&) [with _Ite = std::vector<int>*; _Cont = std::vector<std::vector<int> >; _Tp = int]\u2019\n/usr/include/c++/11/bits/stl_algobase.h:969:21: required from \u2018constexpr void std::__fill_a(_FIte, _FIte, const _Tp&) [with _FIte = __gnu_cxx::__normal_iterator<std::vector<int>*, std::vector<std::vector<int> > >; _Tp = int]\u2019\n/usr/include/c++/11/bits/stl_algobase.h:999:20: required from \u2018constexpr void std::fill(_ForwardIterator, _ForwardIterator, const _Tp&) [with _ForwardIterator = __gnu_cxx::__normal_iterator<std::vector<int>*, std::vector<std::vector<int> > >; _Tp = int]\u2019\nMain.cpp:98:13: required from here\n/usr/include/c++/11/bits/stl_algobase.h:924:18: error: no match for \u2018operator=\u2019 (operand types are \u2018std::vector<int>\u2019 and \u2018const int\u2019)\n 924 | *__first = __tmp;\n | ~~~~~~~~~^~~~~~~\nIn file included from /usr/include/c++/11/vector:72,\n from /usr/include/c++/11/functional:62,\n from /usr/include/c++/11/pstl/glue_algorithm_defs.h:13,\n from /usr/include/c++/11/algorithm:74,\n from /usr/include/aarch64-linux-gnu/c++/11/bits/stdc++.h:65,\n from Main.cpp:1:\n/usr/include/c++/11/bits/vector.tcc:198:5: note: candidate: \u2018std::vector<_Tp, _Alloc>& std::vector<_Tp, _Alloc>::operator=(const std::vector<_Tp, _Alloc>&) [with _Tp = int; _Alloc = std::allocator<int>]\u2019\n 198 | vector<_Tp, _Alloc>::\n | ^~~~~~~~~~~~~~~~~~~\n/usr/include/c++/11/bits/vector.tcc:199:42: note: no known conversion for argument 1 from \u2018const int\u2019 to \u2018const std::vector<int>&\u2019\n 199 | operator=(const vector<_Tp, _Alloc>& __x)\n | ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~\nIn file included from /usr/include/c++/11/vector:67,\n from /usr/include/c++/11/functional:62,\n from /usr/include/c++/11/pstl/glue_algorithm_defs.h:13,\n from /usr/include/c++/11/algorithm:74,\n from /usr/include/aarch64-linux-gnu/c++/11/bits/stdc++.h:65,\n from Main.cpp:1:\n/usr/include/c++/11/bits/stl_vector.h:709:7: note: candidate: \u2018std::vector<_Tp, _Alloc>& std::vector<_Tp, _Alloc>::operator=(std::vector<_Tp, _Alloc>&&) [with _Tp = int; _Alloc = std::allocator<int>]\u2019\n 709 | operator=(vector&& __x) noexcept(_Alloc_traits::_S_nothrow_move())\n | ^~~~~~~~\n/usr/include/c++/11/bits/stl_vector.h:709:26: note: no known conversion for argument 1 from \u2018const int\u2019 to \u2018std::vector<int>&&\u2019\n 709 | operator=(vector&& __x) noexcept(_Alloc_traits::_S_nothrow_move())\n | ~~~~~~~~~^~~\n/usr/include/c++/11/bits/stl_vector.h:730:7: note: candidate: \u2018std::vector<_Tp, _Alloc>& std::vector<_Tp, _Alloc>::operator=(std::initializer_list<_Tp>) [with _Tp = int; _Alloc = std::allocator<int>]\u2019\n 730 | operator=(initializer_list<value_type> __l)\n | ^~~~~~~~\n/usr/include/c++/11/bits/stl_vector.h:730:46: note: no known conversion for argument 1 from \u2018const int\u2019 to \u2018std::initializer_list<int>\u2019\(...truncated, total 4120 characters)
정답 개수:
-
틀린 개수:
-
실행 실패 개수:
-
반례를 발견하지 못했습니다.