why i am getting this errorr....

You must pass the component you want to get:

GetComponent<Rigidbody>().AddForce()