실행 실패 (제출 코드 컴파일 에러)
{"stderr": "Main.c: In function \u2018main\u2019:\nMain.c:53:9: warning: implicit declaration of function \u2018init_queue\u2019 [-Wimplicit-function-declaration]\n 53 | init_queue(&s);\n | ^~~~~~~~~~\nMain.c:57:25: warning: implicit declaration of function \u2018strlen\u2019 [-Wimplicit-function-declaration]\n 57 | for (int i=0; i<strlen(a); i++) {\n | ^~~~~~\nMain.c:3:1: note: include \u2018<string.h>\u2019 or provide a declaration of \u2018strlen\u2019\n 2 | #include <stdlib.h>\n +++ |+#include <string.h>\n 3 | \nMain.c:57:25: warning: incompatible implicit declaration of built-in function \u2018strlen\u2019 [-Wbuiltin-declaration-mismatch]\n 57 | for (int i=0; i<strlen(a); i++) {\n | ^~~~~~\nMain.c:57:25: note: include \u2018<string.h>\u2019 or provide a declaration of \u2018strlen\u2019\nMain.c:83:21: error: invalid type argument of \u2018->\u2019 (have \u2018StackType\u2019)\n 83 | if (s->top==-1) {\n | ^~\nMain.c: At top level:\nMain.c:93:2: error: stray \u2018#\u2019 in program\n 93 | }#include <stdio.h>\n | ^\nMain.c:93:11: error: expected \u2018=\u2019, \u2018,\u2019, \u2018;\u2019, \u2018asm\u2019 or \u2018__attribute__\u2019 before \u2018<\u2019 token\n 93 | }#include <stdio.h>\n | ^\nMain.c:102:3: error: conflicting types for \u2018StackType\u2019; have \u2018struct <anonymous>\u2019\n 102 | } StackType;\n | ^~~~~~~~~\nMain.c:10:3: note: previous declaration of \u2018StackType\u2019 with type \u2018StackType\u2019\n 10 | } StackType;\n | ^~~~~~~~~\nMain.c:104:6: error: conflicting types for \u2018init_stack\u2019; have \u2018void(StackType *)\u2019\n 104 | void init_stack(StackType *s) {\n | ^~~~~~~~~~\nMain.c:12:6: note: previous definition of \u2018init_stack\u2019 with type \u2018void(StackType *)\u2019\n 12 | void init_stack(StackType *s) {\n | ^~~~~~~~~~\nMain.c:108:5: error: conflicting types for \u2018is_empty\u2019; have \u2018int(StackType *)\u2019\n 108 | int is_empty(StackType *s) {\n | ^~~~~~~~\nMain.c:16:5: note: previous definition of \u2018is_empty\u2019 with type \u2018int(StackType *)\u2019\n 16 | int is_empty(StackType *s) {\n | ^~~~~~~~\nMain.c:112:5: error: conflicting types for \u2018is_full\u2019; have \u2018int(StackType *)\u2019\n 112 | int is_full(StackType *s) {\n | ^~~~~~~\nMain.c:20:5: note: previous definition of \u2018is_full\u2019 with type \u2018int(StackType *)\u2019\n 20 | int is_full(StackType *s) {\n | ^~~~~~~\nMain.c:116:6: error: conflicting types for \u2018push\u2019; have \u2018void(StackType *, element)\u2019 {aka \u2018void(StackType *, int)\u2019}\n 116 | void push(StackType *s, element item) {\n | ^~~~\nMain.c:24:6: note: previous definition of \u2018push\u2019 with type \u2018void(StackType *, element)\u2019 {aka \u2018void(StackType *, int)\u2019}\n 24 | void push(StackType *s, element item) {\n | ^~~~\nMain.c:124:9: error: conflicting types for \u2018pop\u2019; have \u2018element(StackType *)\u2019 {aka \u2018int(StackType *)\u2019}\n 124 | element pop(StackType *s) {\n | ^~~\nMain.c:32:9: note: previous definition of \u2018pop\u2019 with type \u2018element(StackType *)\u2019 {aka \u2018int(StackType *)\u2019}\n 32 | element pop(StackType *s) {\n | ^~~\nMain.c:132:9: error: conflicting types for \u2018peek\u2019; have \u2018element(StackType *)\u2019 {aka \u2018int(StackType *)\u2019}\n 132 | element peek(StackType *s) {\n | ^~~~\nMain.c:40:9: note: previous definition of \u2018peek\u2019 with type \u2018element(StackType *)\u2019 {aka \u2018int(StackType *)\u2019}\n 40 | element peek(StackType *s) {\n | ^~~~\nMain.c:140:5: error: redefinition of \u2018main\u2019\n 140 | int main() {\n | ^~~~\nMain.c:48:5: note: previous defin(...truncated, total 5160 characters)
정답 개수:
-
틀린 개수:
-
실행 실패 개수:
-
반례를 발견하지 못했습니다.