Please mention the problem code in which you are getting errors. Also make sure to intend your code properly so that others can understand it and answer your query. Try to link your solution page or your code on IDEONE instead of pasting your code here. A quick look at your code suggests that you have missed * in