this script is missed up help?

this script is supposed to make my charcter do certain animation on trigger enter, taken from here
https://gamedev.stackexchange.com/questions/111389/triggering-animation-in-character-ontriggerenter
i dont know how to fix its erroprs so pls help?
low coding skills

using UnityEngine;
using System.Collections;

public class boxponty : MonoBehaviour {

  public bool ShivaEnter;
  private GameObject player;
  private Animator anim;
  private AudioClip pontysound;

  // Use this for initialization
  void Start () {
  }

  // Update is called once per frame
  void Update () {
    anim = GetComponent<Animator>();
  }

  void OnTriggerEnter (Collider other){
    anim.SetBool ("ShivaEnter", true);
    GetComponent<AudioSource>().Play();
  }

  void OnTriggerExit (Collider other){
    anim.SetBool ("ShivaEnter", false);
  }
}

What errors are you geting?