fork download
  1. #include <iostream>
  2. using namespace std;
  3. int main()
  4. {
  5. int a, b;
  6. while(cin>>a>>b && !(a==0 && b==0)){
  7. cout<<a+b;
  8. }
  9.  
  10. return 0;
  11. }
  12.  
Success #stdin #stdout 0s 15232KB
stdin
1 1
2 3
3 4
9 8
5 2
0 0
stdout
257177