Another bigger hint - You need to have the cin inside the outer loop.