Ho scritto questo algoritmo ma mi da questo errore:codice:function search(a,inizio,fine,chiave) medio=(inizio+fine)/2 if chiave = a(medio) or inizio >= fine then if chiave = a(medio) then search = true else search = false end if else if chiave > a(medio) then search(a,medio+1,fine,chiave) else search(a,inizio,medio-1,chiave) end if end if end function
Impossibile utilizzare parentesi per la chiamata di routine Sub
come posso risolvere il mio problema?