Whats wrong with this code?
Not getting correct output
pass index by reference
Node* CreateTree(vector ino,vectorpost,int s,int e,int& index)
Yeah it worked!!but why it is coming wrong earlier?
because you have to not pass it by reference 
actually the changes done while calling for right
root->right=CreateTree(ino,post,k+1,e,index);
will not reflect back for left call
which is wrong
i hope this help
if you have more doubts regarding this feel free to ask
if your doubt is resolved mark it as resolved from your doubt section inside your course
Then,do we need to do it for start and end as well?
why
s and e are different for left and right