Variable or argument is not defiend in the current scope

Yes, I have tried to reintialize the variable. But it doesn’t work.