CS1022 and other error's

So, I’m creating a game, I make one small change to my code, and BAM! I get hit with a ton of errors. I’ve tried going through them one by one to fix them, but nothing.
Here is the problem code for context,

using UnityEngine;

public class Movement : MonoBehaviour
{
    public Rigidbody2D rb;
    public float move = 50f;
    public float JumpHeight = 50f;
    public float moveJump = 0f;
    // Update is called once per frame
    void FixedUpdate()
    {
        public Collision wackit;
        if ( Input.GetKey("d") )
        {
            rb.AddForce(new Vector2(move, moveJump));
        }
        if ( Input.GetKey("a") )
        {
            rb.AddForce(new Vector2(-move, moveJump));
        }
        if (wackit.collider.tag == "Ground")
        {
            if ( Input.GetKey("w") )
            {
                rb.AddForce(new Vector2(moveJump, JumpHeight));
            }
        }
    }
}

If you can’t fix the errors while being able to see the error messages you think everyone else can do it without seeing the errors?

I see an error or two (line 12 you can’t have ‘public’ on a local variable) , but without seeing the error messages, I’m probably missing something.

most of the errors are cs1022’s, there are some cs1001’s, then
cs1513
cs1519
cs8124
cs1026
cs1031
and there’s 55 errors in total
p.s. thanks

I fixed the errors, but now when I go into play mode I get an error called NullReferenceException

As has already been said to you, we cannot help you fix issues if you don’t give us the errors. And when it was asked previously, providing just the error codes is basically useless for anyone to help you out. The full error message tells us the location of the issue.
But at a guess I’m going to say that you haven’t assigned a rigidbody to your public variable through the inspector yet.

i have, the line code thing says the error is at line 21,

       if (wackit.collider.tag == "Ground")

but i dont know why

How to report your problem productively in the Unity3D forums:

http://plbm.com/?p=220

How to understand compiler and other errors and even fix them yourself:

https://discussions.unity.com/t/824586/8

If you post a code snippet, ALWAYS USE CODE TAGS:

How to use code tags: https://discussions.unity.com/t/481379

The answer is always the same… ALWAYS. It is the single most common error ever.

Don’t waste your life spinning around and round on this error. Instead, learn how to fix it fast… it’s EASY!!

Some notes on how to fix a NullReferenceException error in Unity3D

  • also known as: Unassigned Reference Exception
  • also known as: Missing Reference Exception
  • also known as: Object reference not set to an instance of an object

http://plbm.com/?p=221

The basic steps outlined above are:

  • Identify what is null
  • Identify why it is null
  • Fix that.

Expect to see this error a LOT. It’s easily the most common thing to do when working. Learn how to fix it rapidly. It’s easy. See the above link for more tips.

This is the kind of mindset and thinking process you need to bring to this problem:

https://discussions.unity.com/t/814091/4

Step by step, break it down, find the problem.