Language: C

#include<stdio.h>
#include<stdlib.h>
#include<string.h>

#define N 100
#define L 100

int main()
{
  char text[N],senten[N*L],tem[L];
  int i,j;
  
  for(i=0; i<N; i++)
  {
   scanf(%s,text[i]); 
  }
  
  for(i=1; i<L; i++)
  {
   for(j=1; j<N; j++)
   {
     if(strcmp(text[j-1], text[j]) > 0)
     {
       strcpy(tem, text[j-1]);
       strcpy(text[j-1], text[j]);
       strcpy(text[j], tem);
     }
   }
  }
  for(i=0; i<N; i++)
  {
  	memcpy(senten, text[i], L);
  }
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:15:10: error: expected expression before '%' token
   15 |    scanf(%s,text[i]);
      |          ^
main.c:22:20: error: passing argument 1 of 'strcmp' makes pointer from integer without a cast [-Wint-conversion]
   22 |      if(strcmp(text[j-1], text[j]) > 0)
      |                ~~~~^~~~~
      |                    |
      |                    char
In file included from main.c:3:
/usr/include/string.h:156:32: note: expected 'const char *' but argument is of type 'char'
  156 | extern int strcmp (const char *__s1, const char *__s2)
      |                    ~~~~~~~~~~~~^~~~
main.c:22:31: error: passing argument 2 of 'strcmp' makes pointer from integer without a cast [-Wint-conversion]
   22 |      if(strcmp(text[j-1], text[j]) > 0)
      |                           ~~~~^~~
      |                               |
      |                               char
/usr/include/string.h:156:50: note: expected 'const char *' but argument is of type 'char'
  156 | extern int strcmp (const char *__s1, const char *__s2)
      |                                      ~~~~~~~~~~~~^~~~
main.c:24:24: error: passing argument 2 of 'strcpy' makes pointer from integer without a cast [-Wint-conversion]
   24 |        strcpy(tem, text[j-1]);
      |                    ~~~~^~~~~
      |                        |
      |                        char
/usr/include/string.h:141:70: note: expected 'const char * restrict' but argument is of type 'char'
  141 | extern char *strcpy (char *__restrict __dest, const char *__restrict __src)
      |                                               ~~~~~~~~~~~~~~~~~~~~~~~^~~~~
main.c:25:19: error: passing argument 1 of 'strcpy' makes pointer from integer without a cast [-Wint-conversion]
   25 |        strcpy(text[j-1], text[j]);
      |               ~~~~^~~~~
      |                   |
      |                   char
/usr/include/string.h:141:39: note: expected 'char * restrict' but argument is of type 'char'
  141 | extern char *strcpy (char *__restrict __dest, const char *__restrict __src)
      |                      ~~~~~~~~~~~~~~~~~^~~~~~
main.c:25:30: error: passing argument 2 of 'strcpy' makes pointer from integer without a cast [-Wint-conversion]
   25 |        strcpy(text[j-1], text[j]);
      |                          ~~~~^~~
      |                              |
      |                              char
/usr/include/string.h:141:70: note: expected 'const char * restrict' but argument is of type 'char'
  141 | extern char *strcpy (char *__restrict __dest, const char *__restrict __src)
      |                                               ~~~~~~~~~~~~~~~~~~~~~~~^~~~~
main.c:26:19: error: passing argument 1 of 'strcpy' makes pointer from integer without a cast [-Wint-conversion]
   26 |        strcpy(text[j], tem);
      |               ~~~~^~~
      |                   |
      |                   char
/usr/include/string.h:141:39: note: expected 'char * restrict' but argument is of type 'char'
  141 | extern char *strcpy (char *__restrict __dest, const char *__restrict __src)
      |                      ~~~~~~~~~~~~~~~~~^~~~~~
main.c:32:28: error: passing argument 2 of 'memcpy' makes pointer from integer without a cast [-Wint-conversion]
   32 |         memcpy(senten, text[i], L);
      |                        ~~~~^~~
      |                            |
      |                            char
/usr/include/string.h:43:70: note: expected 'const void * restrict' but argument is of type 'char'
   43 | extern void *memcpy (void *__restrict __dest, const void *__restrict __src,
      |                                               ~~~~~~~~~~~~~~~~~~~~~~~^~~~~