Segfaults are a pain, but usually they something along these lines.

Compile and run,

outputs (or something similar) …

Compile and run,

outputs …