실행 실패 (제출 코드 컴파일 에러)
Main.c: In function ‘is_full’: Main.c:26:27: error: ‘Max_Queue_Size’ undeclared (first use in this function) 26 | return ((q->rear+1) % Max_Queue_Size == q->front); | ^~~~~~~~~~~~~~ Main.c:26:27: note: each undeclared identifier is reported only once for each function it appears in Main.c: In function ‘enqueue’: Main.c:40:33: error: ‘Max_Queue_Size’ undeclared (first use in this function) 40 | q->rear = (q->rear+1) % Max_Queue_Size; | ^~~~~~~~~~~~~~ Main.c: In function ‘dequeue’: Main.c:49:31: error: ‘Max_Queue_Size’ undeclared (first use in this function) 49 | q->front = (q->front+1) % Max_Queue_Size; | ^~~~~~~~~~~~~~ Main.c: In function ‘main’: Main.c:66:11: warning: the address of ‘is_empty’ will always evaluate as ‘true’ [-Waddress] 66 | while (!is_empty) { | ^ Main.c: In function ‘is_full’: Main.c:27:1: warning: control reaches end of non-void function [-Wreturn-type] 27 | } | ^ Main.c: In function ‘main’: Main.c:56:4: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 56 | scanf("%d %d", &N, &K); | ^~~~~~~~~~~~~~~~~~~~~~
정답 개수:
-
틀린 개수:
-
실행 실패 개수:
-
반례를 발견하지 못했습니다.