洛谷P5740 【深基7.例9】最厉害的学生.
第一次错误代码
#include<iostream>
#include<bits/stdc++.h>
using namespace std;
int n;
struct jgt{
string name;
int ch,ma,en,num,sum;
}a[1009];
struct Roule1{
bool operator ()(const jgt &s1,const jgt &s2)
{
if(s1.sum>s2.sum||s1.sum==s2.sum&&s1.num<s2.num)return true;