"Undefined variable" means exactly what is says: you are trying to use the content of a variable before you have declared it - a bit like trying to call someone before you have been given their number.
The system cannot find the variable called "nTot" before you try to use it, so it can't assume it';s value and give you the correct result. You may have forgotten it, you may have misspelled it, we don't know. Start by looking at line 81 of your code and see where before that you declared the variable.
BTW: We can only answer English questions: please use Google Translate in future!
Google Translate:
"Undefined variable" significa esattamente ciò che viene detto: stai cercando di utilizzare il contenuto di una variabile prima di averla dichiarata - un po 'come cercare di chiamare qualcuno prima che ti sia stato dato il loro numero.
Il sistema non riesce a trovare la variabile chiamata "nTot" prima di provare a usarla, quindi non può assumerne il valore e darti il risultato corretto. Potresti averlo dimenticato, potresti averlo scritto male, non lo sappiamo. Inizia osservando la riga 81 del tuo codice e vedi dove prima hai dichiarato la variabile.
A proposito: possiamo solo rispondere a domande in inglese: per favore usa Google Translate in futuro!