Cant build game due to compile errors

I dont know if this is where i put this.
Im trying to build my game and… “Error building Player because scripts have compile errors in the editor” and nothing more… So i have no idea what the problem is.
Im using two scripts in my game:

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
public class Playermovement : MonoBehaviour {

    public float MovementSpeedForward;
    public float MovementSpeedHorizontal;
    public Text countText;
    public Text winText;

    private Rigidbody rb;
    private int count;

    // Use this for initialization
    void Start()
    {
        rb = GetComponent<Rigidbody>();
        count = 0;
        SetCountText();
        winText.text = "";
    }
   
    // Update is called once per frame
    void FixedUpdate ()
    {
        transform.Translate(Vector3.forward * Time.deltaTime * MovementSpeedForward);

        if (Input.GetKey(KeyCode.A))
            transform.Translate(Vector3.left * Time.deltaTime * MovementSpeedHorizontal);

        if (Input.GetKey(KeyCode.D))
            transform.Translate(Vector3.right * Time.deltaTime * MovementSpeedHorizontal);
    }

    void OnTriggerEnter(Collider other)
    {
        if (other.gameObject.CompareTag("Pickup"))
        {
            other.gameObject.SetActive(false);
            count = count + 1;
            SetCountText();
        }
        if (other.gameObject.CompareTag("Goal"))
        {
            other.gameObject.SetActive(false);
            winText.text = "You got: " + count.ToString();
        }
    }

    void SetCountText()
    {
        countText.text = "Points: " + count.ToString();
    }
}
using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class Rotate_pickup : MonoBehaviour {
   
    // Update is called once per frame
    void Update ()
    {
        transform.Rotate(new Vector3(15, 30, 45) * Time.deltaTime);
    }
}

Please help…

Doesn’t your console show any errors? You should be able to click on an error to see its call stack.

As mentioned you have to check what errors you get in the console view.

If you want more help then maybe attach your project file.

I feel like you may need to read this page.

Lighting data asset ‘LightingData’ is incompatible with the current Unity version. Please use Generate Lighting to rebuild the lighting data. Realtime Global Illumination cannot be used until the lighting data is rebuilt.
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)

that is my error :frowning: pls help

hye can you help whith my error?

UnityEditor.BuildPlayerWindow+BuildMethodException: 2 errors
at UnityEditor.BuildPlayerWindow+DefaultBuildMethods.BuildPlayer (UnityEditor.BuildPlayerOptions options) [0x00234] in C:\buildslave\unity\build\Editor\Mono\BuildPlayerWindowBuildMethods.cs:191
at UnityEditor.BuildPlayerWindow.CallBuildMethods (System.Boolean askForBuildLocation, UnityEditor.BuildOptions defaultBuildOptions) [0x0007f] in C:\buildslave\unity\build\Editor\Mono\BuildPlayerWindowBuildMethods.cs:97
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)