실행 실패 (제출 코드 컴파일 에러)
{"stderr": "In file included from /usr/include/c++/11/ext/alloc_traits.h:34,\n from /usr/include/c++/11/bits/basic_string.h:40,\n from /usr/include/c++/11/string:55,\n from /usr/include/c++/11/bits/locale_classes.h:40,\n from /usr/include/c++/11/bits/ios_base.h:41,\n from /usr/include/c++/11/ios:42,\n from /usr/include/c++/11/ostream:38,\n from /usr/include/c++/11/iostream:39,\n from Main.cpp:1:\n/usr/include/c++/11/bits/alloc_traits.h: In instantiation of \u2018static constexpr void std::allocator_traits<std::allocator<_CharT> >::construct(std::allocator_traits<std::allocator<_CharT> >::allocator_type&, _Up*, _Args&& ...) [with _Up = int [2]; _Args = {const int (&)[2]}; _Tp = int [2]; std::allocator_traits<std::allocator<_CharT> >::allocator_type = std::allocator<int [2]>]\u2019:\n/usr/include/c++/11/bits/stl_vector.h:1192:30: required from \u2018void std::vector<_Tp, _Alloc>::push_back(const value_type&) [with _Tp = int [2]; _Alloc = std::allocator<int [2]>; std::vector<_Tp, _Alloc>::value_type = int [2]]\u2019\nMain.cpp:17:20: required from here\n/usr/include/c++/11/bits/alloc_traits.h:518:28: error: no matching function for call to \u2018construct_at(int (*&)[2], const int [2])\u2019\n 518 | std::construct_at(__p, std::forward<_Args>(__args)...);\n | ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\nIn file included from /usr/include/c++/11/bits/stl_iterator.h:85,\n from /usr/include/c++/11/bits/stl_algobase.h:67,\n from /usr/include/c++/11/bits/char_traits.h:39,\n from /usr/include/c++/11/ios:40,\n from /usr/include/c++/11/ostream:38,\n from /usr/include/c++/11/iostream:39,\n from Main.cpp:1:\n/usr/include/c++/11/bits/stl_construct.h:94:5: note: candidate: \u2018template<class _Tp, class ... _Args> constexpr decltype (::new(void*(0)) _Tp) std::construct_at(_Tp*, _Args&& ...)\u2019\n 94 | construct_at(_Tp* __location, _Args&&... __args)\n | ^~~~~~~~~~~~\n/usr/include/c++/11/bits/stl_construct.h:94:5: note: template argument deduction/substitution failed:\n/usr/include/c++/11/bits/stl_construct.h: In substitution of \u2018template<class _Tp, class ... _Args> constexpr decltype (::new(void*(0)) _Tp) std::construct_at(_Tp*, _Args&& ...) [with _Tp = int [2]; _Args = {const int (&)[2]}]\u2019:\n/usr/include/c++/11/bits/alloc_traits.h:518:21: required from \u2018static constexpr void std::allocator_traits<std::allocator<_CharT> >::construct(std::allocator_traits<std::allocator<_CharT> >::allocator_type&, _Up*, _Args&& ...) [with _Up = int [2]; _Args = {const int (&)[2]}; _Tp = int [2]; std::allocator_traits<std::allocator<_CharT> >::allocator_type = std::allocator<int [2]>]\u2019\n/usr/include/c++/11/bits/stl_vector.h:1192:30: required from \u2018void std::vector<_Tp, _Alloc>::push_back(const value_type&) [with _Tp = int [2]; _Alloc = std::allocator<int [2]>; std::vector<_Tp, _Alloc>::value_type = int [2]]\u2019\nMain.cpp:17:20: required from here\n/usr/include/c++/11/bits/stl_construct.h:96:56: error: invalid conversion from \u2018const int*\u2019 to \u2018int\u2019 [-fpermissive]\n 96 | -> decltype(::new((void*)0) _Tp(std::declval<_Args>()...))\n | ~~~~~~~~~~~~~~~~~~~^~\n | |\n | const int*\nIn file included from /usr/include/c++/11/vector:66,\n from Main.cpp:2:\n/usr/include/c++/11/bits/stl_uninitialized.h: In instantiation of \u2018_ForwardIterator std::uninitialized_copy(_InputIterator, _InputIterator, _ForwardIterator) [with _InputIterator = std::move_iterator<int (*)[2]>; _ForwardIterator = int (*)[2]]\u2019:\n/usr/include/c++/11/bits/stl_uninitialized.h:333:37: (...truncated, total 5609 characters, 1 lines)
정답 개수:
-
틀린 개수:
-
실행 실패 개수:
-
비공개 코드입니다. 코드 작성자만 볼 수 있습니다.
반례를 발견하지 못했습니다.