실행 실패 (제출 코드 컴파일 에러)
Main.cpp: In function ‘bool bfs()’: Main.cpp:19:3: error: ‘memset’ was not declared in this scope 19 | memset(level,0,sizeof(level)); | ^~~~~~ Main.cpp:6:1: note: ‘memset’ is defined in header ‘<cstring>’; did you forget to ‘#include <cstring>’? 5 | #include <queue> +++ |+#include <cstring> 6 | using namespace std; Main.cpp: In function ‘void solve()’: Main.cpp:52:8: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 52 | scanf("%d %d",&N,&M); | ~~~~~^~~~~~~~~~~~~~~ Main.cpp:53:29: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 53 | for(int i=0;i<N;i++) scanf("%s",G[i]); | ~~~~~^~~~~~~~~~~ Main.cpp: In function ‘int main()’: Main.cpp:106:16: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 106 | int tc; scanf("%d",&tc); | ~~~~~^~~~~~~~~~
정답 개수:
-
틀린 개수:
-
실행 실패 개수:
-
반례를 발견하지 못했습니다.