Use lld instead of Ld as format specifier
The C Standard uses L for conversion to long doubles, ll should be used for conversion to long long int's
The C Standard uses L for conversion to long doubles, ll should be used for conversion to long long int's