Language: C++

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

int main()
{
	char S[50];
	scanf("%s", S);
	
	if(*S=="AKIHABARA" || *S=="KIHABARA" || *S=="AKIHBARA" || *S=="AKIHABRA" || *S=="AKIHABAR" || *S=="KIHBARA" || *S=="AKIHBRA" || *S=="AKIHABR" ||*S=="AKIHBR" || *S=="KIHABR" || *S=="KIHBAR" ||*S=="KIHBRA" || *S=="KIHBR") printf("YES");
	
	else printf("NO");
	
	return 0;
	
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:14: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   10 |         if(*S=="AKIHABARA" || *S=="KIHABARA" || *S=="AKIHBARA" || *S=="AKIHABRA" || *S=="AKIHABAR" || *S=="KIHBARA" || *S=="AKIHBRA" || *S=="AKIHABR" ||*S=="AKIHBR" || *S=="KIHABR" || *S=="KIHBAR" ||*S=="KIHBRA" || *S=="KIHBR") printf("YES");
      |            ~~^~~~~~~~~~~~~
a.cc:10:33: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   10 |         if(*S=="AKIHABARA" || *S=="KIHABARA" || *S=="AKIHBARA" || *S=="AKIHABRA" || *S=="AKIHABAR" || *S=="KIHBARA" || *S=="AKIHBRA" || *S=="AKIHABR" ||*S=="AKIHBR" || *S=="KIHABR" || *S=="KIHBAR" ||*S=="KIHBRA" || *S=="KIHBR") printf("YES");
      |                               ~~^~~~~~~~~~~~
a.cc:10:51: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   10 |         if(*S=="AKIHABARA" || *S=="KIHABARA" || *S=="AKIHBARA" || *S=="AKIHABRA" || *S=="AKIHABAR" || *S=="KIHBARA" || *S=="AKIHBRA" || *S=="AKIHABR" ||*S=="AKIHBR" || *S=="KIHABR" || *S=="KIHBAR" ||*S=="KIHBRA" || *S=="KIHBR") printf("YES");
      |                                                 ~~^~~~~~~~~~~~
a.cc:10:69: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   10 |         if(*S=="AKIHABARA" || *S=="KIHABARA" || *S=="AKIHBARA" || *S=="AKIHABRA" || *S=="AKIHABAR" || *S=="KIHBARA" || *S=="AKIHBRA" || *S=="AKIHABR" ||*S=="AKIHBR" || *S=="KIHABR" || *S=="KIHBAR" ||*S=="KIHBRA" || *S=="KIHBR") printf("YES");
      |                                                                   ~~^~~~~~~~~~~~
a.cc:10:87: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   10 |         if(*S=="AKIHABARA" || *S=="KIHABARA" || *S=="AKIHBARA" || *S=="AKIHABRA" || *S=="AKIHABAR" || *S=="KIHBARA" || *S=="AKIHBRA" || *S=="AKIHABR" ||*S=="AKIHBR" || *S=="KIHABR" || *S=="KIHBAR" ||*S=="KIHBRA" || *S=="KIHBR") printf("YES");
      |                                                                                     ~~^~~~~~~~~~~~
a.cc:10:105: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   10 |         if(*S=="AKIHABARA" || *S=="KIHABARA" || *S=="AKIHBARA" || *S=="AKIHABRA" || *S=="AKIHABAR" || *S=="KIHBARA" || *S=="AKIHBRA" || *S=="AKIHABR" ||*S=="AKIHBR" || *S=="KIHABR" || *S=="KIHBAR" ||*S=="KIHBRA" || *S=="KIHBR") printf("YES");
      |                                                                                                       ~~^~~~~~~~~~~
a.cc:10:122: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   10 |         if(*S=="AKIHABARA" || *S=="KIHABARA" || *S=="AKIHBARA" || *S=="AKIHABRA" || *S=="AKIHABAR" || *S=="KIHBARA" || *S=="AKIHBRA" || *S=="AKIHABR" ||*S=="AKIHBR" || *S=="KIHABR" || *S=="KIHBAR" ||*S=="KIHBRA" || *S=="KIHBR") printf("YES");
      |                                                                                                                        ~~^~~~~~~~~~~
a.cc:10:139: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   10 |         if(*S=="AKIHABARA" || *S=="KIHABARA" || *S=="AKIHBARA" || *S=="AKIHABRA" || *S=="AKIHABAR" || *S=="KIHBARA" || *S=="AKIHBRA" || *S=="AKIHABR" ||*S=="AKIHBR" || *S=="KIHABR" || *S=="KIHBAR" ||*S=="KIHBRA" || *S=="KIHBR") printf("YES");
      |                                                                                                                                         ~~^~~~~~~~~~~
a.cc:10:155: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   10 |         if(*S=="AKIHABARA" || *S=="KIHABARA" || *S=="AKIHBARA" || *S=="AKIHABRA" || *S=="AKIHABAR" || *S=="KIHBARA" || *S=="AKIHBRA" || *S=="AKIHABR" ||*S=="AKIHBR" || *S=="KIHABR" || *S=="KIHBAR" ||*S=="KIHBRA" || *S=="KIHBR") printf("YES");
      |                                                                                                                                                         ~~^~~~~~~~~~
a.cc:10:171: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   10 |         if(*S=="AKIHABARA" || *S=="KIHABARA" || *S=="AKIHBARA" || *S=="AKIHABRA" || *S=="AKIHABAR" || *S=="KIHBARA" || *S=="AKIHBRA" || *S=="AKIHABR" ||*S=="AKIHBR" || *S=="KIHABR" || *S=="KIHBAR" ||*S=="KIHBRA" || *S=="KIHBR") printf("YES");
      |                                                                                                                                                                         ~~^~~~~~~~~~
a.cc:10:187: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   10 |         if(*S=="AKIHABARA" || *S=="KIHABARA" || *S=="AKIHBARA" || *S=="AKIHABRA" || *S=="AKIHABAR" || *S=="KIHBARA" || *S=="AKIHBRA" || *S=="AKIHABR" ||*S=="AKIHBR" || *S=="KIHABR" || *S=="KIHBAR" ||*S=="KIHBRA" || *S=="KIHBR") printf("YES");
      |                                                                                                                                                                                         ~~^~~~~~~~~~
a.cc:10:202: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   10 |         if(*S=="AKIHABARA" || *S=="KIHABARA" || *S=="AKIHBARA" || *S=="AKIHABRA" || *S=="AKIHABAR" || *S=="KIHBARA" || *S=="AKIHBRA" || *S=="AKIHABR" ||*S=="AKIHBR" || *S=="KIHABR" || *S=="KIHBAR" ||*S=="KIHBRA" || *S=="KIHBR") printf("YES");
      |                                                                                                                                                                                                        ~~^~~~~~~~~~
a.cc:10:218: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   10 |         if(*S=="AKIHABARA" || *S=="KIHABARA" || *S=="AKIHBARA" || *S=="AKIHABRA" || *S=="AKIHABAR" || *S=="KIHBARA" || *S=="AKIHBRA" || *S=="AKIHABR" ||*S=="AKIHBR" || *S=="KIHABR" || *S=="KIHBAR" ||*S=="KIHBRA" || *S=="KIHBR") printf("YES");
      |                                                                                                                                                                                                                        ~~^~~~~~~~~