求不重复的单词个数

#include <iostream>
#include <set>
#include <string>

using namespace std; int main() {
   
    set<string> s;
    string s1; while (cin >> s1) {
   
    	s.insert(s1);
    
	}
    cout << s.size() << endl;
    return 0;
}