void getScore(float scores[], int size) { // Note
cout << "Welcome, enter seven numbers from 0-10 for the judges' score!\n";
for (int i = 0; i < size; i++) { // Note
cin >> scores[i];
while ((scores[i] < 0) || (scores[i] > 10)) {
cout << "Please enter a number from 0-10 for the judges' score!\n";
cin >> scores[i];
}
}
return scores;
}
int main() {
float scores[7];
getScore(scores, 7);
...