fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5.  
  6. int e9 = (int)1e9 + 5213;
  7. int e9_correct = 1'000'000'000 + 5213;
  8. cout << e9 << " " << e9_correct << endl;
  9.  
  10.  
  11. int64_t e18 = (int64_t)1e18 + 1;
  12. int64_t e18_correct = 1'000'000'000'000'000'001;
  13. cout << e18 << " " << e18_correct << endl;
  14.  
  15. return 0;
  16. }
  17.  
Success #stdin #stdout 0s 3468KB
stdin
Standard input is empty
stdout
1000005213 1000005213
1000000000000000001 1000000000000000001