prog.cpp: In function ‘int main()’:
prog.cpp:9:51: error: no matching function for call to ‘make_pair(int, const char [13], const char [10])’
tuple2 = make_pair(1,"Studytonight","Loves You");
^
In file included from /usr/include/c++/6/bits/stl_algobase.h:64:0,
from /usr/include/c++/6/bits/char_traits.h:39,
from /usr/include/c++/6/ios:40,
from /usr/include/c++/6/istream:38,
from /usr/include/c++/6/sstream:38,
from /usr/include/c++/6/complex:45,
from /usr/include/c++/6/ccomplex:39,
from /usr/include/x86_64-linux-gnu/c++/6/bits/stdc++.h:52,
from prog.cpp:1:
/usr/include/c++/6/bits/stl_pair.h:493:5: note: candidate: template<class _T1, class _T2> constexpr std::pair<typename std::__decay_and_strip<_Tp>::__type, typename std::__decay_and_strip<_T2>::__type> std::make_pair(_T1&&, _T2&&)
make_pair(_T1&& __x, _T2&& __y)
^~~~~~~~~
/usr/include/c++/6/bits/stl_pair.h:493:5: note: template argument deduction/substitution failed:
prog.cpp:9:51: note: candidate expects 2 arguments, 3 provided
tuple2 = make_pair(1,"Studytonight","Loves You");
^
prog.cpp:15:35: error: ‘pair2’ was not declared in this scope
tie(id,first_name,last_name) = pair2;
^~~~~