실행 실패 (제출 코드 컴파일 에러)
{"stderr": "Main.cpp: In function \u2018int main()\u2019:\nMain.cpp:9:23: error: no matching function for call to \u2018std::map<int, int>::map(int&)\u2019\n 9 | map<int, int> tc(tcn);\n | ^\nIn file included from /usr/include/c++/11/map:61,\n from Main.cpp:2:\n/usr/include/c++/11/bits/stl_map.h:290:9: note: candidate: \u2018template<class _InputIterator> std::map<_Key, _Tp, _Compare, _Alloc>::map(_InputIterator, _InputIterator, const _Compare&, const allocator_type&) [with _InputIterator = _InputIterator; _Key = int; _Tp = int; _Compare = std::less<int>; _Alloc = std::allocator<std::pair<const int, int> >]\u2019\n 290 | map(_InputIterator __first, _InputIterator __last,\n | ^~~\n/usr/include/c++/11/bits/stl_map.h:290:9: note: template argument deduction/substitution failed:\nMain.cpp:9:23: note: candidate expects 4 arguments, 1 provided\n 9 | map<int, int> tc(tcn);\n | ^\nIn file included from /usr/include/c++/11/map:61,\n from Main.cpp:2:\n/usr/include/c++/11/bits/stl_map.h:273:9: note: candidate: \u2018template<class _InputIterator> std::map<_Key, _Tp, _Compare, _Alloc>::map(_InputIterator, _InputIterator) [with _InputIterator = _InputIterator; _Key = int; _Tp = int; _Compare = std::less<int>; _Alloc = std::allocator<std::pair<const int, int> >]\u2019\n 273 | map(_InputIterator __first, _InputIterator __last)\n | ^~~\n/usr/include/c++/11/bits/stl_map.h:273:9: note: template argument deduction/substitution failed:\nMain.cpp:9:23: note: candidate expects 2 arguments, 1 provided\n 9 | map<int, int> tc(tcn);\n | ^\nIn file included from /usr/include/c++/11/map:61,\n from Main.cpp:2:\n/usr/include/c++/11/bits/stl_map.h:256:9: note: candidate: \u2018template<class _InputIterator> std::map<_Key, _Tp, _Compare, _Alloc>::map(_InputIterator, _InputIterator, const allocator_type&) [with _InputIterator = _InputIterator; _Key = int; _Tp = int; _Compare = std::less<int>; _Alloc = std::allocator<std::pair<const int, int> >]\u2019\n 256 | map(_InputIterator __first, _InputIterator __last,\n | ^~~\n/usr/include/c++/11/bits/stl_map.h:256:9: note: template argument deduction/substitution failed:\nMain.cpp:9:23: note: candidate expects 3 arguments, 1 provided\n 9 | map<int, int> tc(tcn);\n | ^\nIn file included from /usr/include/c++/11/map:61,\n from Main.cpp:2:\n/usr/include/c++/11/bits/stl_map.h:250:7: note: candidate: \u2018std::map<_Key, _Tp, _Compare, _Alloc>::map(std::initializer_list<std::pair<const _Key, _Tp> >, const allocator_type&) [with _Key = int; _Tp = int; _Compare = std::less<int>; _Alloc = std::allocator<std::pair<const int, int> >; std::map<_Key, _Tp, _Compare, _Alloc>::allocator_type = std::allocator<std::pair<const int, int> >]\u2019\n 250 | map(initializer_list<value_type> __l, const allocator_type& __a)\n | ^~~\n/usr/include/c++/11/bits/stl_map.h:250:7: note: candidate expects 2 arguments, 1 provided\n/usr/include/c++/11/bits/stl_map.h:244:7: note: candidate: \u2018std::map<_Key, _Tp, _Compare, _Alloc>::map(std::map<_Key, _Tp, _Compare, _Alloc>&&, const allocator_type&) [with _Key = int; _Tp = int; _Compare = std::less<int>; _Alloc = std::allocator<std::pair<const int, int> >; std::map<_Key, _Tp, _Compare, _Alloc>::allocator_type = std::allocator<std::pair<const int, int> >]\u2019\n 244 | map(map&& __m, const allocator_type& __a)\n | ^~~\n/usr/include/c++/11/bits/stl_map.h:244:7: note: candidate expects 2 arguments, 1 provided\n/usr/include/c++/11/bits/stl_map.h:240:7: note: candidate: \u2018std::map<_Key, _Tp, _Compare, _Alloc>::map(const std::map<_Key, _Tp, _Compare, _Alloc>&, const allocator_type&) [with _Key = int; _Tp = int; _Compare = std::less<int>; _Alloc = std::allocator<std::pair<const int, int> >; std::map<(...truncated, total 7861 characters)
정답 개수:
-
틀린 개수:
-
실행 실패 개수:
-
비공개 코드입니다. 코드 작성자만 볼 수 있습니다.
반례를 발견하지 못했습니다.