multiple errors to do with this code

i recently began a unity course “create with code” where the video explained to move a vechicle you must use this code. multiple errors occur when i use this code although it is word for word on the video can somebody please help find where i have gone wrong thanks.

using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class PlayerController : MonoBehaviour
{
// Start is called before the first frame update
void Start()
{

}

// Update is called once per frame
void Update()
{
//moves the fucking tank
transform.Translate(Vector3.forward * Time.deltaTime * 20);

}
}

Double click the error in the console and it should highlight the line. When it says (5, 46) the error is on line 5 (or sometimes above that - depends on the type of error).

Here I don’t see any obvious errors. I would suspect there may be a non-standard look-alike symbol in place of the actual symbol but I don’t see any. Unless there’s an invalid whitespace character like alt+255.

Maybe delete that script and re-create it again, check every step if it compiles.

Seems odd it complains of line 5.

I fixed the script basically i had it saved in two locations