fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. int a = 1000000000;
  6. int b = 999999999;
  7. int c = 999999998;
  8.  
  9. long long result1 = a + b + c;
  10. long long result2 = 1LL * a + 1LL * b + 1LL * c;
  11. cout << result1 << " " << result2;
  12. return 0;
  13. }
Success #stdin #stdout 0.01s 5544KB
stdin
Standard input is empty
stdout
-1294967299 2999999997