실행 실패 (제출 코드 컴파일 에러)
Main.java:28: error: bad operand types for binary operator '>' heapifyUp(maxHeap, maxSize, (a, b) -> a > b); ^ first type: Boolean second type: Boolean Main.java:31: error: bad operand types for binary operator '<' heapifyUp(minHeap, minSize, (a, b) -> a < b); ^ first type: Boolean second type: Boolean Main.java:43: error: bad operand types for binary operator '>' heapifyDown(maxHeap, maxSize, (a, b) -> a > b); ^ first type: Boolean second type: Boolean Main.java:46: error: bad operand types for binary operator '<' heapifyDown(minHeap, minSize, (a, b) -> a < b); ^ first type: Boolean second type: Boolean Main.java:63: error: incompatible types: int cannot be converted to Boolean while (i > 1 && comp.compare(arr[i], arr[i / 2])) { ^ Main.java:76: error: incompatible types: int cannot be converted to Boolean int child = (right <= size && comp.compare(arr[right], arr[left]) > 0) ? right : left; ^ Main.java:78: error: incompatible types: int cannot be converted to Boolean if (comp.compare(arr[child], arr[i]) > 0) { ^ Note: Some messages have been simplified; recompile with -Xdiags:verbose to get full output 7 errors
정답 개수:
-
틀린 개수:
-
실행 실패 개수:
-
비공개 코드입니다. 코드 작성자만 볼 수 있습니다.
반례를 발견하지 못했습니다.