The declaration of int **seats[] in the function parameter is == int ***seats , and this means that the type *seats[i] is int* , and you assign it a number, that is, an incompatible error like:
*seats[i] = 1; ^ ^ int | int* incompatible types
Further in addRes(&seats);
seats in the array is a pointer of its type, if int*[50] , that &seat is an array pointer, and type &seat is int*(*)[50] Where is int *** as the argument type of the function, so again enter an incompatible error.
Note that you also get a reasonable error message from the compiler: Expected 'int ***' but argument is of type 'int * (*)[50]'.
Sentence:
As I can see in your code, you do not allocate memory for seats[i] in your addRes() function, and therefore, as I understand it, you do not need to declare the seat[] array as an array of pointers, but you need a simple int array.
Change declaration in main ():
int *seats[50] = {0};
should be simple:
int seats[50] = {0};
Next, simply pass seats[] the addRes() function array name, where the function declaration should be
addRes(int* seats) or addRes(int seats[])
it makes your work pretty simple in the addRes() function, you can access its elements as seats[i] (and there is no need to use the additional * operator).
Array Length:
Another conceptual problem in the code that you use sizeof(*seats) to find out the length of the array. It is not right! because in addRes() the seats function is not larger than an array, but a pointer, so it will give you the size of the address (but not the length of the array).
And yes, to report the size of the seats[] function in addRes() , send an extra parameter called length, so finally declare addRes() as follows (read the comments):
void addRes(int seats[], int length){
Call this function from main () as follows:
addRes(seats, 50); // no need to use &
Another problem that you currently do not encounter, but will soon encounter, is that you run the code that scanf () needs additional enter in the addRes() function. To solve this problem, change: scanf("%i\n", &s); like scanf("%i", &s); there is no need for an extra \n in the format string in scanf ().