실행 실패 (제출 코드 컴파일 에러)
{"stderr": "Main.cpp:13:2: error: expected \u2018;\u2019 after struct definition\n 13 | }\n | ^\n | ;\nMain.cpp: In function \u2018int main()\u2019:\nMain.cpp:29:22: error: no match for \u2018operator<<\u2019 (operand types are \u2018std::ostream\u2019 {aka \u2018std::basic_ostream<char>\u2019} and \u2018const value_type\u2019 {aka \u2018const x\u2019})\n 29 | cout << pq.top(); << '\\n';\n | ~~~~ ^~ ~~~~~~~~\n | | |\n | | const value_type {aka const x}\n | std::ostream {aka std::basic_ostream<char>}\nIn file included from /usr/include/c++/11/istream:39,\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/ostream:108:7: note: candidate: \u2018std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(std::basic_ostream<_CharT, _Traits>::__ostream_type& (*)(std::basic_ostream<_CharT, _Traits>::__ostream_type&)) [with _CharT = char; _Traits = std::char_traits<char>; std::basic_ostream<_CharT, _Traits>::__ostream_type = std::basic_ostream<char>]\u2019\n 108 | operator<<(__ostream_type& (*__pf)(__ostream_type&))\n | ^~~~~~~~\n/usr/include/c++/11/ostream:108:36: note: no known conversion for argument 1 from \u2018const value_type\u2019 {aka \u2018const x\u2019} to \u2018std::basic_ostream<char>::__ostream_type& (*)(std::basic_ostream<char>::__ostream_type&)\u2019 {aka \u2018std::basic_ostream<char>& (*)(std::basic_ostream<char>&)\u2019}\n 108 | operator<<(__ostream_type& (*__pf)(__ostream_type&))\n | ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~\n/usr/include/c++/11/ostream:117:7: note: candidate: \u2018std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(std::basic_ostream<_CharT, _Traits>::__ios_type& (*)(std::basic_ostream<_CharT, _Traits>::__ios_type&)) [with _CharT = char; _Traits = std::char_traits<char>; std::basic_ostream<_CharT, _Traits>::__ostream_type = std::basic_ostream<char>; std::basic_ostream<_CharT, _Traits>::__ios_type = std::basic_ios<char>]\u2019\n 117 | operator<<(__ios_type& (*__pf)(__ios_type&))\n | ^~~~~~~~\n/usr/include/c++/11/ostream:117:32: note: no known conversion for argument 1 from \u2018const value_type\u2019 {aka \u2018const x\u2019} to \u2018std::basic_ostream<char>::__ios_type& (*)(std::basic_ostream<char>::__ios_type&)\u2019 {aka \u2018std::basic_ios<char>& (*)(std::basic_ios<char>&)\u2019}\n 117 | operator<<(__ios_type& (*__pf)(__ios_type&))\n | ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~\n/usr/include/c++/11/ostream:127:7: note: candidate: \u2018std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(std::ios_base& (*)(std::ios_base&)) [with _CharT = char; _Traits = std::char_traits<char>; std::basic_ostream<_CharT, _Traits>::__ostream_type = std::basic_ostream<char>]\u2019\n 127 | operator<<(ios_base& (*__pf) (ios_base&))\n | ^~~~~~~~\n/usr/include/c++/11/ostream:127:30: note: no known conversion for argument 1 from \u2018const value_type\u2019 {aka \u2018const x\u2019} to \u2018std::ios_base& (*)(std::ios_base&)\u2019\n 127 | operator<<(ios_base& (*__pf) (ios_base&))\n | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~\n/usr/include/c++/11/ostream:166:7: note: candidate: \u2018std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(long int) [with _CharT = char; _Traits = std::char_traits<char>; std::basic_ostream<_CharT, _Traits>::__ostream_type = std::basic_ostream<char>]\u2019\n 166 | operator<<(long __n)\n | (...truncated, total 88267 characters)
정답 개수:
-
틀린 개수:
-
실행 실패 개수:
-
비공개 코드입니다. 코드 작성자만 볼 수 있습니다.
반례를 발견하지 못했습니다.