When you declare a variable with its default constructor, you do not put ()after it (although this is not necessary if you use newto allocate space in free storage). So this line:
std::vector<double> vec();
should become
std::vector<double> vec;
, , , , vec, std::vector<double>, .
, ( ). , , std::find:
if (std::find(vec.begin(), vec.end(), value) != vec.end())
, binary_search, , find, - , binary_search bool 't vec.end()). , algorithm, .