fork download
  1. #include <iostream>
  2.  
  3. using namespace std;
  4.  
  5. int main(void)
  6. {
  7. while (1)
  8. {
  9. int a, b;
  10. cin >> a >> b;
  11.  
  12. if (cin.eof() == true)
  13. break;
  14.  
  15. cout << a + b << endl;
  16. }
  17. return 0;
  18. }
Success #stdin #stdout 0s 4832KB
stdin
1 1
2 3
3 4
9 8
5 2
stdout
2
5
7
17