Language: C

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

    int x,y,z;
    int strcmp(const char*a,const char*b,const char*c){
    a=*((*char)x), b=*((*char)y) ,c=*((*char)z);

    return strcmp(a,b,c);
 }



int main(){
    char a[18],b[25],c[28];


    for(int i=0; i < 18;i++){
        scanf("%s",a);
    }
    for(int j=0;j<25;j++){
        scanf("%s",b);
    }
    for (int k=0;k<28;k++){
        scanf("%s",c);
    }



        if ((strcmp(a[n-1],b[1])==0) && (strcmp(b[j-1],c[1])==0)){
            printf("YES\n");

        } else{
            printf("NO\n");
        }






    return 0;
}


Compiler output:
main.c:5:9: error: conflicting types for 'strcmp'; have 'int(const char *, const char *, const char *)'
    5 |     int strcmp(const char*a,const char*b,const char*c){
      |         ^~~~~~
In file included from main.c:2:
/usr/include/string.h:156:12: note: previous declaration of 'strcmp' with type 'int(const char *, const char *)'
  156 | extern int strcmp (const char *__s1, const char *__s2)
      |            ^~~~~~
main.c: In function 'strcmp':
main.c:6:11: error: expected expression before 'char'
    6 |     a=*((*char)x), b=*((*char)y) ,c=*((*char)z);
      |           ^~~~
main.c:6:16: error: expected ')' before 'x'
    6 |     a=*((*char)x), b=*((*char)y) ,c=*((*char)z);
      |        ~       ^
      |                )
main.c:6:26: error: expected expression before 'char'
    6 |     a=*((*char)x), b=*((*char)y) ,c=*((*char)z);
      |                          ^~~~
main.c:6:31: error: expected ')' before 'y'
    6 |     a=*((*char)x), b=*((*char)y) ,c=*((*char)z);
      |                       ~       ^
      |                               )
main.c:6:41: error: expected expression before 'char'
    6 |     a=*((*char)x), b=*((*char)y) ,c=*((*char)z);
      |                                         ^~~~
main.c:6:46: error: expected ')' before 'z'
    6 |     a=*((*char)x), b=*((*char)y) ,c=*((*char)z);
      |                                      ~       ^
      |                                              )
main.c: In function 'main':
main.c:29:23: error: 'n' undeclared (first use in this function)
   29 |         if ((strcmp(a[n-1],b[1])==0) && (strcmp(b[j-1],c[1])==0)){
      |                       ^
main.c:29:23: note: each undeclared identifier is reported only once for each function it appears in
main.c:29:29: error: passing argument 2 of 'strcmp' makes pointer from integer without a cast [-Wint-conversion]
   29 |         if ((strcmp(a[n-1],b[1])==0) && (strcmp(b[j-1],c[1])==0)){
      |                            ~^~~
      |                             |
      |                             char
main.c:5:40: note: expected 'const char *' but argument is of type 'char'
    5 |     int strcmp(const char*a,const char*b,const char*c){
      |                             ~~~~~~~~~~~^
main.c:29:14: error: too few arguments to function 'strcmp'
   29 |         if ((strcmp(a[n-1],b[1])==0) && (strcmp(b[j-1],c[1])==0)){
      |              ^~~~~~
main.c:5:9: note: declared here
    5 |     int strcmp(const char*a,const char*b,const char*c){
      |         ^~~~~~
main.c:29:51: error: 'j' undeclared (first use in this function)
   29 |         if ((strcmp(a[n-1],b[1])==0) && (strcmp(b[j-1],c[1])==0)){
      |                                                   ^
main.c:29:57: error: passing argument 2 of 'strcmp' makes pointer from integer without a cast [-Wint-conversion]
   29 |         if ((strcmp(a[n-1],b[1])==0) && (strcmp(b[j-1],c[1])==0)){
      |                                                        ~^~~
      |                                                         |
      |                                                         char
main.c:5:40: note: expected 'const char *' but argument is of type 'char'
    5 |     int strcmp(const char*a,const char*b,const char*c){
      |                             ~~~~~~~~~~~^
main.c:29:42: error: too few arguments to function 'strcmp'
   29 |         if ((strcmp(a[n-1],b[1])==0) && (strcmp(b[j-1],c[1])==0)){
      |                                          ^~~~~~
main.c:5:9: note: declared here
    5 |     int strcmp(const char*a,const char*b,const char*c){
      |         ^~~~~~