[ Foro de C ]

sudoku en c

03-Mar-2020 22:30
lautaro lopez
2 Respuestas

hola como va, tengo un problema con el sudoku que estoy tratando de armar, y ya me queme los pelos no se como arreglarlo,


cuando ingreso el valor al tablero se estropea todo no se como acomodarlo, alguna idea?
ACA VA EL CODIGO:


#include <stdio.h>
#define SIZE 9


//funciones
void iniciareasy(char * n[]);
void iniciarmedium(int * n[]);
void iniciarhard(int * n[]);
void cargar(char * n[]);



int main()

    {
        //variables
        int dificultad=0;
        int t [SIZE][SIZE];
        int m;


        //codigo
        printf("\t\t Bienvenidos a sudoku \n");
        printf("elija su dificultad: \n (1) Easy. \n (2) Medium.\n (3) Hard.");
        printf ("\n opcion: ");

        do//validacion entrada difcultad
            {
                dificultad= getchar();

            }while (dificultad != '1' && dificultad != '2' && dificultad != '3');


        switch (dificultad){

                case '1':
                    system("cls");
                    printf("dificultad seleccionada: Easy. \n");
                    printf("ayudas: 3. \n");
                    iniciareasy(t);
                    cargar(t);

                break;

                case '2':
                    system("cls");
                    printf("dificultad seleccionada: Medium. \n");
                    printf("ayudas: 4. \n");
                    iniciarmedium(t);
                    cargar(t);

                break;

                case '3':
                    system("cls");
                    printf("dificultad seleccionada: Hard. \n");
                    printf("ayudas: 5. \n");
                    iniciarhard(t);
                    cargar(t);

                break;


            }
             return 0;
    }


    //funciones


void iniciareasy(char * n[])
    {
        int f,c,i,j,nrotablero;
        char m;
        char t [SIZE][SIZE];

        for (int i=0;i<SIZE;i++)//filas
            {
                for (int j=0;j<SIZE;j++)//columnas
                    {
                        t [j][i] =  '0';

                    }
            }//FINALIZA INICIACION A 0

        printf(" elija su tablero de juego (1..10)");
        do//validacion numero de tablero
        {
            nrotablero= getchar();

        }while (nrotablero != '1' && nrotablero != '2' && nrotablero != '3' && nrotablero != '4' && nrotablero != '5' && nrotablero != '6' && nrotablero != '7' && nrotablero != '8' && nrotablero != '9' && nrotablero != '10');



            switch (nrotablero){

                case '1':

                    t[0][1]= '1', t[1][4]= '8', t[2][0]= '2', t[2][3]= '3',
                    t[2][4]= '9', t[2][8]= '6', t[3][0]= '5', t[3][3]= '8',
                    t[3][7]= '4', t[3][8]= '9', t[4][1]= '9', t[4][4]= '1',
                    t[4][6]= '3', t[4][7]= '6', t[5][6]= '7', t[5][8]= '1',
                    t[6][1]= '3', t[6][3]= '2', t[6][5]= '5', t[6][8]= '7',
                    t[7][0]= '7', t[7][2]= '5', t[7][4]= '6', t[8][2]= '6',
                    t[8][3]= '7', t[8][7]= '9';

                break;

                case '2':

                    t[1][4]= 3, t[1][5]= 6, t[2][2]= 3, t[2][3]= 6,
                    t[2][5]= 7, t[2][8]= 5, t[3][3]= 8, t[3][6]= 5,
                    t[3][9]= 9, t[4][2]= 8, t[4][7]= 3, t[4][8]= 4,
                    t[5][3]= 7, t[5][4]= 5, t[6][2]= 4, t[6][3]= 2,
                    t[6][5]= 9, t[6][6]= 7, t[7][5]= 4, t[7][8]= 9,
                    t[8][1]= 7, t[8][6]= 1, t[8][7]= 2, t[8][9]= 3,
                    t[9][1]= 1, t[9][2]= 9, t[9][3]= 5, t[9][5]= 8;

                break;


                case '3':

                    t[1][4]= 3, t[1][5]= 6, t[2][2]= 3, t[2][3]= 6,
                    t[2][5]= 7, t[2][8]= 5, t[3][3]= 8, t[3][6]= 5,
                    t[3][9]= 9, t[4][2]= 8, t[4][7]= 3, t[4][8]= 4,
                    t[5][3]= 7, t[5][4]= 5, t[6][2]= 4, t[6][3]= 2,
                    t[6][5]= 9, t[6][6]= 7, t[7][5]= 4, t[7][8]= 9,
                    t[8][1]= 7, t[8][6]= 1, t[8][7]= 2, t[8][9]= 3,
                    t[9][1]= 1, t[9][2]= 9, t[9][3]= 5, t[9][5]= 8;

                break;

                case '4':

                    t[1][4]= 7, t[1][6]= 6, t[1][8]= 2, t[1][9]= 3,
                    t[2][1]= 6, t[2][6]= 1, t[2][7]= 5, t[3][5]= 5,
                    t[3][7]= 4, t[3][9]= 7, t[4][6]= 2, t[4][9]= 6,
                    t[5][2]= 2, t[5][4]= 6, t[5][6]= 7, t[5][9]= 1,
                    t[6][2]= 8, t[6][4]= 9, t[6][8]= 5, t[7][1]= 4,
                    t[7][4]= 1, t[7][7]= 9, t[8][2]= 5, t[8][5]= 2,
                    t[8][6]= 9, t[9][7]= 3;

                break;

                case '5':

                    t[1][1]= 2, t[1][4]= 1, t[1][7]= 3, t[1][8]= 4,
                    t[2][5]= 8, t[2][7]= 6, t[2][9]= 1, t[3][8]= 5,
                    t[4][2]= 2, t[4][4]= 4, t[5][1]= 1, t[5][3]= 8,
                    t[5][4]= 3, t[5][6]= 6, t[5][7]= 7, t[6][1]= 6,
                    t[6][2]= 7, t[6][5]= 9, t[6][6]= 2, t[6][7]= 1,
                    t[7][2]= 5, t[7][3]= 6, t[7][9]= 8, t[8][2]= 9,
                    t[8][3]= 3, t[9][6]= 4;

                break;

                case '6':

                    t[1][1]= 3, t[1][2]= 5, t[1][5]= 9, t[1][6]= 7,
                    t[2][3]= 9, t[2][8]= 5, t[3][1]= 7, t[3][2]= 8,
                    t[3][4]= 3, t[5][3]= 2, t[5][4]= 9, t[5][8]= 8,
                    t[6][3]= 8, t[6][7]= 2, t[6][8]= 4, t[6][9]= 1,
                    t[7][1]= 6, t[7][4]= 7, t[7][7]= 5, t[7][8]= 2,
                    t[8][3]= 4, t[8][8]= 6, t[9][1]= 9, t[9][6]= 4,
                    t[9][7]= 8;

                break;

                case '7':

                    t[1][1]= 8, t[1][2]= 9, t[1][4]= 4, t[1][7]= 5,
                    t[1][8]= 7, t[2][7]= 2, t[3][3]= 7, t[3][8]= 6,
                    t[3][9]= 1, t[4][2]= 8, t[4][4]= 2, t[4][9]= 6,
                    t[5][2]= 2, t[5][3]= 5, t[5][6]= 1, t[5][7]= 8,
                    t[7][9]= 2, t[8][1]= 6, t[8][2]= 1, t[8][5]= 5,
                    t[8][8]= 8, t[9][1]= 7, t[9][4]= 3, t[9][6]= 6,
                    t[9][8]= 4;


                break;

                case '8':

                    t[1][5]= 9, t[1][7]= 6, t[1][9]= 5, t[2][1]= 4,
                    t[2][5]= 6, t[2][8]= 3, t[3][4]= 1, t[3][5]= 2,
                    t[3][9]= 9, t[4][2]= 4, t[4][4]= 7, t[4][6]= 2,
                    t[4][8]= 5, t[5][3]= 3, t[5][7]= 9, t[5][8]= 1,
                    t[6][2]= 8, t[6][5]= 1, t[6][7]= 2, t[7][1]= 7,
                    t[7][2]= 6, t[7][5]= 8, t[7][7]= 1, t[7][8]= 9,
                    t[8][3]= 8, t[8][4]= 4, t[8][7]= 5, t[9][1]= 9;

                break;

                case '9':

                    t[1][1]= 1, t[1][2]= 2, t[1][3]= 6, t[1][5]= 8,
                    t[2][5]= 4, t[2][7]= 2, t[3][6]= 3, t[4][5]= 1,
                    t[4][6]= 8, t[4][7]= 9, t[4][8]= 5, t[5][2]= 6,
                    t[5][6]= 2, t[5][9]= 3, t[6][2]= 4, t[6][3]= 9,
                    t[7][1]= 7, t[7][2]= 8, t[7][5]= 2, t[8][3]= 3,
                    t[8][5]= 7, t[8][9]= 4, t[9][1]= 9, t[9][4]= 6,
                    t[9][8]= 7, t[9][9]= 5;

                break;

                case '10':

                    t[1][2]= 9, t[1][3]= 6, t[1][6]= 7, t[2][1]= 5,
                    t[2][9]= 4, t[3][3]= 7, t[3][4]= 9, t[3][5]= 1,
                    t[3][7]= 6, t[3][9]= 3, t[4][3]= 3, t[4][8]= 5,
                    t[5][3]= 8, t[5][4]= 3, t[5][8]= 4, t[5][9]= 2,
                    t[7][5]= 4, t[7][8]= 8, t[8][1]= 2, t[8][6]= 1,
                    t[8][8]= 3, t[8][9]= 5, t[9][1]= 4, t[9][2]= 6,
                    t[9][5]= 9;

                break;
            }

                        printf("\t TABLERO \n");
                        printf("   1 2 3 | 4 5 6 | 7 8 9\n1");
                        printf("  %c %c %c | %c %c %c | %c %c %c \n2",t[0][0],t[0][1],t[0][2],t[0][3],t[0][4],t[0][5],t[0][6],t[0][7],t[0][8]);
                        printf("  %c %c %c | %c %c %c | %c %c %c \n3",t[1][0],t[1][1],t[1][2],t[1][3],t[1][4],t[1][5],t[1][6],t[1][7],t[1][8]);
                        printf("  %c %c %c | %c %c %c | %c %c %c \n", t[2][0],t[2][1],t[2][2],t[2][3],t[2][4],t[2][5],t[2][6],t[2][7],t[2][8]);
                        printf("  -------+-------+-------\n4");
                        printf("  %c %c %c | %c %c %c | %c %c %c \n5",t[3][0],t[3][1],t[3][2],t[3][3],t[3][4],t[3][5],t[3][6],t[3][7],t[3][8]);
                        printf("  %c %c %c | %c %c %c | %c %c %c \n6",t[4][0],t[4][1],t[4][2],t[4][3],t[4][4],t[4][5],t[4][6],t[4][7],t[4][8]);
                        printf("  %c %c %c | %c %c %c | %c %c %c \n", t[5][0],t[5][1],t[5][2],t[5][3],t[5][4],t[5][5],t[5][6],t[5][7],t[5][8]);
                        printf("  -------+-------+-------\n7");
                        printf("  %c %c %c | %c %c %c | %c %c %c \n8",t[6][0],t[6][1],t[6][2],t[6][3],t[6][4],t[6][5],t[6][6],t[6][7],t[6][8]);
                        printf("  %c %c %c | %c %c %c | %c %c %c \n9",t[7][0],t[7][1],t[7][2],t[7][3],t[7][4],t[7][5],t[7][6],t[7][7],t[7][8]);
                        printf("  %c %c %c | %c %c %c | %c %c %c \n", t[8][0],t[8][1],t[8][2],t[8][3],t[8][4],t[8][5],t[8][6],t[8][7],t[8][8]);


    }

