실행 실패 (제출 코드 컴파일 에러)
{"stderr": "Main.cpp: In function \u2018int main()\u2019:\nMain.cpp:16:19: 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 16 | for (int i=0;i<S.length();i++){\n | ~^~~~~~~~~~~\nMain.cpp:30:19: warning: comparison of integer expressions of different signedness: \u2018int\u2019 and \u2018std::vector<int>::size_type\u2019 {aka \u2018long unsigned int\u2019} [-Wsign-compare]\n 30 | for (int i=1;i<num.size();i++){\n | ~^~~~~~~~~~~\nMain.cpp:36:13: error: expected \u2018;\u2019 before \u2018for\u2019\n 36 | flag=0;v\n | ^\n | ;\n 37 | for (int i=0;i<ch.size();i++){\n | ~~~ \nMain.cpp:36:12: warning: statement has no effect [-Wunused-value]\n 36 | flag=0;v\n | ^\nMain.cpp:37:27: error: call to non-\u2018constexpr\u2019 function \u2018std::vector<_Tp, _Alloc>::size_type std::vector<_Tp, _Alloc>::size() const [with _Tp = char; _Alloc = std::allocator<char>; std::vector<_Tp, _Alloc>::size_type = long unsigned int]\u2019\n 37 | for (int i=0;i<ch.size();i++){\n | ~~~~~~~^~\nIn file included from /usr/include/c++/11/vector:67,\n from /usr/include/c++/11/functional:62,\n from /usr/include/c++/11/pstl/glue_algorithm_defs.h:13,\n from /usr/include/c++/11/algorithm:74,\n from /usr/include/aarch64-linux-gnu/c++/11/bits/stdc++.h:65,\n from Main.cpp:1:\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 = char; _Alloc = std::allocator<char>; std::vector<_Tp, _Alloc>::size_type = long unsigned int]\u2019 declared here\n 918 | size() const _GLIBCXX_NOEXCEPT\n | ^~~~\nMain.cpp:37:27: error: call to non-\u2018constexpr\u2019 function \u2018std::vector<_Tp, _Alloc>::size_type std::vector<_Tp, _Alloc>::size() const [with _Tp = char; _Alloc = std::allocator<char>; std::vector<_Tp, _Alloc>::size_type = long unsigned int]\u2019\n 37 | for (int i=0;i<ch.size();i++){\n | ~~~~~~~^~\nIn file included from /usr/include/c++/11/vector:67,\n from /usr/include/c++/11/functional:62,\n from /usr/include/c++/11/pstl/glue_algorithm_defs.h:13,\n from /usr/include/c++/11/algorithm:74,\n from /usr/include/aarch64-linux-gnu/c++/11/bits/stdc++.h:65,\n from Main.cpp:1:\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 = char; _Alloc = std::allocator<char>; std::vector<_Tp, _Alloc>::size_type = long unsigned int]\u2019 declared here\n 918 | size() const _GLIBCXX_NOEXCEPT\n | ^~~~\nMain.cpp:37:27: error: call to non-\u2018constexpr\u2019 function \u2018std::vector<_Tp, _Alloc>::size_type std::vector<_Tp, _Alloc>::size() const [with _Tp = char; _Alloc = std::allocator<char>; std::vector<_Tp, _Alloc>::size_type = long unsigned int]\u2019\n 37 | for (int i=0;i<ch.size();i++){\n | ~~~~~~~^~\nIn file included from /usr/include/c++/11/vector:67,\n from /usr/include/c++/11/functional:62,\n from /usr/include/c++/11/pstl/glue_algorithm_defs.h:13,\n from /usr/include/c++/11/algorithm:74,\n from /usr/include/aarch64-linux-gnu/c++/11/bits/stdc++.h:65,\n from Main.cpp:1:\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 = char; _Alloc = std::allocator<char>; std::vector<_Tp, _Alloc>::size_type = long unsigned int]\u2019 declared here\n 918 | size() const _GLIBCXX_NOE(...truncated, total 10609 characters)
정답 개수:
-
틀린 개수:
-
실행 실패 개수:
-
반례를 발견하지 못했습니다.