/in/ex2.c: In function 'main':
/in/ex2.c:9:16: warning: format '%s' expects argument of type 'char *', but argument 3 has type 'char * (*)[1]' [-Wformat=]
scanf("%d %s",&m,&d);
^
In file included from /usr/include/string.h:630:0,
from /in/ex2.c:2:
/in/ex2.c:14:20: warning: passing argument 1 of '__builtin_strlen' from incompatible pointer type [-Wincompatible-pointer-types]
if (strcmp(d,day[i-1]) == 0)
^
/in/ex2.c:14:20: note: expected 'const char *' but argument is of type 'char **'
/in/ex2.c:14:20: warning: passing argument 1 of '__builtin_strcmp' from incompatible pointer type [-Wincompatible-pointer-types]
if (strcmp(d,day[i-1]) == 0)
^
/in/ex2.c:14:20: note: expected 'const char *' but argument is of type 'char **'
/in/ex2.c:14:20: warning: passing argument 1 of '__builtin_strlen' from incompatible pointer type [-Wincompatible-pointer-types]
if (strcmp(d,day[i-1]) == 0)
^
/in/ex2.c:14:20: note: expected 'const char *' but argument is of type 'char **'
/in/ex2.c:14:20: warning: passing argument 1 of '__builtin_strcmp' from incompatible pointer type [-Wincompatible-pointer-types]
if (strcmp(d,day[i-1]) == 0)
^
/in/ex2.c:14:20: note: expected 'const char *' but argument is of type 'char **'
/in/ex2.c:14:20: warning: passing argument 1 of '__builtin_strcmp' from incompatible pointer type [-Wincompatible-pointer-types]
if (strcmp(d,day[i-1]) == 0)
^
/in/ex2.c:14:20: note: expected 'const char *' but argument is of type 'char **'
/in/ex2.c:14:20: warning: passing argument 1 of '__builtin_strcmp' from incompatible pointer type [-Wincompatible-pointer-types]
if (strcmp(d,day[i-1]) == 0)
^
/in/ex2.c:14:20: note: expected 'const char *' but argument is of type 'char **'
/in/ex2.c:32:5: warning: 'k' may be used uninitialized in this function [-Wmaybe-uninitialized]
for (int n = 1; n <= k; ++n) {
^~~