Once again you've posted code which uses a non standard library so no one is going to be able to compile this straight off.

I suggest you create a smaller program and concentrate on getting just...