Unable to change cube color

I just recently installed Unity personal (Free) and I’m unable to change the color of my cube after entering C# script and playing in game mode. Still unable to execute or change color when striking key R,G,B. Any ideas will be helpful. Is my Unity Personal missing features?

I also could not complete simple tutorials such as 3 minute game! On Youtube
www.youtube.com/watch?v=i30menw6gvU

Error = All compiler errors have to be fixed before you can enter playmode!
UnityEditor.SceneView:ShowCompileErrornotication()

using UnityEngine;
using System.Collections;

public class color : MonoBehaviour
{

// change colora
void Update ()

{
if(Input.GetKeyDown(KeyCode.R))

{

gameObject.renderer.material.color = Color.red;

}

if(Input.GetKeyDown(KeyCode.G))

{
gameObject.renderer.material.color = Color.green;

}

if(Input.GetKeyDown(KeyCode.B))

{

gameObject.renderer.material.color = Color.blue;

}

}
}

I’m not sure what shader you’re using, so I’ll assume you’re using the (default) Standard shader.

In the standard shader properties section, they declare the color property like so:

// shader properties are formatted like this: Name("description", dataType) = (value)
_Color("Color", Color) = (1,1,1,1)

You must access that property with it’s name, in this case “_Color”.

material.SetColor ("_Color", Color.red);