Run ❯
Get your
own
website
×
Change Orientation
Change Theme, Dark/Light
Go to Spaces
#include
#include
#include
using namespace std; int main() { vector
numbers = {1, 7, 3, 5, 9, 2}; vector
target = {3, 5, 9}; if (search(numbers.begin(), numbers.end(), target.begin(), target.end()) != numbers.end()) { cout << "Target was found"; } else { cout << "The target was not found"; } return 0; }
Target was found