void iniciarmedium(int * n[])
    {
        int f,c,i,j,nrotablero;
        char m;
        int t [SIZE][SIZE];

        for (int i=1;i<SIZE;i++)//filas
            {
                for (int j=1;j<SIZE;j++)//columnas
                    {
                        t [j][i] =  0;

                    }
            }//FINALIZA INICIACION A 0

        printf(" elija su tablero de juego (1..10)");
        do//validacion numero de tablero
        {
            nrotablero= getchar();

        }while (nrotablero != '1' && nrotablero != '2' && nrotablero != '3' && nrotablero != '4' && nrotablero != '5' && nrotablero != '6' && nrotablero != '7' && nrotablero != '8' && nrotablero != '9' && nrotablero != '10');



            switch (nrotablero){

                case '1':

                    t[1][2]= 8, t[1][8]= 9, t[1][9]= 4, t[2][3]= 5,
                    t[2][4]= 2, t[2][6]= 7, t[2][9]= 6, t[3][1]= 3,
                    t[4][1]= 1, t[4][2]= 9, t[4][3]= 3, t[3][7]= 4,
                    t[5][6]= 5, t[5][7]= 8, t[6][2]= 6, t[6][5]= 3,
                    t[7][2]= 2, t[7][3]= 4, t[7][9]= 3, t[8][5]= 6,
                    t[8][6]= 1, t[8][8]= 8;

                break;

                case '2':

                    t[1][5]= 6, t[2][1]= 8, t[2][3]= 5, t[2][4]= 7,
                    t[2][8]= 6, t[3][2]= 2, t[3][6]= 1, t[3][7]= 7,
                    t[4][2]= 4, t[4][3]= 2, t[5][2]= 1, t[5][4]= 8,
                    t[6][5]= 5, t[6][8]= 4, t[7][3]= 9, t[7][5]= 1,
                    t[8][3]= 4, t[8][6]= 8, t[8][9]= 6, t[9][4]= 9,
                    t[9][6]= 3, t[9][8]= 5;

                break;


                case '3':

                    t[1][3]= 4, t[2][7]= 3, t[3][1]= 6, t[3][3]= 8,
                    t[3][5]= 3, t[3][8]= 2, t[3][9]= 5, t[4][2]= 6,
                    t[4][5]= 1, t[4][7]= 7, t[5][4]= 7, t[5][8]= 5,
                    t[6][1]= 5, t[6][4]= 2, t[6][7]= 9, t[7][3]= 6,
                    t[7][4]= 4, t[8][2]= 4, t[8][3]= 9, t[8][4]= 6,
                    t[8][9]= 8, t[9][6]= 2, t[9][8]= 3;

                break;

                case '4':

                    t[1][3]= 8, t[2][2]= 3, t[2][5]= 5, t[3][4]= 3,
                    t[3][6]= 7, t[4][3]= 1, t[4][7]= 5, t[4][9]= 8,
                    t[5][1]= 5, t[5][3]= 7, t[5][4]= 9, t[5][6]= 8,
                    t[5][7]= 6, t[6][2]= 9, t[7][2]= 1, t[7][4]= 7,
                    t[7][9]= 4, t[8][2]= 4, t[8][5]= 1, t[8][7]= 8,
                    t[8][9]= 6, t[9][6]= 5, t[9][8]= 2;

                break;

                case '5':

                    t[1][1]= 3, t[1][3]= 1, t[1][6]= 4, t[2][2]= 2,
                    t[2][9]= 3, t[3][3]= 6, t[3][4]= 5, t[3][8]= 4,
                    t[3][9]= 1, t[4][2]= 1, t[4][3]= 7, t[4][4]= 8,
                    t[4][6]= 2, t[4][9]= 4, t[5][5]= 6, t[5][7]= 2,
                    t[6][1]= 6, t[6][8]= 1, t[6][9]= 7, t[7][2]= 5,
                    t[7][5]= 9, t[8][6]= 5, t[8][8]= 6, t[9][1]= 4;

                break;

                case '6':

                    t[1][3]= 9, t[1][6]= 1, t[1][9]= 2, t[2][1]= 8,
                    t[2][3]= 6, t[2][6]= 9, t[3][2]= 7, t[3][5]= 3,
                    t[3][6]= 4, t[4][3]= 3, t[5][4]= 9, t[5][7]= 8,
                    t[6][2]= 9, t[6][4]= 2, t[6][5]= 4, t[6][7]= 5,
                    t[7][2]= 5, t[7][8]= 3, t[8][2]= 4, t[8][3]= 8,
                    t[8][5]= 5, t[8][7]= 2, t[8][9]= 9, t[9][7]= 1;

                break;

                case '7':

                    t[1][4]= 2, t[1][8]= 1, t[1][9]= 5, t[2][2]= 3,
                    t[2][3]= 9, t[2][7]= 6, t[3][4]= 5, t[4][6]= 7,
                    t[4][9]= 9, t[5][3]= 3, t[5][4]= 6, t[6][1]= 8,
                    t[6][3]= 7, t[6][4]= 1, t[6][5]= 2, t[6][6]= 5,
                    t[7][2]= 8, t[7][8]= 2, t[8][7]= 4, t[9][1]= 2,
                    t[9][5]= 7, t[9][8]= 6;

                break;

                case '8':

                    t[1][8]= 5, t[1][9]= 9, t[2][5]= 1, t[2][6]= 9,
                    t[2][9]= 7, t[3][1]= 3, t[3][5]= 2, t[4][3]= 1,
                    t[4][6]= 4, t[5][3]= 9, t[5][4]= 7, t[5][7]= 3,
                    t[6][3]= 2, t[6][5]= 5, t[7][1]= 4, t[7][8]= 1,
                    t[8][1]= 6, t[8][5]= 7, t[8][9]= 5, t[9][3]= 3,
                    t[9][7]= 4, t[9][9]= 6;

                break;

                case '9':

                    t[1][4]= 3, t[1][5]= 2, t[1][6]= 6, t[2][7]= 7,
                    t[3][3]= 1, t[3][4]= 5, t[3][8]= 4, t[5][2]= 8,
                    t[5][8]= 9, t[6][4]= 7, t[6][6]= 1, t[6][8]= 3,
                    t[6][9]= 2, t[7][1]= 3, t[8][2]= 9, t[8][4]= 4,
                    t[8][7]= 6, t[8][8]= 7, t[9][1]= 6, t[9][5]= 5,
                    t[9][7]= 8;

                break;

                case '10':

                    t[1][1]= 2, t[2][5]= 4, t[2][6]= 9, t[3][3]= 1,
                    t[3][4]= 3, t[3][9]= 6, t[4][1]= 6, t[4][2]= 8,
                    t[4][3]= 3, t[4][8]= 7, t[5][4]= 6, t[5][9]= 5,
                    t[6][1]= 7, t[6][5]= 2, t[7][1]= 3, t[7][9]= 9,
                    t[8][2]= 7, t[8][4]= 8, t[8][5]= 1, t[8][8]= 2,
                    t[9][2]= 5, t[9][5]= 6, t[9][9]= 8;

                break;
            }

                        printf("\t TABLERO \n");
                        printf("   1 2 3 | 4 5 6 | 7 8 9\n1");
                        printf("  %d %c %c | %c %c %c | %c %c %c \n2",t[0][0],t[0][1],t[0][2],t[0][3],t[0][4],t[0][5],t[0][6],t[0][7],t[0][8]);
                        printf("  %c %c %c | %c %c %c | %c %c %c \n3",t[1][0],t[1][1],t[1][2],t[1][3],t[1][4],t[1][5],t[1][6],t[1][7],t[1][8]);
                        printf("  %c %c %c | %c %c %c | %c %c %c \n", t[2][0],t[2][1],t[2][2],t[2][3],t[2][4],t[2][5],t[2][6],t[2][7],t[2][8]);
                        printf("  -------+-------+-------\n4");
                        printf("  %c %c %c | %c %c %c | %c %c %c \n5",t[3][0],t[3][1],t[3][2],t[3][3],t[3][4],t[3][5],t[3][6],t[3][7],t[3][8]);
                        printf("  %c %c %c | %c %c %c | %c %c %c \n6",t[4][0],t[4][1],t[4][2],t[4][3],t[4][4],t[4][5],t[4][6],t[4][7],t[4][8]);
                        printf("  %c %c %c | %c %c %c | %c %c %c \n", t[5][0],t[5][1],t[5][2],t[5][3],t[5][4],t[5][5],t[5][6],t[5][7],t[5][8]);
                        printf("  -------+-------+-------\n7");
                        printf("  %c %c %c | %c %c %c | %c %c %c \n8",t[6][0],t[6][1],t[6][2],t[6][3],t[6][4],t[6][5],t[6][6],t[6][7],t[6][8]);
                        printf("  %c %c %c | %c %c %c | %c %c %c \n9",t[7][0],t[7][1],t[7][2],t[7][3],t[7][4],t[7][5],t[7][6],t[7][7],t[7][8]);
                        printf("  %c %c %c | %c %c %c | %c %c %c \n", t[8][0],t[8][1],t[8][2],t[8][3],t[8][4],t[8][5],t[8][6],t[8][7],t[8][8]);


    }

