실행 실패 (제출 코드 컴파일 에러)
{"stderr": "Main.cpp: In function \u2018int main()\u2019:\nMain.cpp:25:31: error: no match for \u2018operator>>\u2019 (operand types are \u2018std::basic_ostream<char>\u2019 and \u2018char\u2019)\n 25 | cout << pqo.top() >> '\\n';\n | ~~~~~~~~~~~~~~~~~ ^~ ~~~~\n | | |\n | | char\n | std::basic_ostream<char>\nMain.cpp:25:31: note: candidate: \u2018operator>>(int, int)\u2019 (built-in)\n 25 | cout << pqo.top() >> '\\n';\n | ~~~~~~~~~~~~~~~~~~^~~~~~~\nMain.cpp:25:31: note: no known conversion for argument 1 from \u2018std::basic_ostream<char>\u2019 to \u2018int\u2019\nIn file included from /usr/include/aarch64-linux-gnu/c++/11/bits/stdc++.h:45,\n from Main.cpp:1:\n/usr/include/c++/11/cstddef:132:5: note: candidate: \u2018template<class _IntegerType> constexpr std::__byte_op_t<_IntegerType> std::operator>>(std::byte, _IntegerType)\u2019\n 132 | operator>>(byte __b, _IntegerType __shift) noexcept\n | ^~~~~~~~\n/usr/include/c++/11/cstddef:132:5: note: template argument deduction/substitution failed:\nMain.cpp:25:18: note: cannot convert \u2018std::cout.std::basic_ostream<char>::operator<<(((__gnu_cxx::__alloc_traits<std::allocator<int>, int>::value_type)pqo.std::priority_queue<int, std::vector<int>, std::greater<int> >::top()))\u2019 (type \u2018std::basic_ostream<char>\u2019) to type \u2018std::byte\u2019\n 25 | cout << pqo.top() >> '\\n';\n | ~~~~~^~~~~~~~~~~~\nIn file included from /usr/include/c++/11/string:56,\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/istream:38,\n from /usr/include/c++/11/sstream:38,\n from /usr/include/c++/11/complex:45,\n from /usr/include/c++/11/ccomplex:39,\n from /usr/include/aarch64-linux-gnu/c++/11/bits/stdc++.h:54,\n from Main.cpp:1:\n/usr/include/c++/11/bits/basic_string.tcc:1485:5: note: candidate: \u2018template<class _CharT, class _Traits, class _Alloc> std::basic_istream<_CharT, _Traits>& std::operator>>(std::basic_istream<_CharT, _Traits>&, std::__cxx11::basic_string<_CharT, _Traits, _Allocator>&)\u2019\n 1485 | operator>>(basic_istream<_CharT, _Traits>& __in,\n | ^~~~~~~~\n/usr/include/c++/11/bits/basic_string.tcc:1485:5: note: template argument deduction/substitution failed:\nMain.cpp:25:34: note: \u2018std::basic_ostream<char>\u2019 is not derived from \u2018std::basic_istream<_CharT, _Traits>\u2019\n 25 | cout << pqo.top() >> '\\n';\n | ^~~~\nIn file included from /usr/include/c++/11/istream:1016,\n from /usr/include/c++/11/sstream:38,\n from /usr/include/c++/11/complex:45,\n from /usr/include/c++/11/ccomplex:39,\n from /usr/include/aarch64-linux-gnu/c++/11/bits/stdc++.h:54,\n from Main.cpp:1:\n/usr/include/c++/11/bits/istream.tcc:958:5: note: candidate: \u2018template<class _CharT, class _Traits> std::basic_istream<_CharT, _Traits>& std::operator>>(std::basic_istream<_CharT, _Traits>&, _CharT&)\u2019\n 958 | operator>>(basic_istream<_CharT, _Traits>& __in, _CharT& __c)\n | ^~~~~~~~\n/usr/include/c++/11/bits/istream.tcc:958:5: note: template argument deduction/substitution failed:\nMain.cpp:25:34: note: \u2018std::basic_ostream<char>\u2019 is not derived from \u2018std::basic_istream<_CharT, _Traits>\u2019\n 25 | cout << pqo.top() >> '\\n';\n | ^~~~\nIn file included from /usr/include/c++/11/sstream:38,\n from /usr/include/c++/11/complex:45,\n from /usr/include/c++/11/(...truncated, total 48593 characters)
정답 개수:
-
틀린 개수:
-
실행 실패 개수:
-
반례를 발견하지 못했습니다.