Write a C++ program to check whether the sequence of numbers 1, 2, 3 appears in a given array of integers somewhere. Sample ınput: Sample output: 1 0 1

Kod:Panoya kopyala #include <algorithm> #include <iostream> #include <sstream> #include <fstream> #include <iomanip> #include <string> #include <vector> #include <chrono> #include <array> using namespace std; int main { std::array<int, 5> arr ; if (count(arr. begin , arr. end , 1) && count(arr. begin , arr. end , 2) && count(arr. begin , arr. end , 3)) return 0; }