void iniciarhard(int * n[])
    {
        int f,c,i,j,nrotablero;
        char m;
        int t [SIZE][SIZE];

        for (int i=1;i<SIZE;i++)//filas
            {
                for (int j=1;j<SIZE;j++)//columnas
                    {
                        t [j][i] =  0;

                    }
            }//FINALIZA INICIACION A 0

        printf(" elija su tablero de juego (1..10)");
        do//validacion numero de tablero
        {
            nrotablero= getchar();

        }while (nrotablero != '1' && nrotablero != '2' && nrotablero != '3' && nrotablero != '4' && nrotablero != '5' && nrotablero != '6' && nrotablero != '7' && nrotablero != '8' && nrotablero != '9' && nrotablero != '10');



            switch (nrotablero){

                case '1':

                    t[1][1]= 2, t[1][6]= 8, t[1][9]= 5, t[2][2]= 4,
                    t[2][5]= 3, t[2][6]= 9, t[3][2]= 9, t[3][3]= 8,
                    t[3][4]= 1, t[3][6]= 2, t[3][7]= 3, t[4][4]= 8,
                    t[4][6]= 3, t[4][7]= 5, t[5][1]= 5, t[5][4]= 2,
                    t[5][7]= 6, t[6][3]= 9, t[6][8]= 2, t[6][9]= 1,
                    t[7][2]= 3, t[7][3]= 6, t[7][5]= 2, t[7][7]= 4,
                    t[8][5]= 1, t[8][6]= 6, t[8][9]= 9, t[9][1]= 9,
                    t[9][4]= 4, t[9][7]= 2;

                break;

                case '2':

                    t[1][3]= 9, t[1][5]= 8, t[1][9]= 3, t[2][1]= 3,
                    t[2][6]= 7, t[2][8]= 6, t[3][1]= 5, t[3][2]= 2,
                    t[4][5]= 5, t[4][6]= 1, t[4][7]= 2, t[4][9]= 7,
                    t[5][5]= 9, t[5][7]= 4, t[6][1]= 8, t[6][9]= 5,
                    t[7][1]= 4, t[7][2]= 7, t[7][3]= 5, t[7][5]= 1,
                    t[8][3]= 6, t[8][5]= 2, t[8][7]= 9, t[8][8]= 3,
                    t[9][7]= 7, t[9][9]= 1;
                break;


                case '3':

                    t[1][1]= 6, t[1][4]= 5, t[1][6]= 2, t[1][8]= 9,
                    t[2][5]= 7, t[2][7]= 1, t[3][4]= 9, t[3][6]= 4,
                    t[3][7]= 6, t[3][8]= 8, t[4][2]= 4, t[4][6]= 5,
                    t[4][9]= 2, t[5][2]= 8, t[6][1]= 1, t[7][2]= 2,
                    t[7][3]= 7, t[7][9]= 9, t[8][3]= 9, t[8][5]= 3,
                    t[8][8]= 6, t[9][1]= 5, t[9][6]= 7;

                break;

                case '4':

                    t[1][4]= 6, t[1][6]= 2, t[2][3]= 6, t[2][8]= 3,
                    t[2][9]= 7, t[3][2]= 4, t[3][5]= 5, t[3][6]= 8,
                    t[3][8]= 2, t[4][3]= 5, t[4][5]= 3, t[4][9]= 8,
                    t[5][6]= 9, t[6][6]= 4, t[6][7]= 2, t[7][3]= 8,
                    t[7][6]= 1, t[7][8]= 6, t[8][3]= 7, t[9][2]= 3,
                    t[9][5]= 4, t[9][7]= 8;
                        break;

                case '5':

                    t[1][8]= 3, t[2][1]= 1, t[2][2]= 8, t[2][5]= 9,
                    t[2][6]= 6, t[3][5]= 8, t[3][7]= 5, t[4][1]= 7,
                    t[4][8]= 5, t[5][3]= 9, t[5][6]= 2, t[5][7]= 7,
                    t[6][1]= 2, t[6][2]= 5, t[7][2]= 4, t[7][3]= 5,
                    t[7][5]= 6, t[8][7]= 2, t[8][8]= 1, t[9][3]= 1,
                    t[9][4]= 4, t[9][7]= 8;

                break;

                case '6':

                    t[2][1]= 6, t[2][2]= 7, t[2][5]= 4, t[2][7]= 3,
                    t[2][8]= 8, t[3][1]= 8, t[3][6]= 2, t[3][7]= 6,
                    t[4][1]= 5, t[4][4]= 4, t[4][7]= 8, t[5][5]= 2,
                    t[6][3]= 4, t[6][6]= 1, t[7][5]= 3, t[7][7]= 9,
                    t[8][2]= 5, t[8][5]= 9, t[8][6]= 6, t[8][8]= 1,
                    t[9][3]= 1, t[9][6]= 5, t[9][9]= 8;

                break;

                case '7':

                    t[1][1]= 1, t[1][2]= 7, t[1][7]= 8, t[2][3]= 8,
                    t[2][4]= 7, t[2][5]= 4, t[2][6]= 9, t[3][8]= 5,
                    t[4][8]= 4, t[4][9]= 9, t[5][2]= 9, t[5][5]= 1,
                    t[4][6]= 2, t[4][9]= 9, t[5][1]= 9, t[5][5]= 3,
                    t[5][7]= 4, t[6][1]= 2, t[6][3]= 4, t[6][6]= 7,
                    t[6][9]= 1, t[7][5]= 2, t[7][7]= 3, t[7][8]= 1,
                    t[8][6]= 1, t[8][7]= 6, t[8][8]= 4, t[9][9]= 8;

                break;

                case '8':

                    t[1][7]= 7, t[2][4]= 9, t[2][5]= 2, t[2][7]= 8,
                    t[3][2]= 1, t[3][4]= 4, t[3][8]= 3, t[3][9]= 9,
                    t[4][2]= 5, t[4][3]= 8, t[4][7]= 1, t[5][1]= 7,
                    t[5][8]= 6, t[6][2]= 3, t[6][5]= 7, t[6][6]= 8,
                    t[7][2]= 7, t[7][3]= 5, t[7][4]= 2, t[7][6]= 1,
                    t[8][9]= 3, t[9][4]= 5, t[9][5]= 9, t[9][6]= 4;


                break;

                case '9':

                    t[1][1]= 4, t[1][2]= 1, t[1][5]= 3, t[1][6]= 6,
                    t[2][3]= 7, t[2][7]= 8, t[2][8]= 5, t[3][1]= 6,
                    t[4][2]= 9, t[4][7]= 2, t[5][3]= 6, t[5][5]= 7,
                    t[5][9]= 8, t[6][8]= 9, t[6][9]= 1, t[7][3]= 2,
                    t[7][5]= 1, t[7][6]= 4, t[8][6]= 3, t[9][1]= 7,
                    t[9][2]= 4, t[9][6]= 8, t[9][7]= 5, t[9][9]= 9;

                break;

                case '10':

                    t[1][6]= 2, t[1][8]= 8, t[2][2]= 7, t[3][2]= 6,
            t[3][5]= 9, t[3][7]= 7, t[3][9]= 5, t[4][1]= 1,
            t[4][5]= 8, t[4][6]= 6, t[4][8]= 2, t[5][6]= 3,
            t[5][7]= 4, t[6][1]= 9, t[6][8]= 1, t[7][2]= 2,
            t[7][5]= 5, t[8][1]= 7, t[8][3]= 9, t[8][8]= 3,
            t[9][1]= 8, t[9][5]= 1, t[9][7]= 2;


                break;
            }

                        printf("\t TABLERO \n");
                        printf("   1 2 3 | 4 5 6 | 7 8 9\n1");
                        printf("  %d %c %c | %c %c %c | %c %c %c \n2",t[0][0],t[0][1],t[0][2],t[0][3],t[0][4],t[0][5],t[0][6],t[0][7],t[0][8]);
                        printf("  %c %c %c | %c %c %c | %c %c %c \n3",t[1][0],t[1][1],t[1][2],t[1][3],t[1][4],t[1][5],t[1][6],t[1][7],t[1][8]);
                        printf("  %c %c %c | %c %c %c | %c %c %c \n", t[2][0],t[2][1],t[2][2],t[2][3],t[2][4],t[2][5],t[2][6],t[2][7],t[2][8]);
                        printf("  -------+-------+-------\n4");
                        printf("  %c %c %c | %c %c %c | %c %c %c \n5",t[3][0],t[3][1],t[3][2],t[3][3],t[3][4],t[3][5],t[3][6],t[3][7],t[3][8]);
                        printf("  %c %c %c | %c %c %c | %c %c %c \n6",t[4][0],t[4][1],t[4][2],t[4][3],t[4][4],t[4][5],t[4][6],t[4][7],t[4][8]);
                        printf("  %c %c %c | %c %c %c | %c %c %c \n", t[5][0],t[5][1],t[5][2],t[5][3],t[5][4],t[5][5],t[5][6],t[5][7],t[5][8]);
                        printf("  -------+-------+-------\n7");
                        printf("  %c %c %c | %c %c %c | %c %c %c \n8",t[6][0],t[6][1],t[6][2],t[6][3],t[6][4],t[6][5],t[6][6],t[6][7],t[6][8]);
                        printf("  %c %c %c | %c %c %c | %c %c %c \n9",t[7][0],t[7][1],t[7][2],t[7][3],t[7][4],t[7][5],t[7][6],t[7][7],t[7][8]);
                        printf("  %c %c %c | %c %c %c | %c %c %c \n", t[8][0],t[8][1],t[8][2],t[8][3],t[8][4],t[8][5],t[8][6],t[8][7],t[8][8]);


    }
