koala.cpp: In function 'int allValues(int, int, int*)':
koala.cpp:64:5: error: ambiguating new declaration of 'int allValues(int, int, int*)'
int allValues(int n,int w,int *p){
^~~~~~~~~
In file included from koala.cpp:3:0:
koala.h:9:6: note: old declaration 'void allValues(int, int, int*)'
void allValues(int N, int W, int *P);
^~~~~~~~~
koala.cpp: In function 'int minValue(int, int)':
koala.cpp:30:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
koala.cpp: In function 'int greaterValue(int, int)':
koala.cpp:62:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^