#include <iostream>
#include <vector>
#include <algorithm>
#include <string>
using namespace std;
struct Student {
string name;
int score;
};
// 自定义比较函数
bool compare(const Student& a, const Student& b) {
return a.score > b.score;
}
int main() {
vector<Student> students = {{"Alice", 85}, {"Bob", 92}, {"Charlie", 78}};
sort(students.begin(), students.end(), compare);
for(const auto& s : students) {
cout << s.name << " ";
}
return 0;
}