Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <bits/stdc++.h>
- #include <locale.h>
- #include <windows.h>
- using namespace std;
- ifstream fin("text.in");
- const static unsigned code = 65001;
- set <string> ss;
- int main()
- {
- setlocale(LC_ALL, "ro");
- SetConsoleOutputCP(code);
- string s;
- while (fin >> s)
- ss.insert(s);
- cout << ss.size();
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement