Language: C

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

int main(){
  int N,L;
  scanf("%d %d",&N,&L);
  
  char temp[N];
  char str[N];
  
  int i,j;
  for(i=0;i<N;i++){
    scanf("%s",&str[i]);
  }
  for(i=0;i<N-1;i++){
    for(j=N-1;j>i;j--){
      if(strcmp(str[j-1],str[j])>0){
        strcpy(temp,str[j-1]);
        strcpy(str[j-1],str[j]);
        strcpy(str[j],temp);
      }
    }
  }
  
  for(i=0;i<N;i++){
    printf("%s",str[i]);
  }
  return 0;
}
  
      
      
      
      
    
  

Compiler output:
main.c:2:2: error: invalid preprocessing directive #iclude; did you mean #include?
    2 | #iclude<string.h>
      |  ^~~~~~
      |  include
main.c: In function 'main':
main.c:17:10: error: implicit declaration of function 'strcmp' [-Wimplicit-function-declaration]
   17 |       if(strcmp(str[j-1],str[j])>0){
      |          ^~~~~~
main.c:2:1: note: include '<string.h>' or provide a declaration of 'strcmp'
    1 | #include<stdio.h>
  +++ |+#include <string.h>
    2 | #iclude<string.h>
main.c:17:20: error: passing argument 1 of 'strcmp' makes pointer from integer without a cast [-Wint-conversion]
   17 |       if(strcmp(str[j-1],str[j])>0){
      |                 ~~~^~~~~
      |                    |
      |                    char
main.c:17:20: note: expected 'const char *' but argument is of type 'char'
main.c:17:29: error: passing argument 2 of 'strcmp' makes pointer from integer without a cast [-Wint-conversion]
   17 |       if(strcmp(str[j-1],str[j])>0){
      |                          ~~~^~~
      |                             |
      |                             char
main.c:17:29: note: expected 'const char *' but argument is of type 'char'
main.c:18:9: error: implicit declaration of function 'strcpy' [-Wimplicit-function-declaration]
   18 |         strcpy(temp,str[j-1]);
      |         ^~~~~~
main.c:18:9: note: include '<string.h>' or provide a declaration of 'strcpy'
main.c:18:9: warning: incompatible implicit declaration of built-in function 'strcpy' [-Wbuiltin-declaration-mismatch]
main.c:18:9: note: include '<string.h>' or provide a declaration of 'strcpy'
main.c:18:24: error: passing argument 2 of 'strcpy' makes pointer from integer without a cast [-Wint-conversion]
   18 |         strcpy(temp,str[j-1]);
      |                     ~~~^~~~~
      |                        |
      |                        char
main.c:18:24: note: expected 'const char *' but argument is of type 'char'
main.c:19:19: error: passing argument 1 of 'strcpy' makes pointer from integer without a cast [-Wint-conversion]
   19 |         strcpy(str[j-1],str[j]);
      |                ~~~^~~~~
      |                   |
      |                   char
main.c:19:19: note: expected 'char *' but argument is of type 'char'
main.c:19:28: error: passing argument 2 of 'strcpy' makes pointer from integer without a cast [-Wint-conversion]
   19 |         strcpy(str[j-1],str[j]);
      |                         ~~~^~~
      |                            |
      |                            char
main.c:19:28: note: expected 'const char *' but argument is of type 'char'
main.c:20:19: error: passing argument 1 of 'strcpy' makes pointer from integer without a cast [-Wint-conversion]
   20 |         strcpy(str[j],temp);
      |                ~~~^~~
      |                   |
      |                   char
main.c:20:19: note: expected 'char *' but argument is of type 'char'