Language: C

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

void main(int){
	int i = 0;
	int cnt = 0;
  	char s[4];

	scanf("%c",s[0]);
	scanf("%c",s[1]);
	scanf("%c",s[2]);
    scanf("%c",s[3]);
  
  if(strcmp(s[0],s[1]==1)){
  	cnt++;
  }
    if(strcmp(s[0],s[2]==1)){
  	cnt++;
  }
    if(strcmp(s[0],s[3]==1)){
  	cnt++;
  }
    if(strcmp(s[1],s[2]==1)){
  	cnt++;
  }
    if(strcmp(s[1],s[3]==1)){
  	cnt++;
  }
    if(strcmp(s[2],s[3]==1)){
  	cnt++;
  }
  if(cnt == 2){
   printf("Yes")
  }else{
   printf("No")
  }
  
  return 0;

}


Compiler output:
main.c: In function 'main':
main.c:14:14: error: passing argument 1 of 'strcmp' makes pointer from integer without a cast [-Wint-conversion]
   14 |   if(strcmp(s[0],s[1]==1)){
      |             ~^~~
      |              |
      |              char
In file included from main.c:2:
/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:14:22: error: passing argument 2 of 'strcmp' makes pointer from integer without a cast [-Wint-conversion]
   14 |   if(strcmp(s[0],s[1]==1)){
      |                  ~~~~^~~
      |                      |
      |                      int
/usr/include/string.h:156:50: note: expected 'const char *' but argument is of type 'int'
  156 | extern int strcmp (const char *__s1, const char *__s2)
      |                                      ~~~~~~~~~~~~^~~~
main.c:17:16: error: passing argument 1 of 'strcmp' makes pointer from integer without a cast [-Wint-conversion]
   17 |     if(strcmp(s[0],s[2]==1)){
      |               ~^~~
      |                |
      |                char
/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:17:24: error: passing argument 2 of 'strcmp' makes pointer from integer without a cast [-Wint-conversion]
   17 |     if(strcmp(s[0],s[2]==1)){
      |                    ~~~~^~~
      |                        |
      |                        int
/usr/include/string.h:156:50: note: expected 'const char *' but argument is of type 'int'
  156 | extern int strcmp (const char *__s1, const char *__s2)
      |                                      ~~~~~~~~~~~~^~~~
main.c:20:16: error: passing argument 1 of 'strcmp' makes pointer from integer without a cast [-Wint-conversion]
   20 |     if(strcmp(s[0],s[3]==1)){
      |               ~^~~
      |                |
      |                char
/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:20:24: error: passing argument 2 of 'strcmp' makes pointer from integer without a cast [-Wint-conversion]
   20 |     if(strcmp(s[0],s[3]==1)){
      |                    ~~~~^~~
      |                        |
      |                        int
/usr/include/string.h:156:50: note: expected 'const char *' but argument is of type 'int'
  156 | extern int strcmp (const char *__s1, const char *__s2)
      |                                      ~~~~~~~~~~~~^~~~
main.c:23:16: error: passing argument 1 of 'strcmp' makes pointer from integer without a cast [-Wint-conversion]
   23 |     if(strcmp(s[1],s[2]==1)){
      |               ~^~~
      |                |
      |                char
/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:23:24: error: passing argument 2 of 'strcmp' makes pointer from integer without a cast [-Wint-conversion]
   23 |     if(strcmp(s[1],s[2]==1)){
      |                    ~~~~^~~
      |                        |
      |                        int
/usr/include/string.h:156:50: note: expected 'const char *' but argument is of type 'int'
  156 | extern int strcmp (const char *__s1, const char *__s2)
      |                                      ~~~~~~~~~~~~^~~~
main.c:26:16: error: passing argument 1 of 'strcmp' makes pointer from integer without a cast [-Wint-conversion]
   26 |     if(strcmp(s[1],s[3]==1)){
      |               ~^~~
      |                |
      |                char
/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:26:24: error: passing argument 2 of 'strcmp' makes pointer from integer without a cast [-Wint-conversion]
   26 |     if(strcmp(s[1],s[3]==1)){
      |                    ~~~~^~~
      |                        |
      |                        int
/usr/include/string.h:156:50: note: expected 'const char *' but argument is of type 'int'
  156 | extern int strcmp (const char *__s1, const char *__s2)
      |                                      ~~~~~~~~~~~~^~~~
main.c:29:16: error: passing argument 1 of 'strcmp' makes pointer from integer without a cast [-Wint-conversion]
   29 |     if(strcmp(s[2],s[3]==1)){
      |               ~^~~
      |                |
      |                char
/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:29:24: error: passing argument 2 of 'strcmp' makes pointer from integer without a cast [-Wint-conversion]
   29 |     if(strcmp(s[2],s[3]==1)){
      |                    ~~~~^~~
      |                        |
      |                        int
/usr/include/string.h:156:50: note: expected 'const char *' but argument is of type 'int'
  156 | extern int strcmp (const char *__s1, const char *__s2)
      |                                      ~~~~~~~~~~~~^~~~
main.c:33:17: error: expected ';' before '}' token
   33 |    printf("Yes")
      |                 ^
      |                 ;
   34 |   }else{
      |   ~              
main.c:35:16: error: expected ';' before '}' token
   35 |    printf("No")
      |                ^
      |                ;
   36 |   }
      |   ~             
main.c:38:10: error: 'return' with a value, in function returning void [-Wreturn-mismatch]
   38 |   return 0;
      |          ^
main.c:4:6: note: declared here
    4 | void main(int){
      |      ^~~~