In this image, I am having an issue with this exercise and specifically the formula you use to compute square distance.
From the lab, this is the formula that should be computed.
The squared distance:
Currently the code is computing the Euclidian distance.
And the result of the calculation should be stored in d.
Hope this helps
Please check the variable that you are returning “d”. Is “d” being evaluated anywhere in your function? Once that issue is fixed, you can check if the equation for squared distance has been correctly implemented as suggested by @SamReiswig