Fixed Mac / Linux incompatibility in printf.
Using cout << instead will work in either case since a specific format isn't required.