mon programme est autour d'automate finis non déterministe mais je ne sais pas pourqoi il n'execute pas voici une parti du programme je veux savoir s'il y a des erreurs:

Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
#include<stdio.h>
#include<conio.h>
#include<stdlib.h>
#include<string.h>
int nbr etat,nbr alph,tab *fin;
char *mot;
 
typedef struct etats { 
                                 int etat;
                                 struct etats*next;
                             }ptr; 
ptr*mat[nbr etat][nbr alph];
 
void mot()
{printf("entrez le mot que vous voulez tester");
 scanf("%s",mot);
}
 
/*creation d'une liste chainée*/
 
ptr *creer() 
{
  int q;
 
 ptr *pt;
 scanf("%d",&q) ; 
 
if(q==-1) return NULL;
 
else
{
 
pt=(ptr*)malloc(sizeof(ptr));   
 
pt->etat=q;
 
pt->svt=creer();
}
return pt;
}