Getting an error

Can i get a reply …?

sorry i missed your doubt

you are getting error because
inside for loop you forgot to decrease t

it is a common mistake to avoid this
you can use it like this

while(t--){
// here t will be decreased automatically
}