Bonjour, j'ai un petit souci avec un petit programme C dont j'ai besoin pour mes cours mais malheureusement, je ne trouve pas la solution :s

Voici le code :

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
41
42
43
44
45
46
47
48
49
50
#include <stdlib.h>
#include <stdio.h>
#include <glpk.h> /* l'entête de glpk */
 
 
int main(int argc, char *argv[])
{
 
    FILE* fichier = NULL;
    char type;
    fichier = fopen("exo6.txt", "r");
    int l2_nb_var_struc;
    int l3_nb_cont;
    int l4_nb_coeff;
    int* indice_ligne;
 
	int a, b;
	float c;
 
 
 
    if (fichier != NULL)
    {
        fscanf(fichier, "%s" , &type );
        printf("min/max : %s \n", &type);
 
	fscanf(fichier, "%i" , &l2_nb_var_struc );
        printf(" nb_var_struc: %i \n", l2_nb_var_struc);
 
	fscanf(fichier, "%i" , &l3_nb_cont );
        printf("nb_cont : %i \n", l3_nb_cont);
 
	fscanf(fichier, "%i" , &l4_nb_coeff );
        printf("nb_coeff : %i \n", l4_nb_coeff);
 
        int tableau[l4_nb_coeff];
 
        int i =0 ;
	for(i=0;i<l4_nb_coeff;i++){
		printf("i vaut %i \t", i);
		fscanf(fichier, "%i %i %f" , &a, &b, &c );
		printf("indices : %i %i %f \n", a, b, c);
		printf("abc \t");	
	}
	printf("test");
        fclose(fichier);
    }
 
    return 0;
}
Le fichier que je lis correspond bien à ce que je demande lors du scanf mais malheureusement lors du dernier appel de la boucle il me fait l'erreur.

Si quelqu'un voit la boulette que j'ai pu faire je l'en remercie