I am trying to write code for Binary search program on a 2D vector. I tried code. But I can't understand what is the error I have got. I have given below my code and errors.
/usr/include/c++/4.6/bits/stl_algo.h:2416:4: error: no match for call to ‘(PPBINARY_ON) (std::vector<std::basic_string<char> >&, const char [9])’
note: bool PPBINARY_ON::operator()(const string&, const std::vector<std::basic_string<char> >&)
note: no known conversion for argument 1 from ‘std::vector<std::basic_string<char> >’ to ‘const string& {aka const std::basic_string<char>&}’
your going to have to forgive my lack of knowledge but if there is one thing im good at its reading errors and there are some things ive noticed: your compiler is g++ 4.6. could that be the problem? and as to the error: it looks like your trying to convert between vector<string> and string