How to map 360 degrees

In the definition of the anglediff function no types are specified for the parameters

In any case, you are not calling the anglediff() function in your program.