79796378

Date: 2025-10-22 03:38:51
Score: 1
Natty:
Report link

The issue is with this line:

squares := !squares :: (!x * !x);

Essentially, the cons operator (::) takes in an element and a list and returns a list which you are doing but in the wrong order. So from my understading the line should be replaced with:
squares := (!x * !x) :: !squares;

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Ashley Manser