실행 실패 (제출 코드 컴파일 에러)
Main.c: In function ‘bfs’: Main.c:43:36: warning: implicit declaration of function ‘abs’ [-Wimplicit-function-declaration] 43 | int diff = abs(nx - x) + abs(ny - y); | ^~~ Main.c:3:1: note: include ‘<stdlib.h>’ or provide a declaration of ‘abs’ 2 | #include <stdio.h> +++ |+#include <stdlib.h> 3 | #define max 52 Main.c:57:32: warning: ‘return’ with a value, in function returning void [-Wreturn-type] 57 | if (count == 0) return 0; | ^ Main.c:28:6: note: declared here 28 | void bfs(int n, int l, int r){ | ^~~ Main.c:64:16: warning: ‘return’ with a value, in function returning void [-Wreturn-type] 64 | return 1; | ^ Main.c:28:6: note: declared here 28 | void bfs(int n, int l, int r){ | ^~~ Main.c: In function ‘main’: Main.c:82:45: warning: statement with no effect [-Wunused-value] 82 | visit[i][j] == 0; | ~~~~~~~~~~~~^~~~ Main.c:89:45: error: too few arguments to function ‘bfs’ 89 | if (bfs(i, j)) { | ^~~ Main.c:28:6: note: declared here 28 | void bfs(int n, int l, int r){ | ^~~ Main.c:99:18: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘int *’ [-Wformat=] 99 | printf("%d", &day); | ~^ ~~~~ | | | | int int * | %ls Main.c:68:22: warning: unused variable ‘count’ [-Wunused-variable] 68 | int n, l, r, count; //L: upper, R: lower | ^~~~~ Main.c:70:9: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 70 | scanf("%d%d%d", &n, &l, &r); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ Main.c:73:25: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 73 | scanf("%d", &map[i][j]); | ^~~~~~~~~~~~~~~~~~~~~~~
정답 개수:
-
틀린 개수:
-
실행 실패 개수:
-
비공개 코드입니다. 코드 작성자만 볼 수 있습니다.
반례를 발견하지 못했습니다.