I am taking input of 1,2 or 3 from user and storing them in the vector. I want to add the 1s,2s or 3s and get the cout the results of majority, secondary and third positions. I have completed till taking the inputs and storing in the vectors and displaying the vector, but not getting any idea of getting the results. Can any one please help me out on the logic!!