It seems that I misunderstand some part of the task because errors are given on trees that show the correct values in my opinion. For example, for a tree Bin (128, Bin (0, Empty, Empty), Bin (4, Empty, Empty)) i think that the answers are (3,2,0,1,1,1) when p x = x >-1; (2,1,0,1,1,1) when p x = x > 0; (1,0,0,1,-1,1) when p x = x >4 and (0,0,0,0,-1,-1) when p x = x > 128.
However, the tree displays an error. Unfortunately, the correct answer is not given to understand in which of the parameters an error is made, and no examples are given in the text of the task to understand the correctness of its understanding.
Could you help me understand which parameter is wrong?
Thank you in advance.