실행 실패 (제출 코드 컴파일 에러)
Main.cpp: In function ‘int main()’: Main.cpp:15:9: error: ‘strcpy’ was not declared in this scope 15 | strcpy(s2, s1); | ^~~~~~ Main.cpp:3:1: note: ‘strcpy’ is defined in header ‘<cstring>’; did you forget to ‘#include <cstring>’? 2 | #include <algorithm> +++ |+#include <cstring> 3 | #include <vector> Main.cpp:16:20: error: ‘strtok’ was not declared in this scope; did you mean ‘strtoq’? 16 | char* p1 = strtok(s1, "+-"); | ^~~~~~ | strtoq Main.cpp:28:16: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::vector<std::__cxx11::basic_string<char> >::size_type’ {aka ‘long unsigned int’} [-Wsign-compare] 28 | while(i<c.size()) | ~^~~~~~~~~ Main.cpp:43:27: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::vector<std::__cxx11::basic_string<char> >::size_type’ {aka ‘long unsigned int’} [-Wsign-compare] 43 | for (int j = 1; j < v.size(); j++) | ~~^~~~~~~~~~
정답 개수:
-
틀린 개수:
-
실행 실패 개수:
-
반례를 발견하지 못했습니다.