실행 실패 (제출 코드 컴파일 에러)
Main.c: In function ‘bfs_list’: Main.c:116:10: warning: passing argument 1 of ‘init’ from incompatible pointer type [-Wincompatible-pointer-types] 116 | init(&q); | ^~ | | | QueueType * Main.c:75:22: note: expected ‘GraphType *’ but argument is of type ‘QueueType *’ 75 | void init(GraphType* g, int n) { | ~~~~~~~~~~~^ Main.c:116:5: error: too few arguments to function ‘init’ 116 | init(&q); | ^~~~ Main.c:75:6: note: declared here 75 | void init(GraphType* g, int n) { | ^~~~ Main.c: In function ‘main’: Main.c:150:11: error: ‘q’ undeclared (first use in this function) 150 | init(&q,N); | ^ Main.c:150:11: note: each undeclared identifier is reported only once for each function it appears in Main.c:133:5: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 133 | scanf("%d %d %d", &N, &M, &R); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Main.c:139:9: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 139 | scanf("%d %d", &u, &v); | ^~~~~~~~~~~~~~~~~~~~~~
정답 개수:
-
틀린 개수:
-
실행 실패 개수:
-
반례를 발견하지 못했습니다.