PREV INDEX NEXT

Author: Unknown
Subject: 0 code on Hwk4/decode followup
Date: Saturday, 07 Nov 2020, 12:32:05

The spec says to write an error to stderr if there would be a valgrind error for any given input to decode.

in stage=1, if you send:
12
0
0,

/Hwk4/decode errors with the third code sent (0). I assume that 0 is the EMPTY string in the table. Considering that it is in the table, why would the second 0 have caused a valgrind error if the solution code had not err'ed before?
PREV INDEX NEXT