Language: C

#include<stdio.h>
int main(void){
  char s[3];
  scanf("%s",s);
  if(strcmp(s[0],A)==0){
    if(strcmp(s[1],B)==0)
      printf("Yes");
    if(strcmp(s[2],B)==0)
      printf("Yes");
    else
      printf("No");
  }
  if(strcmp(s[1],A)==0){
    if(strcmp(s[0],B)==0)
      printf("Yes");
    if(strcmp(s[2],B)==0)
      printf("Yes");
    else
      printf("No");
  }
  if(strcmp(s[2],A)==0){
    if(strcmp(s[0],B)==0)
      printf("Yes");
    if(strcmp(s[1],B)==0)
      printf("Yes");
    else
      printf("No");
  }
  return 0;
}


Compiler output:
main.c: In function 'main':
main.c:5:6: error: implicit declaration of function 'strcmp' [-Wimplicit-function-declaration]
    5 |   if(strcmp(s[0],A)==0){
      |      ^~~~~~
main.c:2:1: note: include '<string.h>' or provide a declaration of 'strcmp'
    1 | #include<stdio.h>
  +++ |+#include <string.h>
    2 | int main(void){
main.c:5:18: error: 'A' undeclared (first use in this function)
    5 |   if(strcmp(s[0],A)==0){
      |                  ^
main.c:5:18: note: each undeclared identifier is reported only once for each function it appears in
main.c:5:14: error: passing argument 1 of 'strcmp' makes pointer from integer without a cast [-Wint-conversion]
    5 |   if(strcmp(s[0],A)==0){
      |             ~^~~
      |              |
      |              char
main.c:5:14: note: expected 'const char *' but argument is of type 'char'
main.c:6:20: error: 'B' undeclared (first use in this function)
    6 |     if(strcmp(s[1],B)==0)
      |                    ^
main.c:6:16: error: passing argument 1 of 'strcmp' makes pointer from integer without a cast [-Wint-conversion]
    6 |     if(strcmp(s[1],B)==0)
      |               ~^~~
      |                |
      |                char
main.c:6:16: note: expected 'const char *' but argument is of type 'char'
main.c:8:16: error: passing argument 1 of 'strcmp' makes pointer from integer without a cast [-Wint-conversion]
    8 |     if(strcmp(s[2],B)==0)
      |               ~^~~
      |                |
      |                char
main.c:8:16: note: expected 'const char *' but argument is of type 'char'
main.c:13:14: error: passing argument 1 of 'strcmp' makes pointer from integer without a cast [-Wint-conversion]
   13 |   if(strcmp(s[1],A)==0){
      |             ~^~~
      |              |
      |              char
main.c:13:14: note: expected 'const char *' but argument is of type 'char'
main.c:14:16: error: passing argument 1 of 'strcmp' makes pointer from integer without a cast [-Wint-conversion]
   14 |     if(strcmp(s[0],B)==0)
      |               ~^~~
      |                |
      |                char
main.c:14:16: note: expected 'const char *' but argument is of type 'char'
main.c:16:16: error: passing argument 1 of 'strcmp' makes pointer from integer without a cast [-Wint-conversion]
   16 |     if(strcmp(s[2],B)==0)
      |               ~^~~
      |                |
      |                char
main.c:16:16: note: expected 'const char *' but argument is of type 'char'
main.c:21:14: error: passing argument 1 of 'strcmp' makes pointer from integer without a cast [-Wint-conversion]
   21 |   if(strcmp(s[2],A)==0){
      |             ~^~~
      |              |
      |              char
main.c:21:14: note: expected 'const char *' but argument is of type 'char'
main.c:22:16: error: passing argument 1 of 'strcmp' makes pointer from integer without a cast [-Wint-conversion]
   22 |     if(strcmp(s[0],B)==0)
      |               ~^~~
      |                |
      |                char
main.c:22:16: note: expected 'const char *' but argument is of type 'char'
main.c:24:16: error: passing argument 1 of 'strcmp' makes pointer from integer without a cast [-Wint-conversion]
   24 |     if(strcmp(s[1],B)==0)
      |               ~^~~
      |                |
      |                char
main.c:24:16: note: expected 'const char *' but argument is of type 'char'