1 #include "../src/heap.h"
10 int main(int argc, char* argv[])
14 std::cerr << "Uso: " << argv[0] << " cantidad\n";
17 const int SIZE = atoi(argv[1]);
19 for (int i = 0; i < SIZE; ++i)
21 heap_push(v, rand() % (SIZE*10), std::less< int >());
23 for (int i = 0; i < SIZE; ++i)
25 std::cout << heap_pop(v, std::less< int >()) << "\n";