0_0_29539220_19609.cpp: In member function 'void SuffixAutomata::Extend(int)':
0_0_29539220_19609.cpp:46:22: error: invalid conversion from 'int' to 'std::map<SuffixAutomata::Node*, int>::key_type {aka SuffixAutomata::Node*}' [-fpermissive]
for(;p && !p->son[x];p->son[x]=nx,p=p->par);
^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/map:61:0,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/x86_64-w64-mingw32/bits/stdc++.h:80,
from 0_0_29539220_19609.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_map.h:511:7: note: initializing argument 1 of 'std::map<_Key, _Tp, _Compare, _Alloc>::mapped_type& std::map<_Key, _Tp, _Compare, _Alloc>::operator[](std::map<_Key, _Tp, _Compare, _Alloc>::key_type&&) [with _Key = SuffixAutomata::Node*; _Tp = int; _Compare = std::less<SuffixAutomata::Node*>; _Alloc = std::allocator<std::pair<SuffixAutomata::Node* const, int> >; std::map<_Key, _Tp, _Compare, _Alloc>::mapped_type = int; std::map<_Key, _Tp, _Compare, _Alloc>::key_type = SuffixAutomata::Node*]'
operator[](key_type&& __k)
^
0_0_29539220_19609.cpp:46:32: error: invalid conversion from 'int' to 'std::map<SuffixAutomata::Node*, int>::key_type {aka SuffixAutomata::Node*}' [-fpermissive]
for(;p && !p->son[x];p->son[x]=nx,p=p->par);
^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/map:61:0,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/x86_64-w64-mingw32/bits/stdc++.h:80,
from 0_0_29539220_19609.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_map.h:511:7: note: initializing argument 1 of 'std::map<_Key, _Tp, _Compare, _Alloc>::mapped_type& std::map<_Key, _Tp, _Compare, _Alloc>::operator[](std::map<_Key, _Tp, _Compare, _Alloc>::key_type&&) [with _Key = SuffixAutomata::Node*; _Tp = int; _Compare = std::less<SuffixAutomata::Node*>; _Alloc = std::allocator<std::pair<SuffixAutomata::Node* const, int> >; std::map<_Key, _Tp, _Compare, _Alloc>::mapped_type = int; std::map<_Key, _Tp, _Compare, _Alloc>::key_type = SuffixAutomata::Node*]'
operator[](key_type&& __k)
^
0_0_29539220_19609.cpp:46:33: error: invalid conversion from 'SuffixAutomata::Node*' to 'std::map<SuffixAutomata::Node*, int>::mapped_type {aka int}' [-fpermissive]
for(;p && !p->son[x];p->son[x]=nx,p=p->par);
^
0_0_29539220_19609.cpp:50:21: error: invalid conversion from 'int' to 'std::map<SuffixAutomata::Node*, int>::key_type {aka SuffixAutomata::Node*}' [-fpermissive]
Node *ox=p->son[x];
^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/map:61:0,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/x86_64-w64-mingw32/bits/stdc++.h:80,
from 0_0_29539220_19609.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_map.h:511:7: note: initializing argument 1 of 'std::map<_Key, _Tp, _Compare, _Alloc>::mapped_type& std::map<_Key, _Tp, _Compare, _Alloc>::operator[](std::map<_Key, _Tp, _Compare, _Alloc>::key_type&&) [with _Key = SuffixAutomata::Node*; _Tp = int; _Compare = std::less<SuffixAutomata::Node*>; _Alloc = std::allocator<std::pair<SuffixAutomata::Node* const, int> >; std::map<_Key, _Tp, _Compare, _Alloc>::mapped_type = int; std::map<_Key, _Tp, _Compare, _Alloc>::key_type = SuffixAutomata::Node*]'
operator[](key_type&& __k)
^
0_0_29539220_19609.cpp:50:21: error: invalid conversion from 'std::map<SuffixAutomata::Node*, int>::mapped_type {aka int}' to 'SuffixAutomata::Node*' [-fpermissive]
Node *ox=p->son[x];
^
0_0_29539220_19609.cpp:57:23: error: invalid conversion from 'int' to 'std::map<SuffixAutomata::Node*, int>::key_type {aka SuffixAutomata::Node*}' [-fpermissive]
for(;p && p->son[x]==ox;p->son[x]=o,p=p->par);
^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/map:61:0,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/x86_64-w64-mingw32/bits/stdc++.h:80,
from 0_0_29539220_19609.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_map.h:511:7: note: initializing argument 1 of 'std::map<_Key, _Tp, _Compare, _Alloc>::mapped_type& std::map<_Key, _Tp, _Compare, _Alloc>::operator[](std::map<_Key, _Tp, _Compare, _Alloc>::key_type&&) [with _Key = SuffixAutomata::Node*; _Tp = int; _Compare = std::less<SuffixAutomata::Node*>; _Alloc = std::allocator<std::pair<SuffixAutomata::Node* const, int> >; std::map<_Key, _Tp, _Compare, _Alloc>::mapped_type = int; std::map<_Key, _Tp, _Compare, _Alloc>::key_type = SuffixAutomata::Node*]'
operator[](key_type&& __k)
^
0_0_29539220_19609.cpp:57:26: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
for(;p && p->son[x]==ox;p->son[x]=o,p=p->par);
^
0_0_29539220_19609.cpp:57:37: error: invalid conversion from 'int' to 'std::map<SuffixAutomata::Node*, int>::key_type {aka SuffixAutomata::Node*}' [-fpermissive]
for(;p && p->son[x]==ox;p->son[x]=o,p=p->par);
^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/map:61:0,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/x86_64-w64-mingw32/bits/stdc++.h:80,
from 0_0_29539220_19609.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_map.h:511:7: note: initializing argument 1 of 'std::map<_Key, _Tp, _Compare, _Alloc>::mapped_type& std::map<_Key, _Tp, _Compare, _Alloc>::operator[](std::map<_Key, _Tp, _Compare, _Alloc>::key_type&&) [with _Key = SuffixAutomata::Node*; _Tp = int; _Compare = std::less<SuffixAutomata::Node*>; _Alloc = std::allocator<std::pair<SuffixAutomata::Node* const, int> >; std::map<_Key, _Tp, _Compare, _Alloc>::mapped_type = int; std::map<_Key, _Tp, _Compare, _Alloc>::key_type = SuffixAutomata::Node*]'
operator[](key_type&& __k)
^
0_0_29539220_19609.cpp:57:38: error: invalid conversion from 'SuffixAutomata::Node*' to 'std::map<SuffixAutomata::Node*, int>::mapped_type {aka int}' [-fpermissive]
for(;p && p->son[x]==ox;p->son[x]=o,p=p->par);
^
|