Assignment issue


why this is happening , my codes are ok , but still getting this error

From the error it says that you are using a variable called w in some calculation which is not previously defined in the code!