#include <bits/stdc++.h>
using namespace std;
struct Record {
char s[10];
int score1, score2, score3;
}r[105];
bool cmp(Record a, Record b) {
int sum_a = a.score1 + a.score2 + a.score3;
int sum_b = b.score1 + b.score2 + b.score3;
return sum_a > sum_b;
...