fork(2) download
  1. #include <iostream>
  2.  
  3. using namespace std;
  4.  
  5. int main() {
  6. int l = -1000000000, r = 1000000000;
  7. long long res = 0;
  8. for (int x=l; x<=r; x+=2) res+= x;
  9. cout << res << endl;
  10.  
  11. return 0;
  12. }
Success #stdin #stdout 0s 5320KB
stdin
Standard input is empty
stdout
0