실행 실패 (제출 코드 컴파일 에러)
Main.c: In function ‘create’: Main.c:15:23: error: too few arguments to function ‘calloc’ 15 | return (HeapType*)calloc(sizeof(HeapType)); | ^~~~~~ In file included from Main.c:2: /usr/include/stdlib.h:543:14: note: declared here 543 | extern void *calloc (size_t __nmemb, size_t __size) | ^~~~~~ Main.c: In function ‘main’: Main.c:69:22: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘element’ [-Wformat=] 69 | printf("%d\n", delete_max_heap(heap)); | ~^ ~~~~~~~~~~~~~~~~~~~~~ | | | | int element Main.c:72:35: error: incompatible type for argument 2 of ‘insert_max_heap’ 72 | insert_max_heap(heap, a); | ^ | | | int Main.c:22:43: note: expected ‘element’ but argument is of type ‘int’ 22 | void insert_max_heap(HeapType* h, element item) { | ~~~~~~~~^~~~ Main.c: In function ‘create’: Main.c:16:1: warning: control reaches end of non-void function [-Wreturn-type] 16 | } | ^ Main.c: In function ‘main’: Main.c:64:5: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 64 | scanf("%d", &N); | ^~~~~~~~~~~~~~~ Main.c:66:9: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 66 | scanf("%d", &a); | ^~~~~~~~~~~~~~~
정답 개수:
-
틀린 개수:
-
실행 실패 개수:
-
반례를 발견하지 못했습니다.