void cargar(char * n[])
    {
        int f,c;
        char m;
        char t [SIZE][SIZE];


    do{

        printf("elija fila y columna,\n");
        printf("fila: "); scanf("%d",&f);
        printf("columna: "); scanf("%d",&c);

        printf("numero a ingresar 1..9: ");
        scanf("%c",&t[f][c]);

        system("cls");

            //TABLERO
                        printf("\t TABLERO \n");
                        printf("   1 2 3 | 4 5 6 | 7 8 9\n1");
                        printf("  %c %c %c | %c %c %c | %c %c %c \n2",t[0][0],t[0][1],t[0][2],t[0][3],t[0][4],t[0][5],t[0][6],t[0][7],t[0][8]);
                        printf("  %c %c %c | %c %c %c | %c %c %c \n3",t[1][0],t[1][1],t[1][2],t[1][3],t[1][4],t[1][5],t[1][6],t[1][7],t[1][8]);
                        printf("  %c %c %c | %c %c %c | %c %c %c \n", t[2][0],t[2][1],t[2][2],t[2][3],t[2][4],t[2][5],t[2][6],t[2][7],t[2][8]);
                        printf("  -------+-------+-------\n4");
                        printf("  %c %c %c | %c %c %c | %c %c %c \n5",t[3][0],t[3][1],t[3][2],t[3][3],t[3][4],t[3][5],t[3][6],t[3][7],t[3][8]);
                        printf("  %c %c %c | %c %c %c | %c %c %c \n6",t[4][0],t[4][1],t[4][2],t[4][3],t[4][4],t[4][5],t[4][6],t[4][7],t[4][8]);
                        printf("  %c %c %c | %c %c %c | %c %c %c \n", t[5][0],t[5][1],t[5][2],t[5][3],t[5][4],t[5][5],t[5][6],t[5][7],t[5][8]);
                        printf("  -------+-------+-------\n7");
                        printf("  %c %c %c | %c %c %c | %c %c %c \n8",t[6][0],t[6][1],t[6][2],t[6][3],t[6][4],t[6][5],t[6][6],t[6][7],t[6][8]);
                        printf("  %c %c %c | %c %c %c | %c %c %c \n9",t[7][0],t[7][1],t[7][2],t[7][3],t[7][4],t[7][5],t[7][6],t[7][7],t[7][8]);
                        printf("  %c %c %c | %c %c %c | %c %c %c \n", t[8][0],t[8][1],t[8][2],t[8][3],t[8][4],t[8][5],t[8][6],t[8][7],t[8][8]);


        printf("ingresar otro numero? SI = 1\t NO = 0 \t");
        scanf("%d", &m);
        }while(m != 0);

    }



03-Mar-2020 22:33
lautaro lopez

me olvide de decirles, si lo prueban usen el caso easy y el tablero 1 que es el que acomode, lo cambie varias veces al codigo


08-Mar-2020 11:57
Nacho Cabanes (+83)

En un primer vistazo, veo cosas claramente incorrectas como:

t[9][9]= 9;

(si tu array es de tamaño 9, debería ir de las posiciones 0 a la 8), o como

&& nrotablero != '10'

("10" no es una valor aceptable para un dato de tipo "char").

No dices qué compilador usas. He quitado las ordenes "system" para poder tratar de compilarlo en un compilador online (en concreto, en el de repl.it) y he obtenido muchísimos "warnings", alguno de los cuales son cosas que claramente necesitas corregir, como las que te he indicado antes. Algunos de esos warnings (son tantos que me desaparecen del buffer de scroll) son:

main.c:114:21: warning: array index 9 is past the end of the array (which
     contains 9 elements) [-Warray-bounds]
                   t[3][9]= 9, t[4][2]= 8, t[4][7]= 3, t[4][8]= 4,
                   ^    ~
main.c:76:9: note: array 't' declared here
       char t [SIZE][SIZE];
       ^
main.c:117:57: warning: array index 9 is past the end of the array (which
     contains 9 elements) [-Warray-bounds]
                   t[8][1]= 7, t[8][6]= 1, t[8][7]= 2, t[8][9]= 3,
                                                       ^    ~
main.c:76:9: note: array 't' declared here
       char t [SIZE][SIZE];
       ^
main.c:118:21: warning: array index 9 is past the end of the array (which
     contains 9 elements) [-Warray-bounds]
                   t[9][1]= 1, t[9][2]= 9, t[9][3]= 5, t[9][5]= 8;
                   ^ ~
main.c:76:9: note: array 't' declared here
       char t [SIZE][SIZE];
       ^
main.c:118:33: warning: array index 9 is past the end of the array (which
     contains 9 elements) [-Warray-bounds]
                   t[9][1]= 1, t[9][2]= 9, t[9][3]= 5, t[9][5]= 8;
                               ^ ~
main.c:76:9: note: array 't' declared here
       char t [SIZE][SIZE];
       ^
main.c:118:45: warning: array index 9 is past the end of the array (which
     contains 9 elements) [-Warray-bounds]
                   t[9][1]= 1, t[9][2]= 9, t[9][3]= 5, t[9][5]= 8;
                                           ^ ~
main.c:76:9: note: array 't' declared here
       char t [SIZE][SIZE];
       ^
main.c:118:57: warning: array index 9 is past the end of the array (which
     contains 9 elements) [-Warray-bounds]
                   t[9][1]= 1, t[9][2]= 9, t[9][3]= 5, t[9][5]= 8;
                                                       ^ ~
main.c:76:9: note: array 't' declared here
       char t [SIZE][SIZE];
       ^
main.c:127:21: warning: array index 9 is past the end of the array (which
     contains 9 elements) [-Warray-bounds]
                   t[3][9]= 9, t[4][2]= 8, t[4][7]= 3, t[4][8]= 4,
                   ^    ~
main.c:76:9: note: array 't' declared here
       char t [SIZE][SIZE];
       ^
main.c:130:57: warning: array index 9 is past the end of the array (which
     contains 9 elements) [-Warray-bounds]
                   t[8][1]= 7, t[8][6]= 1, t[8][7]= 2, t[8][9]= 3,
                                                       ^    ~
main.c:76:9: note: array 't' declared here
       char t [SIZE][SIZE];
       ^
main.c:131:21: warning: array index 9 is past the end of the array (which
     contains 9 elements) [-Warray-bounds]
                   t[9][1]= 1, t[9][2]= 9, t[9][3]= 5, t[9][5]= 8;
                   ^ ~
main.c:76:9: note: array 't' declared here
       char t [SIZE][SIZE];
       ^
main.c:131:33: warning: array index 9 is past the end of the array (which
     contains 9 elements) [-Warray-bounds]
                   t[9][1]= 1, t[9][2]= 9, t[9][3]= 5, t[9][5]= 8;
                               ^ ~
main.c:76:9: note: array 't' declared here
       char t [SIZE][SIZE];
       ^
main.c:131:45: warning: array index 9 is past the end of the array (which
     contains 9 elements) [-Warray-bounds]
                   t[9][1]= 1, t[9][2]= 9, t[9][3]= 5, t[9][5]= 8;
                                           ^ ~
main.c:76:9: note: array 't' declared here
       char t [SIZE][SIZE];
       ^
main.c:131:57: warning: array index 9 is past the end of the array (which
     contains 9 elements) [-Warray-bounds]
                   t[9][1]= 1, t[9][2]= 9, t[9][3]= 5, t[9][5]= 8;
                                                       ^ ~
main.c:76:9: note: array 't' declared here
       char t [SIZE][SIZE];
       ^
main.c:137:57: warning: array index 9 is past the end of the array (which
     contains 9 elements) [-Warray-bounds]
                   t[1][4]= 7, t[1][6]= 6, t[1][8]= 2, t[1][9]= 3,
                                                       ^    ~
main.c:76:9: note: array 't' declared here
       char t [SIZE][SIZE];
       ^
main.c:139:33: warning: array index 9 is past the end of the array (which
     contains 9 elements) [-Warray-bounds]
                   t[3][7]= 4, t[3][9]= 7, t[4][6]= 2, t[4][9]= 6,
                               ^    ~
main.c:76:9: note: array 't' declared here
       char t [SIZE][SIZE];
       ^
main.c:139:57: warning: array index 9 is past the end of the array (which
     contains 9 elements) [-Warray-bounds]
                   t[3][7]= 4, t[3][9]= 7, t[4][6]= 2, t[4][9]= 6,
                                                       ^    ~
main.c:76:9: note: array 't' declared here
       char t [SIZE][SIZE];
       ^
main.c:140:57: warning: array index 9 is past the end of the array (which
     contains 9 elements) [-Warray-bounds]
                   t[5][2]= 2, t[5][4]= 6, t[5][6]= 7, t[5][9]= 1,
                                                       ^    ~
main.c:76:9: note: array 't' declared here
       char t [SIZE][SIZE];
       ^
main.c:143:33: warning: array index 9 is past the end of the array (which
     contains 9 elements) [-Warray-bounds]
                   t[8][6]= 9, t[9][7]= 3;
                               ^ ~
main.c:76:9: note: array 't' declared here
       char t [SIZE][SIZE];
       ^
main.c:150:45: warning: array index 9 is past the end of the array (which
     contains 9 elements) [-Warray-bounds]
                   t[2][5]= 8, t[2][7]= 6, t[2][9]= 1, t[3][8]= 5,
                                           ^    ~
main.c:76:9: note: array 't' declared here
       char t [SIZE][SIZE];
       ^
main.c:154:45: warning: array index 9 is past the end of the array (which
     contains 9 elements) [-Warray-bounds]
                   t[7][2]= 5, t[7][3]= 6, t[7][9]= 8, t[8][2]= 9,
                                           ^    ~
main.c:76:9: note: array 't' declared here
       char t [SIZE][SIZE];
       ^
main.c:155:33: warning: array index 9 is past the end of the array (which
     contains 9 elements) [-Warray-bounds]
                   t[8][3]= 3, t[9][6]= 4;
                               ^ ~
main.c:76:9: note: array 't' declared here
       char t [SIZE][SIZE];
       ^
