실행 실패 (제출 코드 컴파일 에러)
{"stderr": "Main.cpp: In function \u2018int main()\u2019:\nMain.cpp:30:26: 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 30 | for (int i = 0; i<p.length(); i++){\n | ~^~~~~~~~~~~\nMain.cpp:50:32: error: expected \u2018;\u2019 before \u2018for\u2019\n 50 | std::cout << arr[0]\n | ^\n | ;\n 51 | for (int i = 1; i<arr.size(); i++){\n | ~~~ \nMain.cpp:51:39: error: call to non-\u2018constexpr\u2019 function \u2018std::vector<_Tp, _Alloc>::size_type std::vector<_Tp, _Alloc>::size() const [with _Tp = int; _Alloc = std::allocator<int>; std::vector<_Tp, _Alloc>::size_type = long unsigned int]\u2019\n 51 | for (int i = 1; i<arr.size(); i++){\n | ~~~~~~~~^~\nIn file included from /usr/include/c++/11/vector:67,\n from Main.cpp:3:\n/usr/include/c++/11/bits/stl_vector.h:918:7: note: \u2018std::vector<_Tp, _Alloc>::size_type std::vector<_Tp, _Alloc>::size() const [with _Tp = int; _Alloc = std::allocator<int>; std::vector<_Tp, _Alloc>::size_type = long unsigned int]\u2019 declared here\n 918 | size() const _GLIBCXX_NOEXCEPT\n | ^~~~\nMain.cpp:51:39: error: call to non-\u2018constexpr\u2019 function \u2018std::vector<_Tp, _Alloc>::size_type std::vector<_Tp, _Alloc>::size() const [with _Tp = int; _Alloc = std::allocator<int>; std::vector<_Tp, _Alloc>::size_type = long unsigned int]\u2019\n 51 | for (int i = 1; i<arr.size(); i++){\n | ~~~~~~~~^~\nIn file included from /usr/include/c++/11/vector:67,\n from Main.cpp:3:\n/usr/include/c++/11/bits/stl_vector.h:918:7: note: \u2018std::vector<_Tp, _Alloc>::size_type std::vector<_Tp, _Alloc>::size() const [with _Tp = int; _Alloc = std::allocator<int>; std::vector<_Tp, _Alloc>::size_type = long unsigned int]\u2019 declared here\n 918 | size() const _GLIBCXX_NOEXCEPT\n | ^~~~\nMain.cpp:51:39: error: call to non-\u2018constexpr\u2019 function \u2018std::vector<_Tp, _Alloc>::size_type std::vector<_Tp, _Alloc>::size() const [with _Tp = int; _Alloc = std::allocator<int>; std::vector<_Tp, _Alloc>::size_type = long unsigned int]\u2019\n 51 | for (int i = 1; i<arr.size(); i++){\n | ~~~~~~~~^~\nIn file included from /usr/include/c++/11/vector:67,\n from Main.cpp:3:\n/usr/include/c++/11/bits/stl_vector.h:918:7: note: \u2018std::vector<_Tp, _Alloc>::size_type std::vector<_Tp, _Alloc>::size() const [with _Tp = int; _Alloc = std::allocator<int>; std::vector<_Tp, _Alloc>::size_type = long unsigned int]\u2019 declared here\n 918 | size() const _GLIBCXX_NOEXCEPT\n | ^~~~\nMain.cpp:51:39: error: call to non-\u2018constexpr\u2019 function \u2018std::vector<_Tp, _Alloc>::size_type std::vector<_Tp, _Alloc>::size() const [with _Tp = int; _Alloc = std::allocator<int>; std::vector<_Tp, _Alloc>::size_type = long unsigned int]\u2019\n 51 | for (int i = 1; i<arr.size(); i++){\n | ~~~~~~~~^~\nIn file included from /usr/include/c++/11/vector:67,\n from Main.cpp:3:\n/usr/include/c++/11/bits/stl_vector.h:918:7: note: \u2018std::vector<_Tp, _Alloc>::size_type std::vector<_Tp, _Alloc>::size() const [with _Tp = int; _Alloc = std::allocator<int>; std::vector<_Tp, _Alloc>::size_type = long unsigned int]\u2019 declared here\n 918 | size() const _GLIBCXX_NOEXCEPT\n | ^~~~\nMain.cpp:51:39: error: call to non-\u2018constexpr\u2019 function \u2018std::vector<_Tp, _Alloc>::size_type std::vector<_Tp, _Alloc>::size() const [with _Tp = int; _Alloc = std::allocator<int>; std::vector<_Tp, _Alloc>::size_t(...truncated, total 7826 characters, 1 lines)
정답 개수:
-
틀린 개수:
-
실행 실패 개수:
-
비공개 코드입니다. 코드 작성자만 볼 수 있습니다.
반례를 발견하지 못했습니다.