I am getting a error when clicking build and run option but when I start play in unity itself no error occur

Please help me see the error occurs

Hello!

You have namespace errors in your code.
Click on the namespace errors unity will open visual studio and show you the error line.
,
Remove the wrong

using “namespace”

lines in your code