2
It seems thouGh
that without some dough
creating such a bash
is a weighty in terms of cash
But how I see
the problem so fair
is to write subtle verse
with hardly a rhyme
prog.cpp: In function ‘int main()’:
prog.cpp:13:58: error: no matching function for call to ‘transform(std::basic_string<char>::iterator, std::basic_string<char>::iterator, std::basic_string<char>::iterator, <unresolved overloaded function type>)’
transform(l[i].begin(),l[i].end(),l[i].begin(),tolower);
^
prog.cpp:13:58: note: candidates are:
In file included from /usr/include/c++/4.8/algorithm:62:0,
from prog.cpp:2:
/usr/include/c++/4.8/bits/stl_algo.h:4938:5: note: template<class _IIter, class _OIter, class _UnaryOperation> _OIter std::transform(_IIter, _IIter, _OIter, _UnaryOperation)
transform(_InputIterator __first, _InputIterator __last,
^
/usr/include/c++/4.8/bits/stl_algo.h:4938:5: note: template argument deduction/substitution failed:
prog.cpp:13:58: note: couldn't deduce template parameter ‘_UnaryOperation’
transform(l[i].begin(),l[i].end(),l[i].begin(),tolower);
^
In file included from /usr/include/c++/4.8/algorithm:62:0,
from prog.cpp:2:
/usr/include/c++/4.8/bits/stl_algo.h:4975:5: note: template<class _IIter1, class _IIter2, class _OIter, class _BinaryOperation> _OIter std::transform(_IIter1, _IIter1, _IIter2, _OIter, _BinaryOperation)
transform(_InputIterator1 __first1, _InputIterator1 __last1,
^
/usr/include/c++/4.8/bits/stl_algo.h:4975:5: note: template argument deduction/substitution failed:
prog.cpp:13:58: note: candidate expects 5 arguments, 4 provided
transform(l[i].begin(),l[i].end(),l[i].begin(),tolower);
^