Advertisement
Guest User

Untitled

a guest
Oct 31st, 2014
159
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 1.64 KB | None | 0 0
  1. d4nd@w1th3:~$ gcc test.c -o test
  2. test.c: In function ‘main’:
  3. test.c:35:9: warning: format ‘%s’ expects argument of type ‘char *, but argument 2 has type ‘char (*)[20][-Wformat=]
  4.          scanf("%s",&nome);
  5.          ^
  6. test.c:39:9: warning: format ‘%s’ expects argument of type ‘char *, but argument 2 has type ‘char (*)[20][-Wformat=]
  7.          scanf("%s",&endereco);
  8.          ^
  9. test.c:45:9: warning: format ‘%s’ expects argument of type ‘char *, but argument 2 has type ‘char (*)[10][-Wformat=]
  10.          scanf("%s",&bairro);
  11.          ^
  12. test.c:47:9: warning: format ‘%s’ expects argument of type ‘char *, but argument 2 has type ‘char (*)[15][-Wformat=]
  13.          scanf("%s",&cidade);
  14.          ^
  15. test.c:49:9: warning: format ‘%s’ expects argument of type ‘char *, but argument 2 has type ‘char (*)[15][-Wformat=]
  16.          scanf("%s",&estado);
  17.          ^
  18. test.c:57:9: warning: passing argument 1 of ‘strcmp’ makes pointer from integer without a cast [enabled by default]
  19.          if(strcmp(menu2,'S')==0)
  20.          ^
  21. In file included from test.c:3:0:
  22. /usr/include/string.h:144:12: note: expected ‘const char *’ but argument is of type ‘int
  23.  extern int strcmp (const char *__s1, const char *__s2)
  24.             ^
  25. test.c:57:9: warning: passing argument 2 of ‘strcmp’ makes pointer from integer without a cast [enabled by default]
  26.          if(strcmp(menu2,'S')==0)
  27.          ^
  28. In file included from test.c:3:0:
  29. /usr/include/string.h:144:12: note: expected ‘const char *’ but argument is of type ‘int
  30.  extern int strcmp (const char *__s1, const char *__s2)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement