this script is missed up help?

this script is supposed to make my charcter do certain animation on trigger enter, taken from here
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);

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

What errors are you geting?