main.c:164:57: warning: array index 9 is past the end of the array (which
     contains 9 elements) [-Warray-bounds]
                   t[6][3]= 8, t[6][7]= 2, t[6][8]= 4, t[6][9]= 1,
                                                       ^    ~
main.c:76:9: note: array 't' declared here
       char t [SIZE][SIZE];
       ^
main.c:166:45: warning: array index 9 is past the end of the array (which
     contains 9 elements) [-Warray-bounds]
                   t[8][3]= 4, t[8][8]= 6, t[9][1]= 9, t[9][6]= 4,
                                           ^ ~
main.c:76:9: note: array 't' declared here
       char t [SIZE][SIZE];
       ^
main.c:166:57: warning: array index 9 is past the end of the array (which
     contains 9 elements) [-Warray-bounds]
                   t[8][3]= 4, t[8][8]= 6, t[9][1]= 9, t[9][6]= 4,
                                                       ^ ~
main.c:76:9: note: array 't' declared here
       char t [SIZE][SIZE];
       ^
main.c:167:21: warning: array index 9 is past the end of the array (which
     contains 9 elements) [-Warray-bounds]
                   t[9][7]= 8;
                   ^ ~
main.c:76:9: note: array 't' declared here
       char t [SIZE][SIZE];
       ^
main.c:175:21: warning: array index 9 is past the end of the array (which
     contains 9 elements) [-Warray-bounds]
                   t[3][9]= 1, t[4][2]= 8, t[4][4]= 2, t[4][9]= 6,
                   ^    ~
main.c:76:9: note: array 't' declared here
       char t [SIZE][SIZE];
       ^
main.c:175:57: warning: array index 9 is past the end of the array (which
     contains 9 elements) [-Warray-bounds]
                   t[3][9]= 1, t[4][2]= 8, t[4][4]= 2, t[4][9]= 6,
                                                       ^    ~
main.c:76:9: note: array 't' declared here
       char t [SIZE][SIZE];
       ^
main.c:177:21: warning: array index 9 is past the end of the array (which
     contains 9 elements) [-Warray-bounds]
                   t[7][9]= 2, t[8][1]= 6, t[8][2]= 1, t[8][5]= 5,
                   ^    ~
main.c:76:9: note: array 't' declared here
       char t [SIZE][SIZE];
       ^
main.c:178:33: warning: array index 9 is past the end of the array (which
     contains 9 elements) [-Warray-bounds]
                   t[8][8]= 8, t[9][1]= 7, t[9][4]= 3, t[9][6]= 6,
                               ^ ~
main.c:76:9: note: array 't' declared here
       char t [SIZE][SIZE];
       ^
main.c:178:45: warning: array index 9 is past the end of the array (which
     contains 9 elements) [-Warray-bounds]
                   t[8][8]= 8, t[9][1]= 7, t[9][4]= 3, t[9][6]= 6,
                                           ^ ~
main.c:76:9: note: array 't' declared here
       char t [SIZE][SIZE];
       ^
main.c:178:57: warning: array index 9 is past the end of the array (which
     contains 9 elements) [-Warray-bounds]
                   t[8][8]= 8, t[9][1]= 7, t[9][4]= 3, t[9][6]= 6,
                                                       ^ ~
main.c:76:9: note: array 't' declared here
       char t [SIZE][SIZE];
       ^
main.c:179:21: warning: array index 9 is past the end of the array (which
     contains 9 elements) [-Warray-bounds]
                   t[9][8]= 4;
                   ^ ~
main.c:76:9: note: array 't' declared here
       char t [SIZE][SIZE];
       ^
main.c:186:45: warning: array index 9 is past the end of the array (which
     contains 9 elements) [-Warray-bounds]
                   t[1][5]= 9, t[1][7]= 6, t[1][9]= 5, t[2][1]= 4,
                                           ^    ~
main.c:76:9: note: array 't' declared here
       char t [SIZE][SIZE];
       ^
main.c:188:21: warning: array index 9 is past the end of the array (which
     contains 9 elements) [-Warray-bounds]
                   t[3][9]= 9, t[4][2]= 4, t[4][4]= 7, t[4][6]= 2,
                   ^    ~
main.c:76:9: note: array 't' declared here
       char t [SIZE][SIZE];
       ^
main.c:192:57: warning: array index 9 is past the end of the array (which
     contains 9 elements) [-Warray-bounds]
                   t[8][3]= 8, t[8][4]= 4, t[8][7]= 5, t[9][1]= 9;
                                                       ^ ~
main.c:76:9: note: array 't' declared here
       char t [SIZE][SIZE];
       ^
main.c:201:33: warning: array index 9 is past the end of the array (which
     contains 9 elements) [-Warray-bounds]
                   t[5][6]= 2, t[5][9]= 3, t[6][2]= 4, t[6][3]= 9,
                               ^    ~
main.c:76:9: note: array 't' declared here
       char t [SIZE][SIZE];
       ^
main.c:203:33: warning: array index 9 is past the end of the array (which
     contains 9 elements) [-Warray-bounds]
                   t[8][5]= 7, t[8][9]= 4, t[9][1]= 9, t[9][4]= 6,
                               ^    ~
main.c:76:9: note: array 't' declared here
       char t [SIZE][SIZE];
       ^
main.c:203:45: warning: array index 9 is past the end of the array (which
     contains 9 elements) [-Warray-bounds]
                   t[8][5]= 7, t[8][9]= 4, t[9][1]= 9, t[9][4]= 6,
                                           ^ ~
main.c:76:9: note: array 't' declared here
       char t [SIZE][SIZE];
       ^
main.c:203:57: warning: array index 9 is past the end of the array (which
     contains 9 elements) [-Warray-bounds]
                   t[8][5]= 7, t[8][9]= 4, t[9][1]= 9, t[9][4]= 6,
                                                       ^ ~
main.c:76:9: note: array 't' declared here
       char t [SIZE][SIZE];
       ^
main.c:204:21: warning: array index 9 is past the end of the array (which
     contains 9 elements) [-Warray-bounds]
                   t[9][8]= 7, t[9][9]= 5;
                   ^ ~
main.c:76:9: note: array 't' declared here
       char t [SIZE][SIZE];
       ^
main.c:204:33: warning: array index 9 is past the end of the array (which
     contains 9 elements) [-Warray-bounds]
                   t[9][8]= 7, t[9][9]= 5;
                               ^    ~
main.c:76:9: note: array 't' declared here
       char t [SIZE][SIZE];
       ^
main.c:204:33: warning: array index 9 is past the end of the array (which
     contains 9 elements) [-Warray-bounds]
                   t[9][8]= 7, t[9][9]= 5;
                               ^ ~
main.c:76:9: note: array 't' declared here
       char t [SIZE][SIZE];
       ^
main.c:211:21: warning: array index 9 is past the end of the array (which
     contains 9 elements) [-Warray-bounds]
                   t[2][9]= 4, t[3][3]= 7, t[3][4]= 9, t[3][5]= 1,
                   ^    ~
main.c:76:9: note: array 't' declared here
       char t [SIZE][SIZE];
       ^
main.c:212:33: warning: array index 9 is past the end of the array (which
     contains 9 elements) [-Warray-bounds]
                   t[3][7]= 6, t[3][9]= 3, t[4][3]= 3, t[4][8]= 5,
                               ^    ~
main.c:76:9: note: array 't' declared here
       char t [SIZE][SIZE];
       ^
main.c:213:57: warning: array index 9 is past the end of the array (which
     contains 9 elements) [-Warray-bounds]
                   t[5][3]= 8, t[5][4]= 3, t[5][8]= 4, t[5][9]= 2,
                                                       ^    ~
main.c:76:9: note: array 't' declared here
       char t [SIZE][SIZE];
       ^
main.c:215:33: warning: array index 9 is past the end of the array (which
     contains 9 elements) [-Warray-bounds]
                   t[8][8]= 3, t[8][9]= 5, t[9][1]= 4, t[9][2]= 6,
                               ^    ~
main.c:76:9: note: array 't' declared here
       char t [SIZE][SIZE];
       ^
main.c:215:45: warning: array index 9 is past the end of the array (which
     contains 9 elements) [-Warray-bounds]
                   t[8][8]= 3, t[8][9]= 5, t[9][1]= 4, t[9][2]= 6,
                                           ^ ~
main.c:76:9: note: array 't' declared here
       char t [SIZE][SIZE];
       ^
main.c:215:57: warning: array index 9 is past the end of the array (which
     contains 9 elements) [-Warray-bounds]
                   t[8][8]= 3, t[8][9]= 5, t[9][1]= 4, t[9][2]= 6,
                                                       ^ ~
main.c:76:9: note: array 't' declared here
       char t [SIZE][SIZE];
       ^
main.c:216:21: warning: array index 9 is past the end of the array (which
     contains 9 elements) [-Warray-bounds]
                   t[9][5]= 9;
                   ^ ~
main.c:76:9: note: array 't' declared here
       char t [SIZE][SIZE];
       ^
main.c:258:220: warning: multi-character character constant [-Wmultichar]
 ...&& nrotablero != '8' && nrotablero != '9' && nrotablero != '10');
                                                               ^
main.c:364:22: warning: multi-character character constant [-Wmultichar]
               case '10':
                    ^
main.c:266:45: warning: array index 9 is past the end of the array (which
     contains 9 elements) [-Warray-bounds]
                   t[1][2]= 8, t[1][8]= 9, t[1][9]= 4, t[2][3]= 5,
                                           ^    ~
main.c:242:9: note: array 't' declared here
       int t [SIZE][SIZE];
       ^
main.c:267:45: warning: array index 9 is past the end of the array (which
     contains 9 elements) [-Warray-bounds]
                   t[2][4]= 2, t[2][6]= 7, t[2][9]= 6, t[3][1]= 3,
                                           ^    ~
main.c:242:9: note: array 't' declared here
       int t [SIZE][SIZE];
       ^
main.c:270:45: warning: array index 9 is past the end of the array (which
     contains 9 elements) [-Warray-bounds]
                   t[7][2]= 2, t[7][3]= 4, t[7][9]= 3, t[8][5]= 6,
                                           ^    ~
main.c:242:9: note: array 't' declared here
       int t [SIZE][SIZE];
       ^
