실행 실패 (제출 코드 컴파일 에러)
Main.c: In function ‘freeQueue’: Main.c:65:13: warning: implicit declaration of function ‘isEmpty’ [-Wimplicit-function-declaration] 65 | while (!isEmpty(q)) { | ^~~~~~~ Main.c: In function ‘main’: Main.c:82:22: warning: passing argument 2 of ‘pushQueue’ makes integer from pointer without a cast [-Wint-conversion] 82 | pushQueue(q, popQueue); | ^~~~~~~~ | | | int (*)(Queue *) Main.c:27:30: note: expected ‘int’ but argument is of type ‘int (*)(Queue *)’ 27 | void pushQueue(Queue* q, int number) { | ~~~~^~~~~~ Main.c: In function ‘intInput’: Main.c:6:5: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 6 | scanf("%d", &a); | ^~~~~~~~~~~~~~~ /usr/bin/ld: /tmp/ccAuVax7.o: in function `freeQueue': Main.c:(.text+0x198): undefined reference to `isEmpty' /usr/bin/ld: Main.c:(.text+0x1d8): undefined reference to `isEmpty' collect2: error: ld returned 1 exit status
정답 개수:
-
틀린 개수:
-
실행 실패 개수:
-
반례를 발견하지 못했습니다.