Bonjour , voila mon code:
Mais voila le retour du terminal:
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 #include <stdio.h> #include <stdlib.h> #define M 150 int somme_elmt (int t[][],int taillei,int taillej) { int i,j,somme=0; for (i=0;i<taillei;i++) { for (j=0;j<taillej;j++) { somme+=t[i][j]; } } return somme; } int main() { int i,j,t[M][M]; sdrand(time(NULL)); for (i=0;i<M;i++) { for (j=0;j<M;j++) { t[i][j]=rand()%11; } } printf ("%d",somme_elmt(t,M,M)); return 0; }
Je ne comprends pas ce qu'il me manque ligne 5 et 30 , surement une erreur de syntaxe mais je vois pas laquelle...Donc si vous savez.td3.3.c:5: error: array type has incomplete element type
td3.3.c: In function ‘main’:
td3.3.c:30: error: type of formal parameter 1 is incomplete
Merci.
Partager