Really solved

Final solution, runs as desired.

Bugfix: Printf code for 64-bit length was I64, not ll.