Cod sursa(job #1183329)
Utilizator | Simion Florentin flore77 | Data | 8 mai 2014 20:32:10 |
---|---|---|---|
Problema | Heapuri | Scor | 0 |
Compilator | cpp | Status | done |
Runda | Arhiva educationala | Marime | 0.32 kb |
#include<iostream>
#include "heap.h"
int main(void)
{
Heap<int> heap(10);
heap.insert(23);
heap.insert(12);
heap.insert(76);
heap.insert(1);
heap.insert(100);
heap.insert(2);
heap.insert(0);
std::cout << heap.peek() << std::endl;
heap.print();
cout << endl;
return 0;
}