How do i get 64-bit integers?
Integer types on our platform: char – 8 bits (signed) short – 16 bits int – 32 bits long – 32 bits long long – 64 bits long long is not merely a gcc extension, but part of ISO C99. If you test locally with a compiler other than gcc, the preprocessor may be useful for hiding the differences. For example: #ifdef _GNUC_ #define int64 long long #else /* MSVC, say */ #define int64 __int64 #endif In this way, you can test the same code using 64 bit integers in our environment and on your system. The C++ standard libraries do not include support for arbitrary precision arithmetic.