unique.cpp: In function 'int PickUnique(int)':
unique.cpp:6:5: error: 'UniqueCount' was not declared in this scope
if(UniqueCount(0,N-1)==UniqueCount(0,N-2)+1){
^~~~~~~~~~~
unique.cpp:9:5: error: 'UniqueCount' was not declared in this scope
if(UniqueCount(0,N-1)==UniqueCount(1,N-1)+1){
^~~~~~~~~~~
unique.cpp:13:6: error: 'UniqueCount' was not declared in this scope
if(UniqueCount(0,i)==UniqueCount(0,i-1)+1){
^~~~~~~~~~~
unique.cpp:19:9: error: invalid conversion from 'int*' to 'int' [-fpermissive]
return U;
^
unique.cpp:4:6: warning: address of local variable 'U' returned [-Wreturn-local-addr]
int U[N];
^