• + 0 comments

    You have not included the header file which includes the library function abs!! Which is cmath or math.h