실행 실패 (제출 코드 컴파일 에러)
Main.c: In function ‘BFS’: Main.c:97:9: error: variable-sized object may not be initialized 97 | int a[n+1]={0}; | ^~~ Main.c:97:13: warning: variable ‘a’ set but not used [-Wunused-but-set-variable] 97 | int a[n+1]={0}; | ^ Main.c:108:9: error: ‘a’ undeclared (first use in this function) 108 | BFS(a[0]); | ^ Main.c:108:9: note: each undeclared identifier is reported only once for each function it appears in Main.c: In function ‘main’: Main.c:116:5: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 116 | scanf("%d %d %d", &n, &m, &v); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Main.c:120:9: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 120 | scanf("%d %d", &n1, &n2); | ^~~~~~~~~~~~~~~~~~~~~~~~
정답 개수:
-
틀린 개수:
-
실행 실패 개수:
-
반례를 발견하지 못했습니다.