For the test cases this only produces the first output (correctly), but then hits a compiler error with format.d before the next one. Any ideas what might be going on?
Figured it out. The issue was the \n character at the end of the readf statements.