I need to add 5 judge scores and add them to total score but I have no idea to go about this. How would I go about using this psuedocode?

Using a do-while loop input the 5 judge's scores

Start do while ( or for loop) loop

Ask the user to input a judges score

Validate the score to ensure it is between 0 and 10

use a while loop to input another score if it is not between 0 and 10

Add score to total

Determine highest and lowest scores

If score is greater than highest assign score to highest

If score is less than lowest assign score to lowest

Increment the judgeCount variable

I tried this if loop and while loops but it isn't working. I'm not understanding how to add all 5 judge scores and setting the highest score to lowest. Here is my code.

#include <iostream>
#include <string>
#include <vector>


using namespace std;

void main()
{
string diverName, diverCity;
int judgeScore, judgeScore2, judgeScore3, judgeScore4, judgeScore5;
double totalScore;
double difficulty;
int highScore;
int lowScore;
cout << "Enter the Diver's name" << endl;
cin >> diverName;
cout << "Enter the Diver's city" << endl;
cin >> diverCity;

// 5 Judge Score inputs
for(int i = 0; i < 5; i++)
{

cout << "Enter the score given by judge # 1: ";
cin >> judgeScore;
cout << "Enter the score given by judge #2: ";

// Test input
while ( judgeScore < 0 || judgeScore > 10)
{
cout << "Invalid score - Please reenter (Valid Range: 0 - 10)" << endl;
cout << "Enter the score given by judge # 1: " << endl;
cin >> judgeScore;
}
}
cout << "What was the degree of difficulty?" << endl;

cin >> difficulty;

while(difficulty < 0 || difficulty > 1.67)
{
cout << "Invalid degree of difficulty, please reenter: " << endl;
}

totalScore = judgeScore / difficulty;
cout << "Diver Name: " << diverName << "City: " << diverCity;
cout << "The overall score was: " << totalScore << endl;


system("pause");

}