0_0_32750026_24060.cpp: In function 'int main()':
0_0_32750026_24060.cpp:17:19: error: no matching function for call to 'std::map<int, int>::count(std::pair<const int, int>&)'
if (m.count(*it) % 2) {
^
0_0_32750026_24060.cpp:17:19: note: candidate is:
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/map:61:0,
from 0_0_32750026_24060.cpp:2:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_map.h:886:7: note: std::map<_Key, _Tp, _Compare, _Alloc>::size_type std::map<_Key, _Tp, _Compare, _Alloc>::count(const key_type&) const [with _Key = int; _Tp = int; _Compare = std::less<int>; _Alloc = std::allocator<std::pair<const int, int> >; std::map<_Key, _Tp, _Compare, _Alloc>::size_type = long long unsigned int; std::map<_Key, _Tp, _Compare, _Alloc>::key_type = int]
count(const key_type& __x) const
^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_map.h:886:7: note: no known conversion for argument 1 from 'std::pair<const int, int>' to 'const key_type& {aka const int&}'
0_0_32750026_24060.cpp:18:14: error: cannot bind 'std::ostream {aka std::basic_ostream<char>}' lvalue to 'std::basic_ostream<char>&&'
cout << *it << endl;
^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/iostream:39:0,
from 0_0_32750026_24060.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/ostream:602:5: note: initializing argument 1 of 'std::basic_ostream<_CharT, _Traits>& std::operator<<(std::basic_ostream<_CharT, _Traits>&&, const _Tp&) [with _CharT = char; _Traits = std::char_traits<char>; _Tp = std::pair<const int, int>]'
operator<<(basic_ostream<_CharT, _Traits>&& __os, const _Tp& __x)
^
|