Need help getting this to work

Alright, i keep getting a error saying that line 26 is unidentified, can anyone help me plz ? ive been working on this for like 3 hours and i really just dont understand it.
// This program uses a function that returns a value.
// program takes 5 inputs and cuts the highest and lowest scores entered, then avgerages the remaining 3.
#include <iostream>
#include <string>
using namespace std;

// Function prototype;
void getjudgedata(double&);
double calcScore();
float findLowest(float, float, float, float, float);
float findHighest(float, float, float, float, float);

int main()
{
double judge1=0.0, judge2 = 0.0, judge3=0.0, judge4=0.0, judge5=0.0;
getjudgedata(judge1);

getjudgedata(judge2);

getjudgedata(judge3);

getjudgedata(judge4);

getjudgedata(judge5);

cout << "avg is " << calcScore(judge1, judge2, judge3, judge4, judge5);

}
/////////////////////////////////
// get user data imput function///
//////////////////////////////////
void getjudgedata(double &score)
{
do
{cout << "Please enter your score\n";
cin >> score;}
while (score < 0 || score > 10);
return;
}
//////////////////
// calc function//
/////////////////
double calcScore(float score1, float score2, float score3,
float score4, float score5)
{
float hs,ls, avg;
hs = findHighest(score1,score2, score3, score4, score5);
ls = findLowest(score1, score2, score3, score4, score5);
avg = ((score1 + score2+ score3+ score4+ score5) - (hs+ls)) /3;
return avg;
}


////////////////////////////////
/// find lowest //////////////
///////////////////////////////
float findLowest(float score1, float score2, float score3,
float score4, float score5)
{
float lowScore = score1;

if (lowScore > score2)
score2 = lowScore;
if (lowScore > score3)
score3 = lowScore;
if (lowScore > score4)
score4 = lowScore;
if (lowScore > score5)
score5 = lowScore;
return lowScore;
}

//////////////////////////////////
//find highest/////////////////////
///////////////////////
float findHighest(float score1, float score2, float score3,
float score4, float score5)
{
float highScore = score1;

if (highScore < score2)
highScore = score2;
if (highScore < score3)
highScore = score3;
if (highScore < score4)
highScore = score4;
if (highScore < score5)
highScore = score5;
return highScore;
}

Forward declaration:
double calcScore();

Call:
calcScore(judge1, judge2, judge3, judge4, judge5);

Definition:
1
2
double calcScore(float score1, float score2, float score3,
float score4, float score5)


See any inconsistencies?
Topic archived. No new replies allowed.