I can't find why compiler is throwing error
#include <bits/stdc++.h>
using namespace std;
int main()
{
vector<vector<int>>vec;
for(int i=0;i<10;i++)
{
vector<int>veck;
for(int j=0;j<10;j++)
if(j==5)
veck.emplace_back(5);
else
veck.emplace_back(i);
vec.emplace_back(veck);
}
for(auto i:vec){
for(auto j:i)
cout<<j<<" ";
cout<<"\n";}
//-------------------------------
vector<int>vecx(5,4);
vecx.emplace_back(5);
for(auto i :vec)
{
auto itr=find(i.begin(),i.begin()+vecx.size(),vecx);
if(itr!=i.begin()+vecx.size())
cout<<"YES";
}
}
why it is not compiling... Can Someone assist me, I need to check whether any of the rows in vector-vec is containing vector-vecx..