실행 실패 (제출 코드 컴파일 에러)
{"stderr": "Main.cpp: In function \u2018int main()\u2019:\nMain.cpp:13:27: warning: comparison of integer expressions of different signedness: \u2018int\u2019 and \u2018std::__cxx11::basic_string<char>::size_type\u2019 {aka \u2018long unsigned int\u2019} [-Wsign-compare]\n 13 | for (int j = 0; j < S.length(); j++){arr[i][j] = S[j];}\n | ~~^~~~~~~~~~~~\nMain.cpp:21:10: error: no match for \u2018operator<<\u2019 (operand types are \u2018std::ostream\u2019 {aka \u2018std::basic_ostream<char>\u2019} and \u2018std::vector<char>\u2019)\n 21 | cout << ans << endl;\n | ~~~~ ^~ ~~~\n | | |\n | | std::vector<char>\n | std::ostream {aka std::basic_ostream<char>}\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 \u2018std::vector<char>\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 \u2018std::vector<char>\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 \u2018std::vector<char>\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 \u2018std::vector<char>\u2019 to \u2018long int\u2019\n 166 | operator<<(long __n)\n | (...truncated, total 34075 characters, 1 lines)
정답 개수:
-
틀린 개수:
-
실행 실패 개수:
-
반례를 발견하지 못했습니다.