#include <algorithm>
#include <iostream>

using namespace std;

struct student {
    char name[50];
    int roll;
    int marks;
};

int main(){
    student s[5] = {{"Jonathan", 1, 99}, {"Mee", 2, 100}, {"Joe", 3, 50}, {"Blow", 4, 0}, {"Minhaj Shafqat", 5, 60}};
    const auto it = max_element(cbegin(s), cend(s), [](const auto& lhs, const auto& rhs){ return lhs.marks < rhs.marks; });
    
    cout << it->roll << ' ' << it->name << ' ' << it->marks << " is top in the class\n";
}