0_0_26484605_27938.cpp: In function 'int main()':
0_0_26484605_27938.cpp:70:27: error: invalid conversion from 'int (*)(int)' to 'std::map<int, int>::key_type {aka int}' [-fpermissive]
if(!mp[findf[i]])
^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/map:61:0,
from 0_0_26484605_27938.cpp:7:
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 = int; _Tp = int; _Compare = std::less<int>; _Alloc = std::allocator<std::pair<const int, int> >; std::map<_Key, _Tp, _Compare, _Alloc>::mapped_type = int; std::map<_Key, _Tp, _Compare, _Alloc>::key_type = int]'
operator[](key_type&& __k)
^
0_0_26484605_27938.cpp:72:27: error: invalid conversion from 'int (*)(int)' to 'std::map<int, int>::key_type {aka int}' [-fpermissive]
mp[findf[i]]=1;
^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/map:61:0,
from 0_0_26484605_27938.cpp:7:
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 = int; _Tp = int; _Compare = std::less<int>; _Alloc = std::allocator<std::pair<const int, int> >; std::map<_Key, _Tp, _Compare, _Alloc>::mapped_type = int; std::map<_Key, _Tp, _Compare, _Alloc>::key_type = int]'
operator[](key_type&& __k)
^
|