실행 실패 (제출 코드 컴파일 에러)
Main.cpp: In function ‘const shark& SetMax(shark, shark)’: Main.cpp:35:24: warning: reference to local variable ‘s1’ returned [-Wreturn-local-addr] 35 | return s1; | ^~ Main.cpp:32:33: note: declared here 32 | const shark& SetMax(const shark s1, const shark s2) | ~~~~~~~~~~~~^~ Main.cpp:37:16: warning: reference to local variable ‘s2’ returned [-Wreturn-local-addr] 37 | return s2; | ^~ Main.cpp:32:49: note: declared here 32 | const shark& SetMax(const shark s1, const shark s2) | ~~~~~~~~~~~~^~ Main.cpp: In function ‘void moveShark()’: Main.cpp:55:9: error: ‘memset’ was not declared in this scope 55 | memset(nextSharks, 0, sizeof(shark) * NMAX * NMAX); | ^~~~~~ Main.cpp:5:1: note: ‘memset’ is defined in header ‘<cstring>’; did you forget to ‘#include <cstring>’? 4 | #include <set> +++ |+#include <cstring> 5 |
정답 개수:
-
틀린 개수:
-
실행 실패 개수:
-
반례를 발견하지 못했습니다.