main.c:281:45: warning: array index 9 is past the end of the array (which
     contains 9 elements) [-Warray-bounds]
                   t[8][3]= 4, t[8][6]= 8, t[8][9]= 6, t[9][4]= 9,
                                           ^    ~
main.c:242:9: note: array 't' declared here
       int t [SIZE][SIZE];
       ^
main.c:281:57: warning: array index 9 is past the end of the array (which
     contains 9 elements) [-Warray-bounds]
                   t[8][3]= 4, t[8][6]= 8, t[8][9]= 6, t[9][4]= 9,
                                                       ^ ~
main.c:242:9: note: array 't' declared here
       int t [SIZE][SIZE];
       ^
main.c:282:21: warning: array index 9 is past the end of the array (which
     contains 9 elements) [-Warray-bounds]
                   t[9][6]= 3, t[9][8]= 5;
                   ^ ~
main.c:242:9: note: array 't' declared here
       int t [SIZE][SIZE];
       ^
main.c:282:33: warning: array index 9 is past the end of the array (which
     contains 9 elements) [-Warray-bounds]
                   t[9][6]= 3, t[9][8]= 5;
                               ^ ~
main.c:242:9: note: array 't' declared here
       int t [SIZE][SIZE];
       ^
main.c:290:45: warning: array index 9 is past the end of the array (which
     contains 9 elements) [-Warray-bounds]
                   t[3][5]= 3, t[3][8]= 2, t[3][9]= 5, t[4][2]= 6,
                                           ^    ~
main.c:242:9: note: array 't' declared here
       int t [SIZE][SIZE];
       ^
main.c:294:21: warning: array index 9 is past the end of the array (which
     contains 9 elements) [-Warray-bounds]
                   t[8][9]= 8, t[9][6]= 2, t[9][8]= 3;
                   ^    ~
main.c:242:9: note: array 't' declared here
       int t [SIZE][SIZE];
       ^
main.c:294:33: warning: array index 9 is past the end of the array (which
     contains 9 elements) [-Warray-bounds]
                   t[8][9]= 8, t[9][6]= 2, t[9][8]= 3;
                               ^ ~
main.c:242:9: note: array 't' declared here
       int t [SIZE][SIZE];
       ^
main.c:294:45: warning: array index 9 is past the end of the array (which
     contains 9 elements) [-Warray-bounds]
                   t[8][9]= 8, t[9][6]= 2, t[9][8]= 3;
                                           ^ ~
main.c:242:9: note: array 't' declared here
       int t [SIZE][SIZE];
       ^
main.c:301:57: warning: array index 9 is past the end of the array (which
     contains 9 elements) [-Warray-bounds]
                   t[3][6]= 7, t[4][3]= 1, t[4][7]= 5, t[4][9]= 8,
                                                       ^    ~
main.c:242:9: note: array 't' declared here
       int t [SIZE][SIZE];
       ^
main.c:304:21: warning: array index 9 is past the end of the array (which
     contains 9 elements) [-Warray-bounds]
                   t[7][9]= 4, t[8][2]= 4, t[8][5]= 1, t[8][7]= 8,
                   ^    ~
main.c:242:9: note: array 't' declared here
       int t [SIZE][SIZE];
       ^
main.c:305:21: warning: array index 9 is past the end of the array (which
     contains 9 elements) [-Warray-bounds]
                   t[8][9]= 6, t[9][6]= 5, t[9][8]= 2;
                   ^    ~
main.c:242:9: note: array 't' declared here
       int t [SIZE][SIZE];
       ^
main.c:305:33: warning: array index 9 is past the end of the array (which
     contains 9 elements) [-Warray-bounds]
                   t[8][9]= 6, t[9][6]= 5, t[9][8]= 2;
                               ^ ~
main.c:242:9: note: array 't' declared here
       int t [SIZE][SIZE];
       ^
main.c:305:45: warning: array index 9 is past the end of the array (which
     contains 9 elements) [-Warray-bounds]
                   t[8][9]= 6, t[9][6]= 5, t[9][8]= 2;
                                           ^ ~
main.c:242:9: note: array 't' declared here
       int t [SIZE][SIZE];
       ^
main.c:312:21: warning: array index 9 is past the end of the array (which
     contains 9 elements) [-Warray-bounds]
                   t[2][9]= 3, t[3][3]= 6, t[3][4]= 5, t[3][8]= 4,
                   ^    ~
main.c:242:9: note: array 't' declared here
       int t [SIZE][SIZE];
       ^
main.c:313:21: warning: array index 9 is past the end of the array (which
     contains 9 elements) [-Warray-bounds]
                   t[3][9]= 1, t[4][2]= 1, t[4][3]= 7, t[4][4]= 8,
                   ^    ~
main.c:242:9: note: array 't' declared here
       int t [SIZE][SIZE];
       ^
main.c:314:33: warning: array index 9 is past the end of the array (which
     contains 9 elements) [-Warray-bounds]
                   t[4][6]= 2, t[4][9]= 4, t[5][5]= 6, t[5][7]= 2,
                               ^    ~
main.c:242:9: note: array 't' declared here
       int t [SIZE][SIZE];
       ^
main.c:315:45: warning: array index 9 is past the end of the array (which
     contains 9 elements) [-Warray-bounds]
                   t[6][1]= 6, t[6][8]= 1, t[6][9]= 7, t[7][2]= 5,
                                           ^    ~
main.c:242:9: note: array 't' declared here
       int t [SIZE][SIZE];
       ^
main.c:316:57: warning: array index 9 is past the end of the array (which
     contains 9 elements) [-Warray-bounds]
                   t[7][5]= 9, t[8][6]= 5, t[8][8]= 6, t[9][1]= 4;
                                                       ^ ~
main.c:242:9: note: array 't' declared here
       int t [SIZE][SIZE];
       ^
main.c:322:45: warning: array index 9 is past the end of the array (which
     contains 9 elements) [-Warray-bounds]
                   t[1][3]= 9, t[1][6]= 1, t[1][9]= 2, t[2][1]= 8,
                                           ^    ~
main.c:242:9: note: array 't' declared here
       int t [SIZE][SIZE];
       ^
main.c:327:45: warning: array index 9 is past the end of the array (which
     contains 9 elements) [-Warray-bounds]
                   t[8][5]= 5, t[8][7]= 2, t[8][9]= 9, t[9][7]= 1;
                                           ^    ~
main.c:242:9: note: array 't' declared here
       int t [SIZE][SIZE];
       ^
main.c:327:57: warning: array index 9 is past the end of the array (which
     contains 9 elements) [-Warray-bounds]
                   t[8][5]= 5, t[8][7]= 2, t[8][9]= 9, t[9][7]= 1;
                                                       ^ ~
main.c:242:9: note: array 't' declared here
       int t [SIZE][SIZE];
       ^
main.c:333:45: warning: array index 9 is past the end of the array (which
     contains 9 elements) [-Warray-bounds]
                   t[1][4]= 2, t[1][8]= 1, t[1][9]= 5, t[2][2]= 3,
                                           ^    ~
main.c:242:9: note: array 't' declared here
       int t [SIZE][SIZE];
       ^
main.c:335:21: warning: array index 9 is past the end of the array (which
     contains 9 elements) [-Warray-bounds]
                   t[4][9]= 9, t[5][3]= 3, t[5][4]= 6, t[6][1]= 8,
                   ^    ~
main.c:242:9: note: array 't' declared here
       int t [SIZE][SIZE];
       ^
main.c:337:57: warning: array index 9 is past the end of the array (which
     contains 9 elements) [-Warray-bounds]
                   t[7][2]= 8, t[7][8]= 2, t[8][7]= 4, t[9][1]= 2,
                                                       ^ ~
main.c:242:9: note: array 't' declared here
       int t [SIZE][SIZE];
       ^
main.c:338:21: warning: array index 9 is past the end of the array (which
     contains 9 elements) [-Warray-bounds]
                   t[9][5]= 7, t[9][8]= 6;
                   ^ ~
main.c:242:9: note: array 't' declared here
       int t [SIZE][SIZE];
       ^
main.c:338:33: warning: array index 9 is past the end of the array (which
     contains 9 elements) [-Warray-bounds]
                   t[9][5]= 7, t[9][8]= 6;
                               ^ ~
main.c:242:9: note: array 't' declared here
       int t [SIZE][SIZE];
       ^
main.c:344:33: warning: array index 9 is past the end of the array (which
     contains 9 elements) [-Warray-bounds]
                   t[1][8]= 5, t[1][9]= 9, t[2][5]= 1, t[2][6]= 9,
                               ^    ~
main.c:242:9: note: array 't' declared here
       int t [SIZE][SIZE];
       ^
main.c:345:21: warning: array index 9 is past the end of the array (which
     contains 9 elements) [-Warray-bounds]
                   t[2][9]= 7, t[3][1]= 3, t[3][5]= 2, t[4][3]= 1,
                   ^    ~
main.c:242:9: note: array 't' declared here
       int t [SIZE][SIZE];
       ^
main.c:348:45: warning: array index 9 is past the end of the array (which
     contains 9 elements) [-Warray-bounds]
                   t[8][1]= 6, t[8][5]= 7, t[8][9]= 5, t[9][3]= 3,
                                           ^    ~
main.c:242:9: note: array 't' declared here
       int t [SIZE][SIZE];
       ^
main.c:348:57: warning: array index 9 is past the end of the array (which
     contains 9 elements) [-Warray-bounds]
                   t[8][1]= 6, t[8][5]= 7, t[8][9]= 5, t[9][3]= 3,
                                                       ^ ~
main.c:242:9: note: array 't' declared here
       int t [SIZE][SIZE];
       ^
main.c:349:21: warning: array index 9 is past the end of the array (which
     contains 9 elements) [-Warray-bounds]
                   t[9][7]= 4, t[9][9]= 6;
                   ^ ~
main.c:242:9: note: array 't' declared here
       int t [SIZE][SIZE];
       ^
main.c:349:33: warning: array index 9 is past the end of the array (which
     contains 9 elements) [-Warray-bounds]
                   t[9][7]= 4, t[9][9]= 6;
                               ^    ~
main.c:242:9: note: array 't' declared here
       int t [SIZE][SIZE];
       ^
