실행 실패 (제출 코드 컴파일 에러)
Main.c:89:1: warning: data definition has no type or storage class 89 | init_queue(q); | ^~~~~~~~~~ Main.c:89:1: warning: type defaults to ‘int’ in declaration of ‘init_queue’ [-Wimplicit-int] Main.c:89:1: warning: parameter names (without types) in function declaration Main.c:89:1: error: conflicting types for ‘init_queue’; have ‘int()’ Main.c:18:6: note: previous definition of ‘init_queue’ with type ‘void(QueueType *)’ 18 | void init_queue(QueueType *q) { | ^~~~~~~~~~ Main.c: In function ‘BFS’: Main.c:92:8: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 92 | if(visited2[inp]=0) { | ^~~~~~~~ Main.c:98:9: error: variable-sized object may not be initialized 98 | int a[n+1]={0}; | ^~~ Main.c:102:49: error: lvalue required as left operand of assignment 102 | if(graph[inp][i]==1 && visited2[inp]=0) { | ^ Main.c:98:13: warning: variable ‘a’ set but not used [-Wunused-but-set-variable] 98 | int a[n+1]={0}; | ^ Main.c:109:9: error: ‘a’ undeclared (first use in this function) 109 | BFS(a[0]); | ^ Main.c:109:9: note: each undeclared identifier is reported only once for each function it appears in Main.c: In function ‘main’: Main.c:120:25: error: ‘n1’ undeclared (first use in this function); did you mean ‘n’? 120 | scanf("%d %d", &n1, &n2); | ^~ | n Main.c:120:30: error: ‘n2’ undeclared (first use in this function); did you mean ‘n’? 120 | scanf("%d %d", &n1, &n2); | ^~ | n Main.c:117:5: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 117 | scanf("%d %d %d", &n, &m, &v); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
정답 개수:
-
틀린 개수:
-
실행 실패 개수:
-
반례를 발견하지 못했습니다.