prog.cpp: In function ‘int main()’:
prog.cpp:5:45: error: no matching function for call to ‘make_pair(int&, int&)’
prog.cpp:5:45: note: candidate is:
In file included from /usr/include/c++/4.7/bits/stl_algobase.h:65:0,
from /usr/include/c++/4.7/bits/stl_tree.h:63,
from /usr/include/c++/4.7/map:60,
from prog.cpp:1:
/usr/include/c++/4.7/bits/stl_pair.h:268:5: note: template<class _T1, class _T2> constexpr std::pair<typename std::__decay_and_strip<_T1>::__type, typename std::__decay_and_strip<_T2>::__type> std::make_pair(_T1&&, _T2&&)
/usr/include/c++/4.7/bits/stl_pair.h:268:5: note: template argument deduction/substitution failed:
prog.cpp:5:45: note: cannot convert ‘a’ (type ‘int’) to type ‘int&&’
prog.cpp:5:45: error: unable to deduce ‘auto’ from ‘<expression error>’
prog.cpp:5:10: warning: unused variable ‘pair’ [-Wunused-variable]