Error was not declared in this scope after new computer (windows 11)

Thank you! I didn't know that! But the problem is solved!! Thanks everyone