실행 실패 (제출 코드 컴파일 에러)
{"stderr": "Main.c:184:2: error: stray \u2018#\u2019 in program\n 184 | }#include <stdio.h>\n | ^\nMain.c:184:11: error: expected \u2018=\u2019, \u2018,\u2019, \u2018;\u2019, \u2018asm\u2019 or \u2018__attribute__\u2019 before \u2018<\u2019 token\n 184 | }#include <stdio.h>\n | ^\nMain.c:192:1: warning: useless type name in empty declaration\n 192 | } GRAPH;\n | ^\nMain.c:194:16: error: redefinition of \u2018struct _heap\u2019\n 194 | typedef struct _heap\n | ^~~~~\nMain.c:11:16: note: originally defined here\n 11 | typedef struct _heap\n | ^~~~~\nMain.c:199:3: error: conflicting types for \u2018HEAP\u2019; have \u2018struct _heap\u2019\n 199 | } HEAP;\n | ^~~~\nMain.c:16:3: note: previous declaration of \u2018HEAP\u2019 with type \u2018HEAP\u2019 {aka \u2018struct _heap\u2019}\n 16 | } HEAP;\n | ^~~~\nMain.c:201:8: error: redefinition of \u2018g\u2019\n 201 | GRAPH* g[10001] = { 0 };\n | ^\nMain.c:18:8: note: previous definition of \u2018g\u2019 with type \u2018GRAPH *[10001]\u2019 {aka \u2018struct _graph *[10001]\u2019}\n 18 | GRAPH* g[10001] = { 0 };\n | ^\nMain.c:202:6: error: conflicting types for \u2018h\u2019; have \u2018HEAP[100001]\u2019 {aka \u2018struct _heap[100001]\u2019}\n 202 | HEAP h[100001] = { 0 };\n | ^\nMain.c:19:6: note: previous definition of \u2018h\u2019 with type \u2018HEAP[100001]\u2019 {aka \u2018struct _heap[100001]\u2019}\n 19 | HEAP h[100001] = { 0 };\n | ^\nMain.c:203:5: error: redefinition of \u2018heapIndex\u2019\n 203 | int heapIndex = 0;\n | ^~~~~~~~~\nMain.c:20:5: note: previous definition of \u2018heapIndex\u2019 with type \u2018int\u2019\n 20 | int heapIndex = 0;\n | ^~~~~~~~~\nMain.c:209:6: error: conflicting types for \u2018dequeue\u2019; have \u2018HEAP()\u2019 {aka \u2018struct _heap()\u2019}\n 209 | HEAP dequeue();\n | ^~~~~~~\nMain.c:134:6: note: previous definition of \u2018dequeue\u2019 with type \u2018HEAP()\u2019 {aka \u2018struct _heap()\u2019}\n 134 | HEAP dequeue()\n | ^~~~~~~\nMain.c:213:5: error: redefinition of \u2018main\u2019\n 213 | int main ()\n | ^~~~\nMain.c:30:5: note: previous definition of \u2018main\u2019 with type \u2018int()\u2019\n 30 | int main ()\n | ^~~~\nMain.c:231:6: error: redefinition of \u2018insert\u2019\n 231 | void insert (int _from, int _to, int _weight)\n | ^~~~~~\nMain.c:48:6: note: previous definition of \u2018insert\u2019 with type \u2018void(int, int, int)\u2019\n 48 | void insert (int _from, int _to, int _weight)\n | ^~~~~~\nMain.c:237:6: error: redefinition of \u2018insertEDGE\u2019\n 237 | void insertEDGE(int _from, int _to, int _weight)\n | ^~~~~~~~~~\nMain.c:54:6: note: previous definition of \u2018insertEDGE\u2019 with type \u2018void(int, int, int)\u2019\n 54 | void insertEDGE(int _from, int _to, int _weight)\n | ^~~~~~~~~~\nMain.c:257:6: error: redefinition of \u2018prim\u2019\n 257 | void prim(int _from, int _vertices)\n | ^~~~\nMain.c:74:6: note: previous definition of \u2018prim\u2019 with type \u2018void(int, int)\u2019\n 74 | void prim(int _from, int _vertices)\n | ^~~~\nMain.c:281:6: error: redefinition of \u2018adding\u2019\n 281 | void adding(int _from, int* _visited)\n | ^~~~~~\nMain.c:98:6: note: previous definition of \u2018adding\u2019 with type \u2018void(int, int *)\u2019\n 98 | void adding(int _from, int* _visited)\n | ^~~~~~\nMain.c:292:6: error: redefinition of \u2018enqueue\u2019\n 292 | void enqueue(int _from, int _to, int _weight)\n | ^~~~~~~\nMain.c:109:6: note: previous definition of \u2018enqueue\u2019 with type \u2018void(int, int, int)\u2019\n 109 | void enqueue(int _from, int _to, int _weight)\n | ^~~~~~~\nMain.c:317:6: error: conflicting types for \u2018dequeue\u2019; have \u2018HEAP()\u201(...truncated, total 5552 characters)
정답 개수:
-
틀린 개수:
-
실행 실패 개수:
-
반례를 발견하지 못했습니다.