Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- d4nd@w1th3:~$ gcc test.c -o test
- test.c: In function ‘main’:
- test.c:35:9: warning: format ‘%s’ expects argument of type ‘char *’, but argument 2 has type ‘char (*)[20]’ [-Wformat=]
- scanf("%s",&nome);
- ^
- test.c:39:9: warning: format ‘%s’ expects argument of type ‘char *’, but argument 2 has type ‘char (*)[20]’ [-Wformat=]
- scanf("%s",&endereco);
- ^
- test.c:45:9: warning: format ‘%s’ expects argument of type ‘char *’, but argument 2 has type ‘char (*)[10]’ [-Wformat=]
- scanf("%s",&bairro);
- ^
- test.c:47:9: warning: format ‘%s’ expects argument of type ‘char *’, but argument 2 has type ‘char (*)[15]’ [-Wformat=]
- scanf("%s",&cidade);
- ^
- test.c:49:9: warning: format ‘%s’ expects argument of type ‘char *’, but argument 2 has type ‘char (*)[15]’ [-Wformat=]
- scanf("%s",&estado);
- ^
- test.c:57:9: warning: passing argument 1 of ‘strcmp’ makes pointer from integer without a cast [enabled by default]
- if(strcmp(menu2,'S')==0)
- ^
- In file included from test.c:3:0:
- /usr/include/string.h:144:12: note: expected ‘const char *’ but argument is of type ‘int’
- extern int strcmp (const char *__s1, const char *__s2)
- ^
- test.c:57:9: warning: passing argument 2 of ‘strcmp’ makes pointer from integer without a cast [enabled by default]
- if(strcmp(menu2,'S')==0)
- ^
- In file included from test.c:3:0:
- /usr/include/string.h:144:12: note: expected ‘const char *’ but argument is of type ‘int’
- extern int strcmp (const char *__s1, const char *__s2)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement