i have these procedure
#include using namespace std; int parent(int i ){ return i/2; } int left(int i ){ return 2*i; } int right(i
You don't have a base case to terminate the recursion, so I imagine you're eventually getting a stack overflow. Think about when you can tell that you're done so you can gracefully fall out of the function.