Quick Error question

I have this working earlier in my program but on this section am getting an "array
or pointer type required" error.

Any thoughts why?

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
 for(int i = 0; i < NUM_DIVERS;i++)
{
for (start = 0; start < (NUM_SCORES - 1); start++)
{
	smallest = start;

for( current = (start + 1); current < NUM_SCORES; current++ )
	if( divers[i].totalScore[current] > divers[i].totalScore[smallest] )
		smallest = current;

	if(smallest != start)
{
	temp = divers[i].totalScore[i][start];
	divers[i].totalScore[start] = divers[i].totalScore[smallest];
	divers[i].totalScore[smallest] = temp;
}
}	
}
temp = divers[i].totalScore[i][start];
Topic archived. No new replies allowed.