실행 실패 (제출 코드 컴파일 에러)
Main.cpp: In function ‘int main()’: Main.cpp:29:17: error: ‘strcpy’ was not declared in this scope 29 | strcpy(cpwd, pw[i][1].c_str()); | ^~~~~~ Main.cpp:5:1: note: ‘strcpy’ is defined in header ‘<cstring>’; did you forget to ‘#include <cstring>’? 4 | #include <algorithm> +++ |+#include <cstring> 5 | using namespace std; Main.cpp:11:10: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 11 | scanf("%d %d", &n, &m); | ~~~~~^~~~~~~~~~~~~~~~~ Main.cpp:15:14: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 15 | scanf("%s %s", name, pwd); | ~~~~~^~~~~~~~~~~~~~~~~~~~ Main.cpp:24:14: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 24 | scanf("%s",name); | ~~~~~^~~~~~~~~~~
정답 개수:
-
틀린 개수:
-
실행 실패 개수:
-
비공개 코드입니다. 코드 작성자만 볼 수 있습니다.
반례를 발견하지 못했습니다.