Hi all, i'm writing an avl tree for an university's exam.
The tree works, balancement factors are correctly set when inserting and removing elements but, in some cases of unbalanced nodes, rotations make errors i can't fix.. not even with the help of valgrind...

this is the tree and thanks for every help/suggestion/correction

PS sorry for the comments in italian, i hope you'll understand the code, otherwise ask me, thanks again