fork download
  1. #include <boost/multiprecision/cpp_int.hpp>
  2. #include <iostream>
  3. #include <cstdint>
  4.  
  5. int main()
  6. {
  7. boost::multiprecision::int128_t a = INT64_MIN;
  8. std::cout << a << " "
  9. << INT64_MIN << " "
  10. << static_cast<int64_t>(a) << " "
  11. << std::endl;
  12.  
  13. return 0;
  14. }
Success #stdin #stdout 0s 3492KB
stdin
Standard input is empty
stdout
-9223372036854775808 -9223372036854775808 -9223372036854775808