실행 실패 (제출 코드 컴파일 에러)
{"stderr": "Main.cpp: In function \u2018int main()\u2019:\nMain.cpp:10:5: error: expected initializer before \u2018long\u2019\n 10 | long int count = 0;\n | ^~~~\nMain.cpp:12:12: error: \u2018n\u2019 was not declared in this scope; did you mean \u2018yn\u2019?\n 12 | cin >> n;\n | ^\n | yn\nMain.cpp:25:18: error: overloaded function with no contextual type information\n 25 | count += num;\n | ^~~\nMain.cpp:28:10: error: no match for \u2018operator<<\u2019 (operand types are \u2018std::ostream\u2019 {aka \u2018std::basic_ostream<char>\u2019} and \u2018<unresolved overloaded function type>\u2019)\n 28 | cout << count;\n | ~~~~~^~~~~~~~\nIn file included from /usr/include/c++/11/iostream:39,\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 \u2018<unresolved overloaded function type>\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 \u2018<unresolved overloaded function type>\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 \u2018<unresolved overloaded function type>\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 | ^~~~~~~~\n/usr/include/c++/11/ostream:166:23: note: no known conversion for argument 1 from \u2018<unresolved overloaded function type>\u2019 to \u2018long(...truncated, total 33304 characters)
정답 개수:
-
틀린 개수:
-
실행 실패 개수:
-
비공개 코드입니다. 코드 작성자만 볼 수 있습니다.
반례를 발견하지 못했습니다.