ho fatto int mat1[r*c] e poi int *mat1 ma nulla da fare ..mi sa che c'era più di un errore ...grazie mille