题解

刘宸宇  •  2天前


有漏洞

#include <bits/stdc++.h>
using namespace std;
int main() {
   vector<int> a,b;
   int x,y;
   while(1){
       cin>>x>>y;
       if(x==0&&y==0){break;}
       a.push_back(x);
       b.push_back(y);
   }
   for (int i=0;i<a.size();i++) {
       cout<<a[i]+b[i]<<endl;
   }
   return 0;
}


评论: