prog.cpp: In function ‘double getRank(int*, int, int)’:
prog.cpp:6:36: warning: ‘sizeof’ on array function parameter ‘scores’ will return size of ‘int*’ [-Wsizeof-array-argument]
int scoresLength = sizeof(scores)/sizeof(scores[0]);
^
prog.cpp:4:27: note: declared here
double getRank(int scores[], int newscore, int maxlen) {
^
prog.cpp:8:8: error: ‘i’ was not declared in this scope
for(i=0;i<scoresLength;i++){
^
prog.cpp: In function ‘int main()’:
prog.cpp:30:26: error: assigning to an array from an initializer list
scores = {66, 54, 23, 12};
^