Salut à tous !
J'ai un problème lorsque je compile mon programme, "Erreur de segmentation (core dumped)" mais je ne vois pas où pourrait être mon erreur, est-ce qu'il y'aurait quelqu'un pour m'aider svp ?

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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
 
#include <stdio.h>
#include <stdlib.h>
#include <error.h>
 
int main ()
{
 float **tab=NULL;
 float fLongMin,fLongMax,fLatMin,fLatMax;
 int iNbLong=0, iNbLat=0,j,iLigne,iColonne;
 float i;
 
 	printf("Longitude min ? ");
	scanf("%f",&fLongMin);
 	printf("Longitude max ? ");
 	scanf("%f",&fLongMax);
 	printf("Latitude min ? ");
 	scanf("%f",&fLatMin);
 	printf("Latitude max ? ");
 	scanf("%f",&fLatMax);
 
	printf ("OK");
 
 iNbLong =((fLongMax - fLongMin)*100.0);
 iNbLat =((fLatMax - fLatMin)*100.0);
/************************************************/
/************** ALLOCATION MEMOIRE **************/
/************************************************/
 
 tab = malloc(iNbLat * sizeof(float));
 
 for(j=0; j<iNbLat; ++j)
 {
	tab[j] = malloc(iNbLong*sizeof(float)); 
 }
 
 /*if (tab[j]==NULL)
 {
	perror ("Erreur allocation tableau");
	return(-1);
 }*/
/************************************************/
/************************************************/
 
 
/************************************************/
/************ LONGITUDE - LATITUDE **************/
/************************************************/
 
 tab[iLigne][0] = fLatMin;
 for(iLigne=0; iLigne<iNbLat; ++iLigne)
 {
	tab[iLigne][0] = fLatMin+0.01; 
 }
 
 tab[0][iColonne] = fLongMin;
 for(iColonne=0; iColonne<iNbLong; ++j)
 {
	tab[0][iColonne] = fLongMin +0.01;
 }
 
/************************************************/
/************************************************/
 
 
/************************************************/
/************* SAISIE DES VALEURS ***************/
/************************************************/
 
 for(iLigne=1; iLigne<iNbLat; ++iLigne)
 {
	for(iColonne=1; iColonne<iNbLong; ++iColonne)
	{
		printf ("Entrez une valeur (entrez 0 pour indiquer de la terre) : ");
		scanf ("%f", &(tab[iLigne][iColonne]));
	}
 }
 
 
 
 
 
 
return 0;
}
L'erreur s'arrête avant le printf ("OK")