这道题有bug,如果把答案和上一道题写的一模一样,依然可以通过
本道题答案:
#include <bits/stdc++.h>
using namespace std;
signed main()
{

    int n; //与上一题相比,多了这一行
    cin >> n;//与上一题相比,多了这一行
    int a,b;
    while(cin >> a>>b)
    {
        cout << a+b <<endl;
    }
    
    
    return 0;
}
上一道题答案:
#include <bits/stdc++.h>
using namespace std;
signed main()
{

    int a,b;
    while(cin>>a>>b)
    {
        cout << a+b<<endl;
    }
    
    
    return 0;
}