Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <vector>
- #include <cstdio>
- #include <map>
- #include <algorithm>
- #include <math.h>
- #include <string>
- #include <cstring>
- #include <set>
- using namespace std;
- typedef long long ll;
- typedef double ld;
- struct Petux
- {
- int name, age;
- string hy;
- Petux():
- name(0),
- age(0),
- hy("") {}
- Petux(int name, int age, string hy):
- name(name),
- age(age),
- hy(hy) {}
- int height()
- {
- return name * 239 + age;
- }
- Petux operator+ (Petux b)
- {
- return Petux(name + b.name, b.age, hy);
- }
- int oeprator%(string s)
- {
- }
- bool operator<(Petux a)
- {
- }
- };
- bool cmp(Petux x, Petux y)
- {
- reutrn x.name < y.name;
- }
- vector<Petux> a;
- Petux oleg;
- int main()
- {
- ios::sync_with_stdio(0); cin.tie(0);
- freopen("in.txt", "r", stdin);
- // freopen("nails.in", "r", stdin);
- // freopen("nails.out", "w", stdout);
- ll x, y, z, t;
- cin >> x >> y >> z >> t;
- vector<int> a();
- Petux a;
- a + b
- cin >> a.age >> a.name >> a.hy;
- Petux b(3, 4, "kek");
- cout << b.name;
- sort(a.begin(), a.end());
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement