fork download
  1. #include <iostream>
  2. #include <limits>
  3. #include <cmath>
  4.  
  5. long long upper_limit = std::pow(10, 18);
  6.  
  7. int main()
  8. {
  9. std::cout << std::numeric_limits<long long>::max() << '\n';
  10. std::cout << upper_limit << '\n';
  11. std::cout << upper_limit * upper_limit << '\n';
  12. }
Success #stdin #stdout 0s 3344KB
stdin
Standard input is empty
stdout
9223372036854775807
1000000000000000000
-5527149226598858752