fork download
  1. #include <iostream>
  2.  
  3. int main() {
  4.  
  5. std::cout << (1 << 31) << std::endl;
  6. std::cout << (1U << 31) << std::endl;
  7. std::cout << (1UL << 31) << std::endl;
  8.  
  9. return 0;
  10. }
Success #stdin #stdout 0.01s 5408KB
stdin
Standard input is empty
stdout
-2147483648
2147483648
2147483648