실행 실패 (제출 코드 컴파일 에러)
{"stderr": "Main.cpp: In function \u2018int main()\u2019:\nMain.cpp:37:26: error: no matching function for call to \u2018std::vector<int>::vector(std::map<int, int>&)\u2019\n 37 | output = vector<int> (m);\n | ^\nIn file included from /usr/include/c++/11/vector:67,\n from Main.cpp:2:\n/usr/include/c++/11/bits/stl_vector.h:653:9: note: candidate: \u2018template<class _InputIterator, class> std::vector<_Tp, _Alloc>::vector(_InputIterator, _InputIterator, const allocator_type&) [with _InputIterator = _InputIterator; <template-parameter-2-2> = <template-parameter-1-2>; _Tp = int; _Alloc = std::allocator<int>]\u2019\n 653 | vector(_InputIterator __first, _InputIterator __last,\n | ^~~~~~\n/usr/include/c++/11/bits/stl_vector.h:653:9: note: template argument deduction/substitution failed:\nMain.cpp:37:26: note: candidate expects 3 arguments, 1 provided\n 37 | output = vector<int> (m);\n | ^\nIn file included from /usr/include/c++/11/vector:67,\n from Main.cpp:2:\n/usr/include/c++/11/bits/stl_vector.h:625:7: note: candidate: \u2018std::vector<_Tp, _Alloc>::vector(std::initializer_list<_Tp>, const allocator_type&) [with _Tp = int; _Alloc = std::allocator<int>; std::vector<_Tp, _Alloc>::allocator_type = std::allocator<int>]\u2019\n 625 | vector(initializer_list<value_type> __l,\n | ^~~~~~\n/usr/include/c++/11/bits/stl_vector.h:625:43: note: no known conversion for argument 1 from \u2018std::map<int, int>\u2019 to \u2018std::initializer_list<int>\u2019\n 625 | vector(initializer_list<value_type> __l,\n | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~\n/usr/include/c++/11/bits/stl_vector.h:607:7: note: candidate: \u2018std::vector<_Tp, _Alloc>::vector(std::vector<_Tp, _Alloc>&&, const allocator_type&) [with _Tp = int; _Alloc = std::allocator<int>; std::vector<_Tp, _Alloc>::allocator_type = std::allocator<int>]\u2019\n 607 | vector(vector&& __rv, const allocator_type& __m)\n | ^~~~~~\n/usr/include/c++/11/bits/stl_vector.h:607:7: note: candidate expects 2 arguments, 1 provided\n/usr/include/c++/11/bits/stl_vector.h:589:7: note: candidate: \u2018std::vector<_Tp, _Alloc>::vector(std::vector<_Tp, _Alloc>&&, const allocator_type&, std::false_type) [with _Tp = int; _Alloc = std::allocator<int>; std::vector<_Tp, _Alloc>::allocator_type = std::allocator<int>; std::false_type = std::integral_constant<bool, false>]\u2019\n 589 | vector(vector&& __rv, const allocator_type& __m, false_type)\n | ^~~~~~\n/usr/include/c++/11/bits/stl_vector.h:589:7: note: candidate expects 3 arguments, 1 provided\n/usr/include/c++/11/bits/stl_vector.h:585:7: note: candidate: \u2018std::vector<_Tp, _Alloc>::vector(std::vector<_Tp, _Alloc>&&, const allocator_type&, std::true_type) [with _Tp = int; _Alloc = std::allocator<int>; std::vector<_Tp, _Alloc>::allocator_type = std::allocator<int>; std::true_type = std::integral_constant<bool, true>]\u2019\n 585 | vector(vector&& __rv, const allocator_type& __m, true_type) noexcept\n | ^~~~~~\n/usr/include/c++/11/bits/stl_vector.h:585:7: note: candidate expects 3 arguments, 1 provided\n/usr/include/c++/11/bits/stl_vector.h:575:7: note: candidate: \u2018std::vector<_Tp, _Alloc>::vector(const std::vector<_Tp, _Alloc>&, const allocator_type&) [with _Tp = int; _Alloc = std::allocator<int>; std::vector<_Tp, _Alloc>::allocator_type = std::allocator<int>]\u2019\n 575 | vector(const vector& __x, const allocator_type& __a)\n | ^~~~~~\n/usr/include/c++/11/bits/stl_vector.h:575:7: note: candidate expects 2 arguments, 1 provided\n/usr/include/c++/11/bits/stl_vector.h:572:7: note: candidate: \u2018std::vector<_Tp, _Alloc>::vector(std::vector<_Tp, _Alloc>&&) [with _Tp = int; _Alloc = std::allocator<int>]\u2019\n 572 | vector(vector&&) noexcept = default;\n | ^~~~~~\n/usr/include/c++/11/bits/stl_(...truncated, total 7023 characters, 1 lines)
정답 개수:
-
틀린 개수:
-
실행 실패 개수:
-
반례를 발견하지 못했습니다.