You seem to have two cin>>x in your code at lines 23 and 21. I would delete line 23.
I might make count and integer but that is minor.
you have remembered to initialize your variables which is good.
Reputation Points: 749
Solved Threads: 135
Practically a Master Poster
Online 661 posts
since Nov 2008