//HOW CAN I CORRECT THE EROR IN THE SNIPPET BELOW?
#include<iostream>
#include<cstdlib>
#include<ctime>
using namespace std;
const int maxValue=9; const int minValue=0;
int main (){
int n,vd;
srand(time(0));
cout<<"Enter the number of vouchers to generate:\n";
cin>>n;
cout<<"Enter the number of voucher digits:"<<endl;
cin>>vd;
for(int x=1;x<=n; x++){
cout<<x<<"\t";
for(int y=sizeof(char); y<=vd; y++){
cout<<rand()%(maxValue-minValue+1)+minValue<<endl;
if(y%4==0)
cout<<" ";
}
cout<<endl;
}
return 0;
}