Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <set>
- #include <iterator>
- using namespace std;
- typedef struct
- {
- string fam;
- string im;
- int god;
- int gol;
- } inf;
- main()
- {
- set <char> players;
- string a;
- int n;
- cin>>n;
- int i;
- inf b, v;
- for (i=0; i<n; i++)
- {
- cin>>b.fam>>b.im>>b.god>>b.gol;
- if (b.gol>=1)
- {
- a=b.fam+b.im;
- players.insert (a);
- }
- }
- copy(players.begin(), players.end(), ostream.iterator<char>(cout," "));
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement