You will not learn C language by asking every single detail as you encounter a problem .
You really need to follow a few tutorials they are here to teach you how things works, you are not to follow blindly, you have to try to understand why things are done the way they are shown, to you.
For the title question:
See how you used
n
in your previous program, for the scan function.
scanf("%d", &n) ;
You used
&
to say that you want the adress of
n
. Why would it be otherwise in new program ?
scanf("%d", gross_sale[i]);
I let you guess what should be done.
This error is not the only one, use the debugger to see what is wrong.