fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. int a, b;
  6. while (cin >> a >> b) {
  7. cout << a + b << "\n";
  8. }
  9. return 0;
  10. }
Success #stdin #stdout 0.01s 5312KB
stdin
1 1
2 3
3 4
9 8
5 2
stdout
2
5
7
17
7