prog.c: In function ‘main’:
prog.c:11:2: warning: implicit declaration of function ‘scanf_s’ [-Wimplicit-function-declaration]
scanf_s("%s", ten);
^~~~~~~
prog.c:14:11: warning: format ‘%s’ expects argument of type ‘char *’, but argument 2 has type ‘int’ [-Wformat=]
printf("%s", ten[0]);
^
prog.c:13:6: warning: unused variable ‘n’ [-Wunused-variable]
int n = strlen(ten);
^
prog.c: In function ‘Chu_Dau’:
prog.c:32:14: warning: format ‘%s’ expects argument of type ‘char *’, but argument 2 has type ‘int’ [-Wformat=]
printf("%s ", s[i + 1]);
^
/home/OgvMdR/cc63pFsh.o: In function `main':
prog.c:(.text.startup+0x20): undefined reference to `scanf_s'
collect2: error: ld returned 1 exit status