실행 실패 (제출 코드 컴파일 에러)
{"stderr": "Main.cpp: In function \u2018int main()\u2019:\nMain.cpp:27:21: error: no match for \u2018operator>>\u2019 (operand types are \u2018std::istream\u2019 {aka \u2018std::basic_istream<char>\u2019} and \u2018char*\u2019)\n 27 | cin >> word[i];\n | ~~~ ^~ ~~~~~~~\n | | |\n | | char*\n | std::istream {aka std::basic_istream<char>}\nIn file included from /usr/include/c++/11/iostream:40,\n from Main.cpp:1:\n/usr/include/c++/11/istream:168:7: note: candidate: \u2018std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(bool&) [with _CharT = char; _Traits = std::char_traits<char>; std::basic_istream<_CharT, _Traits>::__istream_type = std::basic_istream<char>]\u2019 (near match)\n 168 | operator>>(bool& __n)\n | ^~~~~~~~\n/usr/include/c++/11/istream:168:7: note: conversion of argument 1 would be ill-formed:\nMain.cpp:27:30: error: cannot bind non-const lvalue reference of type \u2018bool&\u2019 to a value of type \u2018char*\u2019\n 27 | cin >> word[i];\n | ~~~~~~^\nIn file included from /usr/include/c++/11/iostream:40,\n from Main.cpp:1:\n/usr/include/c++/11/istream:172:7: note: candidate: \u2018std::basic_istream<_CharT, _Traits>& std::basic_istream<_CharT, _Traits>::operator>>(short int&) [with _CharT = char; _Traits = std::char_traits<char>]\u2019 (near match)\n 172 | operator>>(short& __n);\n | ^~~~~~~~\n/usr/include/c++/11/istream:172:7: note: conversion of argument 1 would be ill-formed:\nMain.cpp:27:30: error: invalid conversion from \u2018char*\u2019 to \u2018short int\u2019 [-fpermissive]\n 27 | cin >> word[i];\n | ~~~~~~^\n | |\n | char*\nMain.cpp:27:30: error: cannot bind rvalue \u2018(short int)(*(word + ((sizetype)(((long unsigned int)i) * 8))))\u2019 to \u2018short int&\u2019\nIn file included from /usr/include/c++/11/iostream:40,\n from Main.cpp:1:\n/usr/include/c++/11/istream:175:7: note: candidate: \u2018std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(short unsigned int&) [with _CharT = char; _Traits = std::char_traits<char>; std::basic_istream<_CharT, _Traits>::__istream_type = std::basic_istream<char>]\u2019 (near match)\n 175 | operator>>(unsigned short& __n)\n | ^~~~~~~~\n/usr/include/c++/11/istream:175:7: note: conversion of argument 1 would be ill-formed:\nMain.cpp:27:30: error: invalid conversion from \u2018char*\u2019 to \u2018short unsigned int\u2019 [-fpermissive]\n 27 | cin >> word[i];\n | ~~~~~~^\n | |\n | char*\nMain.cpp:27:30: error: cannot bind rvalue \u2018(short unsigned int)(*(word + ((sizetype)(((long unsigned int)i) * 8))))\u2019 to \u2018short unsigned int&\u2019\nIn file included from /usr/include/c++/11/iostream:40,\n from Main.cpp:1:\n/usr/include/c++/11/istream:179:7: note: candidate: \u2018std::basic_istream<_CharT, _Traits>& std::basic_istream<_CharT, _Traits>::operator>>(int&) [with _CharT = char; _Traits = std::char_traits<char>]\u2019 (near match)\n 179 | operator>>(int& __n);\n | ^~~~~~~~\n/usr/include/c++/11/istream:179:7: note: conversion of argument 1 would be ill-formed:\nMain.cpp:27:30: error: invalid conversion from \u2018char*\u2019 to \u2018int\u2019 [-fpermissive]\n 27 | cin >> word[i];\n | ~~~~~~^\n | |\n | char*\nMain.cpp:27:30: error: cannot bind rvalue \u2018(int)(*(word + ((sizetype)(((long unsigned int)i) * 8))))\u2019 to \(...truncated, total 22441 characters)
정답 개수:
-
틀린 개수:
-
실행 실패 개수:
-
반례를 발견하지 못했습니다.