I got a compiler error that i cant fix

this program works fine in visual studio put i need to make it work in emacs and this is what i have and there are two bugs i have that i cant solve one on line marked (97)and one on line marked (213)

------------------------------------------------------------------------well that does not work here is the code i have so far i only got that error on line 96 thats now line 97 and one news one on 213
------------------------------------------------------------------------------
include <iostream>
#include <iomanip>
#include <string>
#include <fstream>

using namespace std;

struct skater
{
string fName, lName;
int entry;
double score[5];
double final;
};
int dataEntry(ifstream&, skater[]);
void scoreEntry(skater[], int);
void format(skater[], int);
void bubblesort(skater[],int count);
void finalScore(skater[], int);
void printname( skater[],int);
void printscore( skater[], int);
void bubblefinal (skater[], int);
void printfinal (skater[], int);
int main()
{
skater person[25];
ifstream infile;
string file;
int count;

cout << "Please enter the file name containing skater names and entry
number" << endl;
cin >> file;
infile.open(file.c_str());
count = dataEntry(infile, person);
infile.close();
format(person, count);
bubblesort(person, count);
printname(person,count);
scoreEntry(person, count);
printscore (person, count);
finalScore(person, count);
bubblefinal (person, count);
printfinal (person, count);
return 0;
}
int dataEntry(ifstream &infile, skater person[])
{
int i = 0;
infile >> person[i].fName;
infile >> person[i].lName;
infile >> person[i].entry;
while (!infile.eof())
{

i++;
if(i >= 25)
break;
infile >> person[i].fName;
infile >> person[i].lName;
infile >> person[i].entry;
}
return i;
}

void scoreEntry(skater person[], int count)
{
double temp = 0;
ifstream infile;
string file;


for (int i = 0; i < count; i++)
for (int k = 0; k < 5; k++)
{
person[i].score[k] = 0;
}
cout << "Please enter the file name containing skater scores" << endl;
cin >> file;
infile.open(file.c_str());


for (int j = 0; j < count; j++)
{
infile >> temp;
(97) if(infile.peek() != fstream.eofbit && infile.peek() != 10)

{
if(temp == person[j].entry)
{
infile >> temp;
person[j].score[0] = temp;
infile >> temp;
person[j].score[1] = temp;
infile >> temp;
person[j].score[2] = temp;
infile >> temp;
person[j].score[3] = temp;
infile >> temp;
person[j].score[4] = temp;
}
}
}
}
void format (skater person[], int count)
{
int wlen;

for (int i = 0; i < count; i++)
{
wlen = person[i].fName.length();
person[i].fName[0] = toupper(person[i].fName[0]);
person[i].lName[0] = toupper(person[i].lName[0]);
for(int j = 1; j < wlen; j++)
{
person[i].fName[j] = tolower(person[i].fName[j]);
person[i].lName[j] = tolower(person[i].lName[j]);
}
}

}


void bubblesort(skater list[ ],int count)//descending
{
int i;
int j;
skater temp; //used when values are interchanged
for (i=0; i < count-1; i++)
for (j=0; j < count-(i+1); j++)
if (list[j].lName[0] > list[j+1].lName[0])
{
temp = list[j];
list[j] = list[j+1];
list[j+1] = temp;
}
}

void finalScore(skater person[], int count)
{
double sum = 0;
double min;
double max;
for(int i = 0; i < count; i++)
{
min = person[i].score[0];
max = person[i].score[0];
for(int j = 0; j < 5; j++)
{
sum = sum+person[i].score[j];
if (min > person[i].score[j])
min = person[i].score[j];
if (max < person[i].score[j])
max = person[i].score[j];
}
sum = sum - max;
sum = sum - min;
person[i].final = sum;
sum = 0;

}
}

void printname(skater person[], int count)
{
cout << fixed << showpoint << setprecision(2);
cout << left <<setw(10) << "NAME" << right << setw(10) << "Entry #" << endl;


for (int i =0; i < count; i++)
{
cout << left <<person[i].lName << "," << person[i].fName << right <<
setw (20) << person[i].entry << endl;
}
cout << " " << endl;

}
void printscore (skater person[], int count)
{
cout << fixed << showpoint << setprecision(1);
cout << " " << endl;
cout << right << setw(25) << "JUDGES' SCORES" << endl;
cout << left << "NAME" << right << setw(30) << "ENTRY #" << setw(5)<< "#1"
<< setw(5) << "#2" << setw(5) << "#3" << setw(5) << "#4" << setw(5) <<
"#5"<< endl;



for (int i =0; i < count; i++)
{
cout << left <<person[i].lName << "," << person[i].fName << right
<<setw (7) << right << setw(30) << person[i].entry << setw(5) <<
person[i].score[0] << setw(5)<<person[i].score[1]<< setw(5) <<
person[i].score[2] << setw(5) << person[i].score[3]<< setw(5) <\
< person[i].score[4]<< endl;
}
void bubblefinal (skater person[] , int count);
{
int i;
int j;
double newcount;
newcount = static_cast<double> (count);
skater temp; //used when values are interchanged
for (i=0; i < newcount-1; i++)
for (j=0; j < newcount-(i+1); j++)
(213) if (person[j].final[0] < person[j+1].final[0])
{
temp = person[j];
person[j] = person[j+1];
person[j+1] = temp;
}


}
}

void printfinal (skater person[], int count)
{
cout << " " << endl;
cout<< right << setw(30) << "FINAL" << endl;
cout << left << "NAME" << right <<setw(30) << "SCORE" << endl;
for (int i =0; i < count; i++)
{
cout << left <<person[i].lName << "," << person[i].fName << right
<< setw(30) << right << person[i].final << endl;
}

}
Code tags, PLEASE!
http://www.cplusplus.com/articles/firedraco1/

What are the compiler errors?
Topic archived. No new replies allowed.