Unable to find the error


Pls look into this code

Hey,your code is absolutely fine just add endl , when you are printing ans.