koala.cpp: In function 'int minValue(int, int)':
koala.cpp:16:12: error: 'assert' was not declared in this scope
} else assert (R[i] == 2);
^~~~~~
koala.cpp:16:12: note: suggested alternative: 'short'
} else assert (R[i] == 2);
^~~~~~
short
koala.cpp:28:12: error: 'assert' was not declared in this scope
} else assert (R[i] == 2);
^~~~~~
koala.cpp:28:12: note: suggested alternative: 'short'
} else assert (R[i] == 2);
^~~~~~
short
koala.cpp: In function 'int allValues(int, int, int*)':
koala.cpp:40: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:1:0:
koala.h:9:6: note: old declaration 'void allValues(int, int, int*)'
void allValues(int N, int W, int *P);
^~~~~~~~~