Language: C++

#include<cstdio>
#include<cstring>
#include<cmath>
#include<algorithm>
using namespace std;
char a[1005];
char c[1005];
int main()
{int N,L,i,j;
scanf("%d %d",&N,&L);
for(int i=1;i<=N;i++)
	
		scanf("%s",a[i]);
		
		
	for(int i=1;i<N;i++)
		{for(int j=1;j<N-i;j++)
				if(strcmp(a[j],a[j+1])>0)
		{	strcpy(c,a[j+1]);
			strcpy(a[j+1],a[j]);
			strcpy(a[j],c);
		}
		}
		
		
		for(int i=1;i<N;i++)
		{printf("%s",a[i]);
		}
		printf("\n");
	
	
	
	return 0;
} 

Compiler output:
a.cc: In function 'int main()':
a.cc:18:46: error: invalid conversion from 'char' to 'const char*' [-fpermissive]
   18 |                                 if(strcmp(a[j],a[j+1])>0)
      |                                           ~~~^
      |                                              |
      |                                              char
In file included from /usr/include/c++/14/cstring:43,
                 from a.cc:2:
/usr/include/string.h:156:32: note:   initializing argument 1 of 'int strcmp(const char*, const char*)'
  156 | extern int strcmp (const char *__s1, const char *__s2)
      |                    ~~~~~~~~~~~~^~~~
a.cc:18:53: error: invalid conversion from 'char' to 'const char*' [-fpermissive]
   18 |                                 if(strcmp(a[j],a[j+1])>0)
      |                                                ~~~~~^
      |                                                     |
      |                                                     char
/usr/include/string.h:156:50: note:   initializing argument 2 of 'int strcmp(const char*, const char*)'
  156 | extern int strcmp (const char *__s1, const char *__s2)
      |                                      ~~~~~~~~~~~~^~~~
a.cc:19:39: error: invalid conversion from 'char' to 'const char*' [-fpermissive]
   19 |                 {       strcpy(c,a[j+1]);
      |                                  ~~~~~^
      |                                       |
      |                                       char
/usr/include/string.h:141:70: note:   initializing argument 2 of 'char* strcpy(char*, const char*)'
  141 | extern char *strcpy (char *__restrict __dest, const char *__restrict __src)
      |                                               ~~~~~~~~~~~~~~~~~~~~~~~^~~~~
a.cc:20:37: error: invalid conversion from 'char' to 'char*' [-fpermissive]
   20 |                         strcpy(a[j+1],a[j]);
      |                                ~~~~~^
      |                                     |
      |                                     char
/usr/include/string.h:141:39: note:   initializing argument 1 of 'char* strcpy(char*, const char*)'
  141 | extern char *strcpy (char *__restrict __dest, const char *__restrict __src)
      |                      ~~~~~~~~~~~~~~~~~^~~~~~
a.cc:20:42: error: invalid conversion from 'char' to 'const char*' [-fpermissive]
   20 |                         strcpy(a[j+1],a[j]);
      |                                       ~~~^
      |                                          |
      |                                          char
/usr/include/string.h:141:70: note:   initializing argument 2 of 'char* strcpy(char*, const char*)'
  141 | extern char *strcpy (char *__restrict __dest, const char *__restrict __src)
      |                                               ~~~~~~~~~~~~~~~~~~~~~~~^~~~~
a.cc:21:35: error: invalid conversion from 'char' to 'char*' [-fpermissive]
   21 |                         strcpy(a[j],c);
      |                                ~~~^
      |                                   |
      |                                   char
/usr/include/string.h:141:39: note:   initializing argument 1 of 'char* strcpy(char*, const char*)'
  141 | extern char *strcpy (char *__restrict __dest, const char *__restrict __src)
      |                      ~~~~~~~~~~~~~~~~~^~~~~~