Quindi l'errore sta nello scanf?