>>311
idの番号順(昇順、小さい順)。挿入する場所を探してinsertする。
> // 点数が最も悪い学生を消去
しっかしこの辺り、背筋が寒くなる先生だなw

void Seiseki::insert(int id, const std::string& nm, int s)
{
    std::list<Record>::iterator first = data.begin(), last = data.end();
    while (first != last && first->id < id) ++first;
    data.insert(first, Record(id, nm, s));
}
void Seiseki::lookup(int id) const
{
    std::list<Record>::const_iterator first = data.begin(), last = data.end();
    while (first != last && first->id != id) ++first;
    if (first != last) std::cout << *first << std::endl;
}
void Seiseki::erase_worst()
{
    std::list<Record>::iterator first = data.begin(), last = data.end(), i = first;
    if (first != last)
        for (++first; first != last; ++first)
            if (first->score < i->score)
                i = first;
    if (i != last) data.erase(i);
}