#include <iostream>
#include <map>
#include <set>
#include <vector>
#include <string>
using namespace std;
vector<string> anagram(string w);
int main()
{
}
vector<string> anagram(string w)
{
set<string> m_set = set<string>(w.begin(), w.end());
vector<string> m_words = vector<string>(m_set.begin(), m_set.end());
map<string, vector<int> > d();
}
I2luY2x1ZGUgPGlvc3RyZWFtPgojaW5jbHVkZSA8bWFwPgojaW5jbHVkZSA8c2V0PgojaW5jbHVkZSA8dmVjdG9yPgojaW5jbHVkZSA8c3RyaW5nPgoKdXNpbmcgbmFtZXNwYWNlIHN0ZDsKCnZlY3RvcjxzdHJpbmc+IGFuYWdyYW0oc3RyaW5nIHcpOwppbnQgbWFpbigpCnsKCQp9Cgp2ZWN0b3I8c3RyaW5nPiBhbmFncmFtKHN0cmluZyB3KQp7CglzZXQ8c3RyaW5nPiBtX3NldCA9IHNldDxzdHJpbmc+KHcuYmVnaW4oKSwgdy5lbmQoKSk7Cgl2ZWN0b3I8c3RyaW5nPiBtX3dvcmRzID0gdmVjdG9yPHN0cmluZz4obV9zZXQuYmVnaW4oKSwgbV9zZXQuZW5kKCkpOwoJbWFwPHN0cmluZywgdmVjdG9yPGludD4gPiBkKCk7Cn0=
In file included from /usr/include/c++/6/map:60:0,
from prog.cpp:2:
/usr/include/c++/6/bits/stl_tree.h: In instantiation of ‘std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::iterator std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::_M_insert_unique_(std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::const_iterator, _Arg&&, _NodeGen&) [with _Arg = char&; _NodeGen = std::_Rb_tree<std::__cxx11::basic_string<char>, std::__cxx11::basic_string<char>, std::_Identity<std::__cxx11::basic_string<char> >, std::less<std::__cxx11::basic_string<char> >, std::allocator<std::__cxx11::basic_string<char> > >::_Alloc_node; _Key = std::__cxx11::basic_string<char>; _Val = std::__cxx11::basic_string<char>; _KeyOfValue = std::_Identity<std::__cxx11::basic_string<char> >; _Compare = std::less<std::__cxx11::basic_string<char> >; _Alloc = std::allocator<std::__cxx11::basic_string<char> >; std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::iterator = std::_Rb_tree_iterator<std::__cxx11::basic_string<char> >; std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::const_iterator = std::_Rb_tree_const_iterator<std::__cxx11::basic_string<char> >]’:
/usr/include/c++/6/bits/stl_tree.h:2250:4: required from ‘void std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::_M_insert_unique(_II, _II) [with _InputIterator = __gnu_cxx::__normal_iterator<char*, std::__cxx11::basic_string<char> >; _Key = std::__cxx11::basic_string<char>; _Val = std::__cxx11::basic_string<char>; _KeyOfValue = std::_Identity<std::__cxx11::basic_string<char> >; _Compare = std::less<std::__cxx11::basic_string<char> >; _Alloc = std::allocator<std::__cxx11::basic_string<char> >]’
/usr/include/c++/6/bits/stl_set.h:171:4: required from ‘std::set<_Key, _Compare, _Alloc>::set(_InputIterator, _InputIterator) [with _InputIterator = __gnu_cxx::__normal_iterator<char*, std::__cxx11::basic_string<char> >; _Key = std::__cxx11::basic_string<char>; _Compare = std::less<std::__cxx11::basic_string<char> >; _Alloc = std::allocator<std::__cxx11::basic_string<char> >]’
prog.cpp:17:52: required from here
/usr/include/c++/6/bits/stl_tree.h:1999:59: error: no match for call to ‘(std::_Identity<std::__cxx11::basic_string<char> >) (char&)’
= _M_get_insert_hint_unique_pos(__position, _KeyOfValue()(__v));
~~~~~~~~~~~~~^~~~~
In file included from /usr/include/c++/6/string:48:0,
from /usr/include/c++/6/bits/locale_classes.h:40,
from /usr/include/c++/6/bits/ios_base.h:41,
from /usr/include/c++/6/ios:42,
from /usr/include/c++/6/ostream:38,
from /usr/include/c++/6/iostream:39,
from prog.cpp:1:
/usr/include/c++/6/bits/stl_function.h:873:7: note: candidate: _Tp& std::_Identity<_Tp>::operator()(_Tp&) const [with _Tp = std::__cxx11::basic_string<char>]
operator()(_Tp& __x) const
^~~~~~~~
/usr/include/c++/6/bits/stl_function.h:873:7: note: no known conversion for argument 1 from ‘char’ to ‘std::__cxx11::basic_string<char>&’
/usr/include/c++/6/bits/stl_function.h:877:7: note: candidate: const _Tp& std::_Identity<_Tp>::operator()(const _Tp&) const [with _Tp = std::__cxx11::basic_string<char>]
operator()(const _Tp& __x) const
^~~~~~~~
/usr/include/c++/6/bits/stl_function.h:877:7: note: no known conversion for argument 1 from ‘char’ to ‘const std::__cxx11::basic_string<char>&’