in reply to recursive algorithm

Show us what 2 values you provide on STDIN to get that warning message.

See also: