실행 실패 (제출 코드 컴파일 에러)
Main.cpp: In function ‘int main()’: Main.cpp:23:21: error: redeclaration of ‘std::vector<int> v’ 23 | vector<int> v; | ^ Main.cpp:19:21: note: ‘std::vector<int> v’ previously declared here 19 | vector<int> v; | ^ Main.cpp:35:27: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::__cxx11::basic_string<char>::size_type’ {aka ‘long unsigned int’} [-Wsign-compare] 35 | for (int i = 0; i < cmd.size(); i++) | ~~^~~~~~~~~~~~ Main.cpp:37:18: warning: unused variable ‘curCmd’ [-Wunused-variable] 37 | char curCmd = cmd[i]; | ^~~~~~ Main.cpp:64:28: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::vector<int>::size_type’ {aka ‘long unsigned int’} [-Wsign-compare] 64 | for (int i = 0 ; i < v.size() ; i++) { | ~~^~~~~~~~~~ Main.cpp:65:19: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::vector<int>::size_type’ {aka ‘long unsigned int’} [-Wsign-compare] 65 | if (i == v.size()-1) { | ~~^~~~~~~~~~~~~
정답 개수:
-
틀린 개수:
-
실행 실패 개수:
-
반례를 발견하지 못했습니다.