Untitled
unknown
plain_text
a year ago
447 B
1
Indexable
Never
#include <iostream> #include <vector> #include <iomanip> #include <algorithm> using namespace std; struct Film { string name; int date; string rez; bool operator< (const Film& other) const { return date < other.date; } }; int main() { setlocale(LC_ALL, "Russian"); int n; cin >> n; vector<Film> all; for (int i = 0; i < n; i++) { Film p; cin >> p.name >> p.date >> p.rez; all.push_back(p); } }