Missing definitions and script error

This script makes an animated AI wander around a game object, however the console is displaying these errors and i have no idea how to fix them.

Here’s the script
using UnityEngine;
using System.Collections;

public class RandomWander : MonoBehaviour {

	public GameObject init;
	private Transform initpos;
	private float time = 10;
	private bool update = true;
 	public float radius;
	Animator anim;
	float lowX;
	float highX;
	float lowZ;
	float highZ;
	
	// Use this for initialization
	void Awake () {
		anim = gameObject.GetComponent <Animator>();
		initpos = init.GetComponent<Transform>();
   		lowX = initpos.x - radius;
   		highX = initpos.x + radius;
   		lowZ = initpos.z - radius;
   		highZ = initpos.z + radius;
	}
	
	// Update is called once per frame
	void Update () {
		if (update) {
			Vector3 pos = getRandomPos();
		}
		
		gameObject.LookAt(pos);
		
		if (gameObject.transform.position == pos){
			time -= Time.deltaTime;
			anim.SetBool("Walking", false);
			if (time <= 0.0f){
				update = true;
				time = 10.0f;
			}
		} else {
			transform.position += transform.forward * 0.2f;
			anim.SetBool("Walking", true);
		}
	}
	
	Vector3 getRandomPos(){
		Vector3 pos;
		pos.x = Random.Range(lowX, highX);
		pos.y = initpos.y;
		pos.z = Random.Range(lowZ, highZ);
		return pos;
	}
}

If anyone can resolve these issues it would be greatly appreciated.

When you are trying to read position values, you are trying to read them from the Transform type. It is wrong. Positions are in a Vector3 type named position inside Transform type. So, you need to use initpos.position.x instead of initpos.x.