실행 실패 (제출 코드 컴파일 에러)
{"stderr": "Main.cpp: In function \u2018int main()\u2019:\nMain.cpp:21:42: error: no matching function for call to \u2018min(int64_t&, int&)\u2019\n 21 | answer = std::min(answer, qPay);\n | ~~~~~~~~^~~~~~~~~~~~~~\nIn file included 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_algobase.h:230:5: note: candidate: \u2018template<class _Tp> constexpr const _Tp& std::min(const _Tp&, const _Tp&)\u2019\n 230 | min(const _Tp& __a, const _Tp& __b)\n | ^~~\n/usr/include/c++/11/bits/stl_algobase.h:230:5: note: template argument deduction/substitution failed:\nMain.cpp:21:42: note: deduced conflicting types for parameter \u2018const _Tp\u2019 (\u2018long int\u2019 and \u2018int\u2019)\n 21 | answer = std::min(answer, qPay);\n | ~~~~~~~~^~~~~~~~~~~~~~\nIn file included 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_algobase.h:278:5: note: candidate: \u2018template<class _Tp, class _Compare> constexpr const _Tp& std::min(const _Tp&, const _Tp&, _Compare)\u2019\n 278 | min(const _Tp& __a, const _Tp& __b, _Compare __comp)\n | ^~~\n/usr/include/c++/11/bits/stl_algobase.h:278:5: note: template argument deduction/substitution failed:\nMain.cpp:21:42: note: deduced conflicting types for parameter \u2018const _Tp\u2019 (\u2018long int\u2019 and \u2018int\u2019)\n 21 | answer = std::min(answer, qPay);\n | ~~~~~~~~^~~~~~~~~~~~~~\nIn file included from /usr/include/c++/11/string:52,\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/stl_algo.h:3449:5: note: candidate: \u2018template<class _Tp> constexpr _Tp std::min(std::initializer_list<_Tp>)\u2019\n 3449 | min(initializer_list<_Tp> __l)\n | ^~~\n/usr/include/c++/11/bits/stl_algo.h:3449:5: note: template argument deduction/substitution failed:\nMain.cpp:21:42: note: mismatched types \u2018std::initializer_list<_Tp>\u2019 and \u2018long int\u2019\n 21 | answer = std::min(answer, qPay);\n | ~~~~~~~~^~~~~~~~~~~~~~\nIn file included from /usr/include/c++/11/string:52,\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/stl_algo.h:3455:5: note: candidate: \u2018template<class _Tp, class _Compare> constexpr _Tp std::min(std::initializer_list<_Tp>, _Compare)\u2019\n 3455 | min(initializer_list<_Tp> __l, _Compare __comp)\n | ^~~\n/usr/include/c++/11/bits/stl_algo.h:3455:5: note: template argument deduction/substitution failed:\nMain.cpp:21:42: note: mismatched types \u2018std::initializer_list<_Tp>\u2019 and \u2018long int\u2019\n 21 | answer = std::min(answer, qPay);\n | ~~~~~~~~^~~~~~~~~~~~~~\nMain.cpp:26:34: error: no matching function for call to \u2018min(int64_t&, int)\u2019\(...truncated, total 7798 characters, 1 lines)
정답 개수:
-
틀린 개수:
-
실행 실패 개수:
-
비공개 코드입니다. 코드 작성자만 볼 수 있습니다.
반례를 발견하지 못했습니다.