실행 실패 (제출 코드 컴파일 에러)
Main.cpp: In function ‘int main()’: Main.cpp:9:34: error: no type named ‘value_type’ in ‘struct std::greater<int>’ 9 | priority_queue<int, greater<int>> heap{}; | ^~ Main.cpp:9:34: error: template argument 3 is invalid Main.cpp:16:14: error: request for member ‘push’ in ‘heap’, which is of non-class type ‘int’ 16 | heap.push(Input); | ^~~~ Main.cpp:19:17: error: request for member ‘empty’ in ‘heap’, which is of non-class type ‘int’ 19 | if(heap.empty()) cout << 0; | ^~~~~ Main.cpp:22:24: error: request for member ‘front’ in ‘heap’, which is of non-class type ‘int’ 22 | cout << heap.front(); | ^~~~~ Main.cpp:23:16: error: request for member ‘pop’ in ‘heap’, which is of non-class type ‘int’ 23 | heap.pop(); | ^~~
정답 개수:
-
틀린 개수:
-
실행 실패 개수:
-
반례를 발견하지 못했습니다.