不难。
#include <iostream>
using namespace std;
int main()
{
int record[6];
while(1)
{
for(int i = 0;i<6;i++)
{
cin >> record[i];
}
if(record[0] + record[1] == 0)
break;
int all,win,lose;
all = record[0] + record[1];
win = all*2 - (record[0] + record[2] + record[4]);
lose = all*2 - (record[1] + record[3] + record[5]);
cout << "Anna's won-loss record is "<< win << '-' << lose << '.' << endl;
}
return 0;
}