main.c:349:33: warning: array index 9 is past the end of the array (which
     contains 9 elements) [-Warray-bounds]
                   t[9][7]= 4, t[9][9]= 6;
                               ^ ~
main.c:242:9: note: array 't' declared here
       int t [SIZE][SIZE];
       ^
main.c:358:21: warning: array index 9 is past the end of the array (which
     contains 9 elements) [-Warray-bounds]
                   t[6][9]= 2, t[7][1]= 3, t[8][2]= 9, t[8][4]= 4,
                   ^    ~
main.c:242:9: note: array 't' declared here
       int t [SIZE][SIZE];
       ^
main.c:359:45: warning: array index 9 is past the end of the array (which
     contains 9 elements) [-Warray-bounds]
                   t[8][7]= 6, t[8][8]= 7, t[9][1]= 6, t[9][5]= 5,
                                           ^ ~
main.c:242:9: note: array 't' declared here
       int t [SIZE][SIZE];
       ^
main.c:359:57: warning: array index 9 is past the end of the array (which
     contains 9 elements) [-Warray-bounds]
                   t[8][7]= 6, t[8][8]= 7, t[9][1]= 6, t[9][5]= 5,
                                                       ^ ~
main.c:242:9: note: array 't' declared here
       int t [SIZE][SIZE];
       ^
main.c:360:21: warning: array index 9 is past the end of the array (which
     contains 9 elements) [-Warray-bounds]
                   t[9][7]= 8;
                   ^ ~
main.c:242:9: note: array 't' declared here
       int t [SIZE][SIZE];
       ^
main.c:367:33: warning: array index 9 is past the end of the array (which
     contains 9 elements) [-Warray-bounds]
                   t[3][4]= 3, t[3][9]= 6, t[4][1]= 6, t[4][2]= 8,
                               ^    ~
main.c:242:9: note: array 't' declared here
       int t [SIZE][SIZE];
       ^
main.c:368:57: warning: array index 9 is past the end of the array (which
     contains 9 elements) [-Warray-bounds]
                   t[4][3]= 3, t[4][8]= 7, t[5][4]= 6, t[5][9]= 5,
                                                       ^    ~
main.c:242:9: note: array 't' declared here
       int t [SIZE][SIZE];
       ^
main.c:369:57: warning: array index 9 is past the end of the array (which
     contains 9 elements) [-Warray-bounds]
                   t[6][1]= 7, t[6][5]= 2, t[7][1]= 3, t[7][9]= 9,
                                                       ^    ~
main.c:242:9: note: array 't' declared here
       int t [SIZE][SIZE];
       ^
main.c:371:21: warning: array index 9 is past the end of the array (which
     contains 9 elements) [-Warray-bounds]
                   t[9][2]= 5, t[9][5]= 6, t[9][9]= 8;
                   ^ ~
main.c:242:9: note: array 't' declared here
       int t [SIZE][SIZE];
       ^
main.c:371:33: warning: array index 9 is past the end of the array (which
     contains 9 elements) [-Warray-bounds]
                   t[9][2]= 5, t[9][5]= 6, t[9][9]= 8;
                               ^ ~
main.c:242:9: note: array 't' declared here
       int t [SIZE][SIZE];
       ^
main.c:371:45: warning: array index 9 is past the end of the array (which
     contains 9 elements) [-Warray-bounds]
                   t[9][2]= 5, t[9][5]= 6, t[9][9]= 8;
                                           ^    ~
main.c:242:9: note: array 't' declared here
       int t [SIZE][SIZE];
       ^
main.c:371:45: warning: array index 9 is past the end of the array (which
     contains 9 elements) [-Warray-bounds]
                   t[9][2]= 5, t[9][5]= 6, t[9][9]= 8;
                                           ^ ~
main.c:242:9: note: array 't' declared here
       int t [SIZE][SIZE];
       ^
main.c:413:220: warning: multi-character character constant [-Wmultichar]
 ...&& nrotablero != '8' && nrotablero != '9' && nrotablero != '10');
                                                               ^
main.c:522:22: warning: multi-character character constant [-Wmultichar]
               case '10':
                    ^
main.c:421:45: warning: array index 9 is past the end of the array (which
     contains 9 elements) [-Warray-bounds]
                   t[1][1]= 2, t[1][6]= 8, t[1][9]= 5, t[2][2]= 4,
                                           ^    ~
main.c:397:9: note: array 't' declared here
       int t [SIZE][SIZE];
       ^
main.c:425:57: warning: array index 9 is past the end of the array (which
     contains 9 elements) [-Warray-bounds]
                   t[5][7]= 6, t[6][3]= 9, t[6][8]= 2, t[6][9]= 1,
                                                       ^    ~
main.c:397:9: note: array 't' declared here
       int t [SIZE][SIZE];
       ^
main.c:427:45: warning: array index 9 is past the end of the array (which
     contains 9 elements) [-Warray-bounds]
                   t[8][5]= 1, t[8][6]= 6, t[8][9]= 9, t[9][1]= 9,
                                           ^    ~
main.c:397:9: note: array 't' declared here
       int t [SIZE][SIZE];
       ^
main.c:427:57: warning: array index 9 is past the end of the array (which
     contains 9 elements) [-Warray-bounds]
                   t[8][5]= 1, t[8][6]= 6, t[8][9]= 9, t[9][1]= 9,
                                                       ^ ~
main.c:397:9: note: array 't' declared here
       int t [SIZE][SIZE];
       ^
main.c:428:21: warning: array index 9 is past the end of the array (which
     contains 9 elements) [-Warray-bounds]
                   t[9][4]= 4, t[9][7]= 2;
                   ^ ~
main.c:397:9: note: array 't' declared here
       int t [SIZE][SIZE];
       ^
main.c:428:33: warning: array index 9 is past the end of the array (which
     contains 9 elements) [-Warray-bounds]
                   t[9][4]= 4, t[9][7]= 2;
                               ^ ~
main.c:397:9: note: array 't' declared here
       int t [SIZE][SIZE];
       ^
main.c:434:45: warning: array index 9 is past the end of the array (which
     contains 9 elements) [-Warray-bounds]
                   t[1][3]= 9, t[1][5]= 8, t[1][9]= 3, t[2][1]= 3,
                                           ^    ~
main.c:397:9: note: array 't' declared here
       int t [SIZE][SIZE];
       ^
main.c:436:57: warning: array index 9 is past the end of the array (which
     contains 9 elements) [-Warray-bounds]
                   t[4][5]= 5, t[4][6]= 1, t[4][7]= 2, t[4][9]= 7,
                                                       ^    ~
main.c:397:9: note: array 't' declared here
       int t [SIZE][SIZE];
       ^
main.c:437:57: warning: array index 9 is past the end of the array (which
     contains 9 elements) [-Warray-bounds]
                   t[5][5]= 9, t[5][7]= 4, t[6][1]= 8, t[6][9]= 5,
                                                       ^    ~
main.c:397:9: note: array 't' declared here
       int t [SIZE][SIZE];
       ^
main.c:440:21: warning: array index 9 is past the end of the array (which
     contains 9 elements) [-Warray-bounds]
                   t[9][7]= 7, t[9][9]= 1;
                   ^ ~
main.c:397:9: note: array 't' declared here
       int t [SIZE][SIZE];
       ^
main.c:440:33: warning: array index 9 is past the end of the array (which
     contains 9 elements) [-Warray-bounds]
                   t[9][7]= 7, t[9][9]= 1;
                               ^    ~
main.c:397:9: note: array 't' declared here
       int t [SIZE][SIZE];
       ^
main.c:440:33: warning: array index 9 is past the end of the array (which
     contains 9 elements) [-Warray-bounds]
                   t[9][7]= 7, t[9][9]= 1;
                               ^ ~
main.c:397:9: note: array 't' declared here
       int t [SIZE][SIZE];
       ^
main.c:449:21: warning: array index 9 is past the end of the array (which
     contains 9 elements) [-Warray-bounds]
                   t[4][9]= 2, t[5][2]= 8, t[6][1]= 1, t[7][2]= 2,
                   ^    ~
main.c:397:9: note: array 't' declared here
       int t [SIZE][SIZE];
       ^
main.c:450:33: warning: array index 9 is past the end of the array (which
     contains 9 elements) [-Warray-bounds]
                   t[7][3]= 7, t[7][9]= 9, t[8][3]= 9, t[8][5]= 3,
                               ^    ~
main.c:397:9: note: array 't' declared here
       int t [SIZE][SIZE];
       ^
main.c:451:33: warning: array index 9 is past the end of the array (which
     contains 9 elements) [-Warray-bounds]
                   t[8][8]= 6, t[9][1]= 5, t[9][6]= 7;
                               ^ ~
main.c:397:9: note: array 't' declared here
       int t [SIZE][SIZE];
       ^
main.c:451:45: warning: array index 9 is past the end of the array (which
     contains 9 elements) [-Warray-bounds]
                   t[8][8]= 6, t[9][1]= 5, t[9][6]= 7;
                                           ^ ~
main.c:397:9: note: array 't' declared here
       int t [SIZE][SIZE];
       ^
main.c:458:21: warning: array inde? ./main
x 9 is past the end of the array (which
     contains 9 elements) [-Warray-bounds]
                   t[2][9]= 7, t[3][2]= 4, t[3][5]= 5, t[3][6]= 8,
                   ^    ~
main.c:397:9: note: array 't' declared here
       int t [SIZE][SIZE];
       ^
main.c:459:57: warning: array index 9 is past the end of the array (which
     contains 9 elements) [-Warray-bounds]
                   t[3][8]= 2, t[4][3]= 5, t[4][5]= 3, t[4][9]= 8,
                                                       ^    ~
main.c:397:9: note: array 't' declared here
       int t [SIZE][SIZE];
       ^
main.c:461:57: warning: array index 9 is past the end of the array (which
     contains 9 elements) [-Warray-bounds]
                   t[7][6]= 1, t[7][8]= 6, t[8][3]= 7, t[9][2]= 3,
                                                       ^ ~
main.c:397:9: note: array 't' declared here
       int t [SIZE][SIZE];
       ^
main.c:462:21: warning: array index 9 is past the end of the array (which
     contains 9 elements) [-Warray-bounds]
                   t[9][5]= 4, t[9][7]= 8;
                   ^ ~
