- nbval non initialisé
- nbval = nbval++; a un comportement indéfini. ici nbval++; suffit