실행 실패 (제출 코드 컴파일 에러)
Main.c: In function ‘init_queue’: Main.c:13:5: warning: implicit declaration of function ‘retun’ [-Wimplicit-function-declaration] 13 | retun(q->front = q->rear = 0); | ^~~~~ Main.c: In function ‘queue_print’: Main.c:26:14: warning: implicit declaration of function ‘is_empty’; did you mean ‘is_emtpy’? [-Wimplicit-function-declaration] 26 | if (!is_empty(q)) { | ^~~~~~~~ | is_emtpy Main.c: In function ‘enqueue’: Main.c:40:9: warning: implicit declaration of function ‘error’; did you mean ‘perror’? [-Wimplicit-function-declaration] 40 | error('포화상태'); | ^~~~~ | perror Main.c:40:15: warning: character constant too long for its type 40 | error('포화상태'); | ^~~~~~~~~~ Main.c:41:5: warning: this ‘else’ clause does not guard... [-Wmisleading-indentation] 41 | else | ^~~~ Main.c:43:9: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘else’ 43 | q->data[q->rear] = item; | ^ Main.c: In function ‘dequeue’: Main.c:48:23: warning: character constant too long for its type 48 | error('공백상태'); | ^~~~~~~~~~ Main.c: In function ‘main’: Main.c:69:9: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 69 | scanf("%d", &n); | ^~~~~~~~~~~~~~~ /usr/bin/ld: /tmp/ccvNnhIG.o: in function `init_queue': Main.c:(.text+0x14): undefined reference to `retun' /usr/bin/ld: /tmp/ccvNnhIG.o: in function `queue_print': Main.c:(.text+0xb4): undefined reference to `is_empty' /usr/bin/ld: /tmp/ccvNnhIG.o: in function `dequeue': Main.c:(.text+0x1d0): undefined reference to `is_empty' /usr/bin/ld: /tmp/ccvNnhIG.o: in function `card': Main.c:(.text+0x2c8): undefined reference to `is_empty' /usr/bin/ld: Main.c:(.text+0x33c): undefined reference to `is_empty' /usr/bin/ld: Main.c:(.text+0x350): undefined reference to `is_empty' /usr/bin/ld: /tmp/ccvNnhIG.o: in function `main': Main.c:(.text.startup+0x50): undefined reference to `retun' collect2: error: ld returned 1 exit status
정답 개수:
-
틀린 개수:
-
실행 실패 개수:
-
반례를 발견하지 못했습니다.