#include <stdio.h> #include <stdlib.h> #include <string.h> int main() { int N,i; char a[10]; scanf("%d\n",&N); for(i=0;i<N;i++) { gets(a); printf("%s\n",strlwr(a)); } return 0; } /* Main.c: In function 'main': Main.c:11:9: warning: 'gets' is deprecated (declared at /usr/include/stdio.h:638) [-Wdeprecated-declarations] gets(a); ^ Main.c:12:9: warning: implicit declaration of function 'strlwr' [-Wimplicit-function-declaration] printf("%s\n",strlwr(a)); ^ Main.c:12:9: warning: format '%s' expects argument of type 'char *', but argument 2 has type 'int' [-Wformat=] /tmp/cclLvHGz.o: In function `main': Main.c:(.text+0x2f): warning: the `gets' function is dangerous and should not be used. Main.c:(.text+0x40): undefined reference to `strlwr' collect2: error: ld returned 1 exit status */ |
Double click to view unformatted code.