add include of cstdlib because abs for integral types is there and not cmath apparently