Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <cmath>
- #include <cstdio>
- #include <vector>
- #include <iostream>
- #include <algorithm>
- #include <string>
- #include <map>
- using namespace std;
- int main() {
- string word;
- map<string, int> occurences;
- while(cin >> word) {
- occurences[word]++;
- }
- for (auto element : occurences) {
- if (element.second == 1) {
- std::cout << element.first << "\n";
- }
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement