Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <map>
- #include <set>
- #include <string>
- #include <vector>
- #include <iostream>
- using namespace std;
- class SearchServer {
- map<string, set<int>> word_to_documents_;
- set<string> stop_words_;
- public:
- int GetStopWordsSize() const {
- return stop_words_.size();
- }
- };
- int GetStopWordsSize(const SearchServer& server) {
- return server.GetStopWordsSize();
- }
- int main() {
- SearchServer server;
- cout << GetStopWordsSize(server) << endl;
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment