#include<iostream>using namespace std;int main(){ int num1,num2; while(1){ cin>>num1>>num2; cout<<num1+num2<<endl; } return 0;}
#includeusing namespace std;int main(){ int num1,num2; while(1){ cin>>num1>>num2; cout<<num1+num2<<endl; } return 0;}
把cin移到While內,不然程式沒有辦法跳出while迴圈判斷你的答案