Svp quelqu'un m'aider àcorriger les fautes
Résolu/Fermé
lamiabmw
Messages postés
6
Date d'inscription
jeudi 27 novembre 2014
Statut
Membre
Dernière intervention
29 novembre 2014
-
27 nov. 2014 à 17:08
lamiabmw Messages postés 6 Date d'inscription jeudi 27 novembre 2014 Statut Membre Dernière intervention 29 novembre 2014 - 29 nov. 2014 à 13:55
lamiabmw Messages postés 6 Date d'inscription jeudi 27 novembre 2014 Statut Membre Dernière intervention 29 novembre 2014 - 29 nov. 2014 à 13:55
A voir également:
- Svp quelqu'un m'aider àcorriger les fautes
- Word ne corrige plus les fautes ✓ - Forum Word
- Je cherche quelqu'un pour m'aider - Forum YouTube
- Fautes matérielles mémoire ✓ - Forum Windows 10
- L'assistant google est prêt à vous aider - Forum Huawei
- Des problèmes sont survenus lors de l'installation des mises à jour, mais nous réessaierons ultérieurement. si le problème persiste et que vous souhaitez rechercher des informations sur internet ou contacter l'assistance pour en obtenir, ceci peut vous aider : (0x80070643) ✓ - Forum Windows
1 réponse
[Dal]
Messages postés
6174
Date d'inscription
mercredi 15 septembre 2004
Statut
Contributeur
Dernière intervention
2 février 2024
1 083
Modifié par [Dal] le 28/11/2014 à 15:27
Modifié par [Dal] le 28/11/2014 à 15:27
Salut Lamia,
Ben, en précédant ton code de 3 lignes pour inclure #include <stdio.h> et #include <string.h> et un espace pour faire joli et une fonction main vide à la fin, gcc -Wall se plaint quand même de tout cela :
Cela devrait te donner des indications sur la nature des "fautes".
Dal
Ben, en précédant ton code de 3 lignes pour inclure #include <stdio.h> et #include <string.h> et un espace pour faire joli et une fonction main vide à la fin, gcc -Wall se plaint quand même de tout cela :
lamiabmw.c: In function `configurer_parcours':
lamiabmw.c:21:3: warning: format `%s' expects argument of type `char *', but argument 2 has type `int' [-Wformat]
lamiabmw.c:22:3: warning: passing argument 2 of `strcat' makes pointer from integer without a cast [enabled by default]
In file included from lamiabmw.c:2:0:
/usr/include/string.h:136:14: note: expected `const char * __restrict__' but argument is of type `char'
lamiabmw.c:37:3: warning: format `%s' expects argument of type `char *', but argument 2 has type `int' [-Wformat]
lamiabmw.c:39:19: error: `i' undeclared (first use in this function)
lamiabmw.c:39:19: note: each undeclared identifier is reported only once for each function it appears in
lamiabmw.c:41:4: warning: passing argument 2 of `strcmp' makes pointer from integer without a cast [enabled by default]
In file included from lamiabmw.c:2:0:
/usr/include/string.h:143:12: note: expected `const char *' but argument is of type `char'
Cela devrait te donner des indications sur la nature des "fautes".
Dal
29 nov. 2014 à 13:48
29 nov. 2014 à 13:55
Administration.c:92:1: warning: passing argument 1 of `strcpy' makes pointer from integer without a cast [enabled by default]
strcpy(parcours[i],parcours[i+1]);
^
In file included from Administration.c:2:0:
/usr/include/string.h:129:14: note: expected `char * __restrict__' but argument is of type `char'
extern char *strcpy (char *__restrict __dest, const char *__restrict __src)
^
Administration.c:92:1: warning: passing argument 2 of `strcpy' makes pointer from integer without a cast [enabled by default]
strcpy(parcours[i],parcours[i+1]);
^
In file included from Administration.c:2:0:
/usr/include/string.h:129:14: note: expected `const char * __restrict__' but argument is of type `char'
extern char *strcpy (char *__restrict __dest, const char *__restrict __src)