#include #include #include #include using namespace std; int main() { ios::sync_with_stdio(false); cin.tie(NULL); cout.tie(NULL); int n=0; cin >> n;//학생의 수 입력 vectorv(n);//첫번째 pair부터 연도,월,일,이름을 입력받을 벡터 for (int i = 0; i > v[i].second.second >> v[i].second.first >> v[i].first.second >> v[i].first.first; //미리선언한 벡터에 순서에 맞춰 입력 } sort(v.begin(), v.end());//오름차순으로 정렬 cout