genera_array restituisce un int ? A parte il fatto che non c'è nessun return, cosa è questo intero che viene restituito?

E somma_array( vett , num ); si attende un vettore come primo argomento non un intero ...