I recieve the error and I have no idea what it emerges. I have searched to find why this is happening between my arrays. Any help would be appreciated.
error C2664: 'scores' : cannot convert parameter 1 from 'int [100][3]' to 'int[]'Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
1 2 3 4 5 6
void scores(int medals[][SIZE], int score[]){
int c = 0;
for(int r=0; r<COUNTRIES; r++)
score[r] = (5*medals[r][c]) + (3*medals[r][c+1]) + (1*medals[r][c+2]);
}
int main(){
// Four arrays; countries, index, medals, score
char countries[COUNTRIES][COUNTRYSIZE];
int medals[COUNTRIES][SIZE];
int index[COUNTRIES];
int score[COUNTRIES];
//Get data from file
getCountries(countries);
getMedals(medals);
//Calculate the score of each country
scores(medals, score);
//Sort the scores and index them
selectionSort(score, index);
//Display the sorted Arrays
outputDisplay(countries, medals, index, score);
return 0;
}