fork download
  1. #include<stdio.h>
  2. #include<iostream>
  3. #include<math.h>
  4. using namespace std;
  5. int main()
  6. {
  7. int test,a,b;
  8. cin>>test;
  9. for(int i=1;i<=test;i++)
  10. {
  11. cin>>a>>b;
  12. cout<<a+b<<endl;
  13. }
  14. }
  15.  
Success #stdin #stdout 0s 3144KB
stdin
5
22 12
23 12
1 1
2 3
100 100
stdout
34
35
2
5
200