실행 실패 (제출 코드 컴파일 에러)
{"stderr": "Main.c:88:2: error: conflicting types for \u2018point\u2019; have \u2018struct <anonymous>\u2019\n 88 | }point;\n | ^~~~~\nMain.c:7:2: note: previous declaration of \u2018point\u2019 with type \u2018point\u2019\n 7 | }point;\n | ^~~~~\nMain.c:90:7: error: conflicting types for \u2018que\u2019; have \u2018point[11025]\u2019\n 90 | point que[max * max];\n | ^~~\nMain.c:9:7: note: previous declaration of \u2018que\u2019 with type \u2018point[11025]\u2019\n 9 | point que[max * max];\n | ^~~\nMain.c:91:5: error: redefinition of \u2018head\u2019\n 91 | int head = max - 1, tail = max - 1;\n | ^~~~\nMain.c:10:5: note: previous definition of \u2018head\u2019 with type \u2018int\u2019\n 10 | int head = max - 1, tail = max - 1;\n | ^~~~\nMain.c:91:21: error: redefinition of \u2018tail\u2019\n 91 | int head = max - 1, tail = max - 1;\n | ^~~~\nMain.c:10:21: note: previous definition of \u2018tail\u2019 with type \u2018int\u2019\n 10 | int head = max - 1, tail = max - 1;\n | ^~~~\nMain.c:93:6: error: redefinition of \u2018back_enque\u2019\n 93 | void back_enque(int x, int y) {\n | ^~~~~~~~~~\nMain.c:12:6: note: previous definition of \u2018back_enque\u2019 with type \u2018void(int, int)\u2019\n 12 | void back_enque(int x, int y) {\n | ^~~~~~~~~~\nMain.c:99:6: error: redefinition of \u2018front_enque\u2019\n 99 | void front_enque(int x, int y) {\n | ^~~~~~~~~~~\nMain.c:18:6: note: previous definition of \u2018front_enque\u2019 with type \u2018void(int, int)\u2019\n 18 | void front_enque(int x, int y) {\n | ^~~~~~~~~~~\nMain.c:105:7: error: conflicting types for \u2018deque\u2019; have \u2018point()\u2019\n 105 | point deque() {\n | ^~~~~\nMain.c:24:7: note: previous definition of \u2018deque\u2019 with type \u2018point()\u2019\n 24 | point deque() {\n | ^~~~~\nMain.c:113:5: error: redefinition of \u2018dx\u2019\n 113 | int dx[4] = { 1, 0, -1, 0 };\n | ^~\nMain.c:32:5: note: previous definition of \u2018dx\u2019 with type \u2018int[4]\u2019\n 32 | int dx[4] = { 1, 0, -1, 0 };\n | ^~\nMain.c:114:5: error: redefinition of \u2018dy\u2019\n 114 | int dy[4] = { 0, 1, 0, -1 };\n | ^~\nMain.c:33:5: note: previous definition of \u2018dy\u2019 with type \u2018int[4]\u2019\n 33 | int dy[4] = { 0, 1, 0, -1 };\n | ^~\nMain.c:116:6: error: redefinition of \u2018bfs\u2019\n 116 | void bfs(int startx, int starty, int n, int m) {\n | ^~~\nMain.c:35:6: note: previous definition of \u2018bfs\u2019 with type \u2018void(int, int, int, int)\u2019\n 35 | void bfs(int startx, int starty, int n, int m) {\n | ^~~\nMain.c:146:5: error: redefinition of \u2018main\u2019\n 146 | int main() {\n | ^~~~\nMain.c:65:5: note: previous definition of \u2018main\u2019 with type \u2018int()\u2019\n 65 | int main() {\n | ^~~~\nMain.c: In function \u2018main\u2019:\nMain.c:67:9: warning: ignoring return value of \u2018scanf\u2019 declared with attribute \u2018warn_unused_result\u2019 [-Wunused-result]\n 67 | scanf(\"%d%d\", &m, &n);\n | ^~~~~~~~~~~~~~~~~~~~~\nMain.c:71:25: warning: ignoring return value of \u2018scanf\u2019 declared with attribute \u2018warn_unused_result\u2019 [-Wunused-result]\n 71 | scanf(\"%1d\", &map[i][j]);\n | ^~~~~~~~~~~~~~~~~~~~~~~~\nMain.c: In function \u2018main\u2019:\nMain.c:148:9: warning: ignoring return value of \u2018scanf\u2019 declared with attribute \u2018warn_unused_result\u2019 [-Wunused-result]\n 148 | scanf(\"%d%d\", &m, &n);\n | ^~~~~~~~~~~~~~~~~~~~~\nMain.c:152:25: warning: ignoring return value of \u2018scanf\u2019 declared with attribute \u2018warn_unused_result\u2019 [-Wunused-result]\n 152 | scanf(\"%1d\", &map[i][j]);\n (...truncated, total 4058 characters)
정답 개수:
-
틀린 개수:
-
실행 실패 개수:
-
비공개 코드입니다. 코드 작성자만 볼 수 있습니다.
반례를 발견하지 못했습니다.