실행 실패 (제출 코드 컴파일 에러)
{"stderr": "Main.cpp: In function \u2018int main()\u2019:\nMain.cpp:13:16: error: class template argument deduction failed:\n 13 | map[tmp] = 0;\n | ^\nMain.cpp:13:16: error: no matching function for call to \u2018map(int)\u2019\nIn file included from /usr/include/c++/11/map:61,\n from Main.cpp:2:\n/usr/include/c++/11/bits/stl_map.h:1424:5: note: candidate: \u2018template<class _InputIterator, class _Compare, class _Allocator, class, class, class> std::map(_InputIterator, _InputIterator, _Compare, _Allocator)-> std::map<typename std::remove_const<typename std::iterator_traits< <template-parameter-1-1> >::value_type::first_type>::type, typename std::iterator_traits< <template-parameter-1-1> >::value_type::second_type, _Compare, _Allocator>\u2019\n 1424 | map(_InputIterator, _InputIterator,\n | ^~~\n/usr/include/c++/11/bits/stl_map.h:1424:5: note: template argument deduction/substitution failed:\nMain.cpp:13:16: note: candidate expects 4 arguments, 1 provided\n 13 | map[tmp] = 0;\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:1433:5: note: candidate: \u2018template<class _Key, class _Tp, class _Compare, class _Allocator, class, class> std::map(std::initializer_list<std::pair<_T1, _T2> >, _Compare, _Allocator)-> std::map<_Key, _Tp, _Compare, _Allocator>\u2019\n 1433 | map(initializer_list<pair<_Key, _Tp>>,\n | ^~~\n/usr/include/c++/11/bits/stl_map.h:1433:5: note: template argument deduction/substitution failed:\nMain.cpp:13:16: note: mismatched types \u2018std::initializer_list<std::pair<_T1, _T2> >\u2019 and \u2018int\u2019\n 13 | map[tmp] = 0;\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:1440:5: note: candidate: \u2018template<class _InputIterator, class _Allocator, class, class> std::map(_InputIterator, _InputIterator, _Allocator)-> std::map<typename std::remove_const<typename std::iterator_traits< <template-parameter-1-1> >::value_type::first_type>::type, typename std::iterator_traits< <template-parameter-1-1> >::value_type::second_type, std::less<typename std::remove_const<typename std::iterator_traits< <template-parameter-1-1> >::value_type::first_type>::type>, _Allocator>\u2019\n 1440 | map(_InputIterator, _InputIterator, _Allocator)\n | ^~~\n/usr/include/c++/11/bits/stl_map.h:1440:5: note: template argument deduction/substitution failed:\nMain.cpp:13:16: note: candidate expects 3 arguments, 1 provided\n 13 | map[tmp] = 0;\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:1446:5: note: candidate: \u2018template<class _Key, class _Tp, class _Allocator, class> std::map(std::initializer_list<std::pair<_T1, _T2> >, _Allocator)-> std::map<_Key, _Tp, std::less<_Key>, _Allocator>\u2019\n 1446 | map(initializer_list<pair<_Key, _Tp>>, _Allocator)\n | ^~~\n/usr/include/c++/11/bits/stl_map.h:1446:5: note: template argument deduction/substitution failed:\nMain.cpp:13:16: note: mismatched types \u2018std::initializer_list<std::pair<_T1, _T2> >\u2019 and \u2018int\u2019\n 13 | map[tmp] = 0;\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:100:11: note: candidate: \u2018template<class _Key, class _Tp, class _Compare, class _Alloc> map(std::map<_Key, _Tp, _Compare, _Alloc>)-> std::map<_Key, _Tp, _Compare, _Alloc>\u2019\n 100 | class map\n | ^~~\n/usr/include/c++/11/bits/stl_map.h:100:11: note: template argument deduction/substitution failed:\nMain.cpp:13:16: note: mismatched types \u2018std::map<_Key, _Tp, _Compare, _Alloc>\u2019 and \u2018int\u2019\n 13 | map[tmp] = 0;\n | (...truncated, total 10612 characters)
정답 개수:
-
틀린 개수:
-
실행 실패 개수:
-
비공개 코드입니다. 코드 작성자만 볼 수 있습니다.
반례를 발견하지 못했습니다.