fork(9) download
  1. #include <iostream>
  2.  
  3. using namespace std;
  4.  
  5. int main()
  6. {
  7.  
  8. long x1;
  9. long sum = 0;
  10. while (cin>>x1) {
  11. sum+=x1;
  12. }
  13. cout << sum << endl;
  14. return 0;
  15. }
Success #stdin #stdout 0s 4324KB
stdin
Standard input is empty
stdout
0