...
CERT C++ Secure Coding Standard: INT15-CPP. Use intmax_t or uintmax_t for formatted IO on programmer-defined integer types
ISO/IEC 9899:2011 Section Section 7.20.1.5, "Greatest-width integer types," and Section 7.21.6, "Formatted input/output functions"
...