#include <algorithm>#include <cassert>#include <complex>#include <iostream>#include <vector>intmain(){constautohaystack={1,3,4,5,9};for(constautoneedle:{1,2,3}){std::cout<<"Searching for "<<needle<<'\n';if(std::binary_search(haystack.begin(), haystack.end(), needle))std::cout...