실행 실패 (제출 코드 컴파일 에러)
Main.cpp: In function ‘int main()’: Main.cpp:14:23: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::__cxx11::basic_string<char>::size_type’ {aka ‘long unsigned int’} [-Wsign-compare] 14 | for (int i = 0; i < sen.length(); i++) { | ~~^~~~~~~~~~~~~~ Main.cpp:15:18: warning: comparison with string literal results in unspecified behavior [-Waddress] 15 | if (sen[i] == "a" or sen[i] == "e" or sen[i] == "i" or Main.cpp:15:18: error: ISO C++ forbids comparison between pointer and integer [-fpermissive] Main.cpp:15:35: warning: comparison with string literal results in unspecified behavior [-Waddress] 15 | if (sen[i] == "a" or sen[i] == "e" or sen[i] == "i" or Main.cpp:15:35: error: ISO C++ forbids comparison between pointer and integer [-fpermissive] Main.cpp:15:52: warning: comparison with string literal results in unspecified behavior [-Waddress] 15 | if (sen[i] == "a" or sen[i] == "e" or sen[i] == "i" or Main.cpp:15:52: error: ISO C++ forbids comparison between pointer and integer [-fpermissive] Main.cpp:16:18: warning: comparison with string literal results in unspecified behavior [-Waddress] 16 | sen[i] == "o" or sen[i] == "u") count++; Main.cpp:16:18: error: ISO C++ forbids comparison between pointer and integer [-fpermissive] Main.cpp:16:35: warning: comparison with string literal results in unspecified behavior [-Waddress] 16 | sen[i] == "o" or sen[i] == "u") count++; Main.cpp:16:35: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
정답 개수:
-
틀린 개수:
-
실행 실패 개수:
-
비공개 코드입니다. 코드 작성자만 볼 수 있습니다.
반례를 발견하지 못했습니다.