Building tree from pre and inorder

https://ide.codingblocks.com/s/237663 pleade tell my mistake ,it is showing error.

@varu
There is mistake in line 21. It should be if(b[i]==a[j]) , a[j] not a[i]

https://ide.codingblocks.com/s/237663 still showing error

ok,it is working fine