int getScore (int testScore, int i, double total);
Why is this inside your main? It doesnt do anything. You need to move this below main and create the function below main, and do all of the stuff there, just like you've done with your two other functions.