Devo scrivere così: ricerca=binaria(v,n,dim); ?