prog.cpp: In function 'void siftdown(int*, int, int)':
prog.cpp:3:27: error: 'min_child' was not declared in this scope
int s = min_child(a, i, n);
^
prog.cpp:4:2: error: 'cout' is not a member of 'std'
std::cout << "min_child called" << std::endl;
^
prog.cpp:4:37: error: 'endl' is not a member of 'std'
std::cout << "min_child called" << std::endl;
^
prog.cpp:6:3: error: 'cout' is not a member of 'std'
std::cout << "while loop" << std::endl;
^
prog.cpp:6:32: error: 'endl' is not a member of 'std'
std::cout << "while loop" << std::endl;
^
prog.cpp:7:3: error: 'swap' is not a member of 'std'
std::swap(i, s);
^