main.c:397:9: note: array 't' declared here
       int t [SIZE][SIZE];
       ^
main.c:462:33: warning: array index 9 is past the end of the array (which
     contains 9 elements) [-Warray-bounds]
                   t[9][5]= 4, t[9][7]= 8;
                               ^ ~
main.c:397:9: note: array 't' declared here
       int t [SIZE][SIZE];
       ^
main.c:471:57: warning: array index 9 is past the end of the array (which
     contains 9 elements) [-Warray-bounds]
                   t[7][5]= 6, t[8][7]= 2, t[8][8]= 1, t[9][3]= 1,
                                                       ^ ~
main.c:397:9: note: array 't' declared here
       int t [SIZE][SIZE];
       ^
main.c:472:21: warning: array index 9 is past the end of the array (which
     contains 9 elements) [-Warray-bounds]
                   t[9][4]= 4, t[9][7]= 8;
                   ^ ~
main.c:397:9: note: array 't' declared here
       int t [SIZE][SIZE];
       ^
main.c:472:33: warning: array index 9 is past the end of the array (which
     contains 9 elements) [-Warray-bounds]
                   t[9][4]= 4, t[9][7]= 8;
                               ^ ~
main.c:397:9: note: array 't' declared here
       int t [SIZE][SIZE];
       ^
main.c:483:21: warning: array index 9 is past the end of the array (which
     contains 9 elements) [-Warray-bounds]
                   t[9][3]= 1, t[9][6]= 5, t[9][9]= 8;
                   ^ ~
main.c:397:9: note: array 't' declared here
       int t [SIZE][SIZE];
       ^
main.c:483:33: warning: array index 9 is past the end of the array (which
     contains 9 elements) [-Warray-bounds]
                   t[9][3]= 1, t[9][6]= 5, t[9][9]= 8;
                               ^ ~
main.c:397:9: note: array 't' declared here
       int t [SIZE][SIZE];
       ^
main.c:483:45: warning: array index 9 is past the end of the array (which
     contains 9 elements) [-Warray-bounds]
                   t[9][3]= 1, t[9][6]= 5, t[9][9]= 8;
                                           ^    ~
main.c:397:9: note: array 't' declared her       Bienvenidos a sudoku
elija su dificultad:
(1) Easy.
(2) Medium.
(3) Hard.
opcion: e
       int t [SIZE][SIZE];
       ^
main.c:483:45: warning: array index 9 is past the end of the array (which
     contains 9 elements) [-Warray-bounds]
                   t[9][3]= 1, t[9][6]= 5, t[9][9]= 8;
                                           ^ ~
main.c:397:9: note: array 't' declared here
       int t [SIZE][SIZE];
       ^
main.c:491:33: warning: array index 9 is past the end of the array (which
     contains 9 elements) [-Warray-bounds]
                   t[4][8]= 4, t[4][9]= 9, t[5][2]= 9, t[5][5]= 1,
                               ^    ~
main.c:397:9: note: array 't' declared here
       int t [SIZE][SIZE];
       ^
main.c:492:33: warning: array index 9 is past the end of the array (which
     contains 9 elements) [-Warray-bounds]
                   t[4][6]= 2, t[4][9]= 9, t[5][1]= 9, t[5][5]= 3,
                               ^    ~
main.c:397:9: note: array 't' declared here
       int t [SIZE][SIZE];
       ^
main.c:494:21: warning: array index 9 is past the end of the array (which
     contains 9 elements) [-Warray-bounds]
                   t[6][9]= 1, t[7][5]= 2, t[7][7]= 3, t[7][8]= 1,
                   ^    ~
main.c:397:9: note: array 't' declared here
       int t [SIZE][SIZE];
       ^
main.c:495:57: warning: array index 9 is past the end of the array (which
     contains 9 elements) [-Warray-bounds]
                   t[8][6]= 1, t[8][7]= 6, t[8][8]= 4, t[9][9]= 8;
                                                       ^    ~
main.c:397:9: note: array 't' declared here
       int t [SIZE][SIZE];
       ^
main.c:495:57: warning: array index 9 is past the end of the array (which
     contains 9 elements) [-Warray-bounds]
                   t[8][6]= 1, t[8][7]= 6, t[8][8]= 4, t[9][9]= 8;
                                                       ^ ~
main.c:397:9: note: array 't' declared here
       int t [SIZE][SIZE];
       ^
main.c:502:57: warning: array index 9 is past the end of the array (which
     contains 9 elements) [-Warray-bounds]
                   t[3][2]= 1, t[3][4]= 4, t[3][8]= 3, t[3][9]= 9,
                                                       ^    ~
main.c:397:9: note: array 't' declared here
       int t [SIZE][SIZE];
       ^
main.c:506:21: warning: array index 9 is past the end of the array (which
     contains 9 elements) [-Warray-bounds]
                   t[8][9]= 3, t[9][4]= 5, t[9][5]= 9, t[9][6]= 4;
                   ^    ~
main.c:397:9: note: array 't' declared here
       int t [SIZE][SIZE];
       ^
main.c:506:33: warning: array index 9 is past the end of the array (which
     contains 9 elements) [-Warray-bounds]
                   t[8][9]= 3, t[9][4]= 5, t[9][5]= 9, t[9][6]= 4;
                               ^ ~
main.c:397:9: note: array 't' declared here
       int t [SIZE][SIZE];
       ^
main.c:506:45: warning: array index 9 is past the end of the array (which
     contains 9 elements) [-Warray-bounds]
                   t[8][9]= 3, t[9][4]= 5, t[9][5]= 9, t[9][6]= 4;
                                           ^ ~
main.c:397:9: note: array 't' declared here
       int t [SIZE][SIZE];
       ^
main.c:506:57: warning: array index 9 is past the end of the array (which
     contains 9 elements) [-Warray-bounds]
                   t[8][9]= 3, t[9][4]= 5, t[9][5]= 9, t[9][6]= 4;
                                                       ^ ~
main.c:397:9: note: array 't' declared here
       int t [SIZE][SIZE];
       ^
main.c:516:21: warning: array index 9 is past the end of the array (which
     contains 9 elements) [-Warray-bounds]
                   t[5][9]= 8, t[6][8]= 9, t[6][9]= 1, t[7][3]= 2,
                   ^    ~
main.c:397:9: note: array 't' declared here
       int t [SIZE][SIZE];
       ^
main.c:516:45: warning: array index 9 is past the end of the array (which
     contains 9 elements) [-Warray-bounds]
                   t[5][9]= 8, t[6][8]= 9, t[6][9]= 1, t[7][3]= 2,
                                           ^    ~
main.c:397:9: note: array 't' declared here
       int t [SIZE][SIZE];
       ^
main.c:517:57: warning: array index 9 is past the end of the array (which
     contains 9 elements) [-Warray-bounds]
                   t[7][5]= 1, t[7][6]= 4, t[8][6]= 3, t[9][1]= 7,
                                                       ^ ~
main.c:397:9: note: array 't' declared here
       int t [SIZE][SIZE];
       ^
main.c:518:21: warning: array index 9 is past the end of the array (which
     contains 9 elements) [-Warray-bounds]
                   t[9][2]= 4, t[9][6]= 8, t[9][7]= 5, t[9][9]= 9;
                   ^ ~
main.c:397:9: note: array 't' declared here
       int t [SIZE][SIZE];
       ^
main.c:518:33: warning: array index 9 is past the end of the array (which
     contains 9 elements) [-Warray-bounds]
                   t[9][2]= 4, t[9][6]= 8, t[9][7]= 5, t[9][9]= 9;
                               ^ ~
main.c:397:9: note: array 't' declared here
       int t [SIZE][SIZE];
       ^
main.c:518:45: warning: array index 9 is past the end of the array (which
     contains 9 elements) [-Warray-bounds]
                   t[9][2]= 4, t[9][6]= 8, t[9][7]= 5, t[9][9]= 9;
                                           ^ ~
main.c:397:9: note: array 't' declared here
       int t [SIZE][SIZE];
       ^
main.c:518:57: warning: array index 9 is past the end of the array (which
     contains 9 elements) [-Warray-bounds]
                   t[9][2]= 4, t[9][6]= 8, t[9][7]= 5, t[9][9]= 9;
                                                       ^    ~
main.c:397:9: note: array 't' declared here
       int t [SIZE][SIZE];
       ^
main.c:518:57: warning: array index 9 is past the end of the array (which
     contains 9 elements) [-Warray-bounds]
                   t[9][2]= 4, t[9][6]= 8, t[9][7]= 5, t[9][9]= 9;
                                                       ^ ~
main.c:397:9: note: array 't' declared here
       int t [SIZE][SIZE];
       ^
main.c:525:37: warning: array index 9 is past the end of the array (which
     contains 9 elements) [-Warray-bounds]
           t[3][5]= 9, t[3][7]= 7, t[3][9]= 5, t[4][1]= 1,
                                   ^    ~
main.c:397:9: note: array 't' declared here
       int t [SIZE][SIZE];
       ^
main.c:529:13: warning: array index 9 is past the end of the array (which
     contains 9 elements) [-Warray-bounds]
           t[9][1]= 8, t[9][5]= 1, t[9][7]= 2;
           ^ ~
main.c:397:9: note: array 't' declared here
       int t [SIZE][SIZE];
       ^
main.c:529:25: warning: array index 9 is past the end of the array (which
     contains 9 elements) [-Warray-bounds]
           t[9][1]= 8, t[9][5]= 1, t[9][7]= 2;
                       ^ ~
main.c:397:9: note: array 't' declared here
       int t [SIZE][SIZE];
       ^
main.c:529:37: warning: array index 9 is past the end of the array (which
     contains 9 elements) [-Warray-bounds]
           t[9][1]= 8, t[9][5]= 1, t[9][7]= 2;
                                   ^ ~
main.c:397:9: note: array 't' declared here
       int t [SIZE][SIZE];
       ^
main.c:586:21: warning: format specifies type 'int *' but the argument
     has type 'char *' [-Wformat]
       scanf("%d", &m);
              ~~   ^~
              %s
158 warnings generated.






(No se puede continuar esta discusión porque tiene más de dos meses de antigüedad. Si tienes dudas parecidas, abre un nuevo hilo.)