c – when the user enters the line and the column should appear the number that he chose in the matrix

Good evening, I'm doing a system simulating a theater for college, but I'm
to find a problem, I ask for the coordinates of the user, line and column, but in the confirmation message
I wanted to put the number she chose from the coordinates because this array is numbered, but there are numbers
that there is nothing to see and numbers until they exceed the matrix, and that is what is missing to finalize my system.
if anyone can help me solve this problem, follow the code below vlw:

#include 

int is valid (int num, int * ant, int cont);
void edit (int sort, int cont);
void flameShort ();
void CadeiraNum (); // declare the function that fills places with numbers
void panel (); // declare the function that displays the array
void purchase (); // declare the function that makes the purchase of seats
void cad ();
int matrix[linha][coluna]; //
FILE * pointerArchive;
struct cadastro {
Character name [50];
char cpf [15];
character email [30];
};
struct cadastro aux;

int main () {
int option = 0;
int l;
int c;
Character name[30];
char timeStr[9];

struct tm * data_hora_atual;
time_t seconds;
time (& seconds);
date_time_time = local time (& seconds);

CadeiraNum (array); // complete here the function ChairNum (); place the numbers

make {
// from here the main options of the program are shown to the user
system ("cls");
printf (" n  n MENU  n  n");
printf ("1- Reserve President  n");
printf ("2- Show Dashboard Places  n");
printf ("3- Draw  n");
printf ("4- EXIT  n");
printf ("option:");
scanf ("% d", & option);

switch (option) {
case 1:
system ("cls");
cad ();
getch ();
system ("cls");
panel (matrix); // before choosing the place before and called the matrix and the user can see the panel, including the places of the purchased room updated.

text:
printf (" n  nEnter the desired chair line:");
scanf ("% i", & l);
printf (" n  nEnter the desired chair column:");
scanf ("% i", & c);

if ((l <= 2) || (l<=0) || (l>11)) {
printf ("This chair is busy or it does not exist! Choose another one!  n");
goto text;
getch ();
}
otherwise if ((l <= 2) && (c<=6)){
        printf("Esta cadeira esta ocupada, ou nao existe! Escolha outra!n");
        goto texto;
        getch();
      }
    else if((c>11) || (c<=0)){
        printf("Esta cadeira esta ocupada, ou nao existe! Escolha outra!n");
        goto texto;
        getch();
      }
    else if ((matriz[l][c]==222) || (matriz[l][c]==0) || (matriz[l][c]==333)){
        printf("Esta cadeira esta ocupada, ou nao existe! Escolha outra!n");
        goto texto;
        getch();
    }
    else (printf(" n"));

        compra(l,c);//a variavel l e c salva na matriz principal o lugar escolhido 

      //abertura de arquivo e leitura
      ponteiroArquivo=fopen("arquivo.txt","r"); 
      fgets(nomes,30,ponteiroArquivo);

      fclose(ponteiroArquivo);
      system("cls"); 

     _strtime( timeStr );
      printf_s( "tParabens %s pela sua compra no dia %d/%d/%d as %s nnSeu ticket sera enviado por e-mail!!n",aux.nome, data_hora_atual->tm_mday, current time -> tm_mon + 1, current time -> tm_year + 1900, timeStr);
printf ("your seat and% d  n", table[c][l])
system ("pause");
pause

case 2:
system ("cls");
system ("cls");
panel (array) // call the function panel containing the array
printf (" n  n");
system ("pause");
pause

case 3:
system ("cls");
flameShort ();
system ("pause");
pause

// the user choosing this case, the program does not return anything and closes
case 4:
returns 0;
pause

default:
printf ("OPTION INVALID !!!  n");
system ("pause");
pause
}

} while (1 == 1);

system ("pause");
return (0);
}

// This is the function responsible for filling all theater locations with numbers!
void CadeiraNum () {
int c, l;
int num;
num = 1;

for (l = 1; l <= line; l ++)
for (c = 1; c <= column; c ++) {
matrix[l][c]= num;
num ++;
}
matrix[3][1]= 333;
matrix[3][2]= 333;
matrix[3][3]= 333;
matrix[3][4]= 333;
matrix[3][5]= 333;
matrix[3][6]= 333;
/ ** /
matrix[1][1]= 222;
matrix[1][2]= 222;
matrix[1][3]= 222;
matrix[1][4]= 222;
matrix[1][5]= 222;
matrix[1][6]= 222;
matrix[1][7]= 222;
matrix[1][8]= 222;
matrix[1][9]= 222;
matrix[1][10]= 222;
matrix[1][11]= 222;
/ ** /
matrix[2][1]= 222;
matrix[2][2]= 222;
matrix[2][3]= 222;
matrix[2][4]= 222;
matrix[2][5]= 222;
matrix[2][6]= 222;
matrix[2][7]= 222;
matrix[2][8]= 222;
matrix[2][9]= 222;
matrix[2][10]= 222;
matrix[2][11]= 222;   

}

// this is the function that creates the rows and columns of the parent theater
empty panel () {

int c, l;
printf (" n OCCUPANCY PANEL n n");
printf ("");

for (c = 1; c <= column; c ++)
printf (" t% d", c);

for (l = 1; l <= line; l ++) {
printf (" n n t% d", l);
for (c = 1; c <= column; c ++)
if[l][c]== 222) {
printf (" t (R)");
} else if[l][c]== 0) {
printf (" t (C)");
} else if[l][c]== 333) {
printf (" t (P)");
} else printf (" t (% d)", array[l][c])

}
printf (" n n t (29-121) – FREE PLACE (p) – Preferred Seat (C) – PRESIDENT I PURCHASED (R) PRESIDENT RESERVED n");
}

// function that marks the place chosen in the value 0 while keeping the place
null purchase (int l, int c) {

matrix[l][c]    = 0;

}
void cad () {

pointArchive = (fopen ("file.txt", "a")); // "a" - creates a new file or modifies an existing file.
getchar ();
printf (" t  t WELCOME TO THE UNIP THEATER!  n  n");
printf ("Before buying the wheelchair, briefly record ........  n  npress ENTER to continue ......  n  n  n");
getch ();
printf ("Enter your name:");
fgets (aux.name, 50, stdin);

getchar ();
printf ("Enter your CPF:");
fgets (aux.cpf, 15, stdin);

getchar ();
printf ("Enter your email:");
fgets (aux.email, 30, stdin);

// write with fprintf in the file
printf (" n");

fprintf (pointerFile, " n ------------------------  n");
fprintf (pointerFile, "name:% s  n", aux.name);
fprintf (pointerFile, "CPF:% s  n", aux.cpf);
fprintf (pointerFile, "Email:% s  n", aux.email);

fclose (pointerFile); // close the file

}
void flameShort () {
int i;
int draw[4];

srand (time (NULL));

printf ("--------- | DRAWING  n  n");

for (i = 0; i <4; i ++)
drawn[i] = min_value + rand ()% (max_value-min_value);
if (i == 0) {
edit[i], i);
}
if not {
drawn[i] = valid (pulled[i], drawn, i);
edit[i], i);
}
}
printf ("------------------------------------------");
getch ();
printf (" nParabens to all the winners !!  n  n");
getch ();

}

valid int (int num, int * ant, int cont) {
int aux;

for (aux = 0; to <cont; to ++) {
while (num == * (ant + aux)) {
num = min_value + rand ()% (max_value-min_value);
}
}
return num;

}
void edit (int sort, int cont) {

                printf (" t% d awarded users:% .2d  n", cont + 1, sort);        

}