ERROR: Type error: `character_code' expected, found `-1' (an integer)
ERROR: In:
ERROR: [11] char_code(_2404,-1)
ERROR: [10] '$in_reply'(-1,'?h') at /opt/prolog-swi/lib/swipl/boot/init.pl:846
Real time: 0.202 s
User time: 0.088 s
Sys. time: 0.014 s
CPU share: 49.97 %
Exit code: 0
A prolog query that returns multiple results prints an error.
Example: https://tio.run/##KyjKz8lP1y0uz/z/vyS1uETDUFOPC8wwAjKgYhGaegA
input
Code (broken)
Debug