On Friday, 29 November 2013 at 00:35:30 UTC, Binarydepth wrote:
> It compiles but in run time terminal shows a segmentation fault.
works for me without segfaulting. What data did you input?
> write(" %d: %d\n", bd, an);
This should be writef instead of write. writef uses the format
string, plain write just literally outputs its arguments.