Please comment here your doubts regarding the code I will try to answer them as soon as possible for me. And also suggests ways by which I can make my work more understandable to others.
Currently I am using vectors, in place of which it would be better to use dynamically allocated arrays. Suggest such or other optimizations to decrease the running time of the code.