Language: C++

#include<iostream>
using namespace std;

int main(){
    long long int N;
    string S[110000];
    char c[110000];
    int a = 0;
    for(int i = 0; i < N; i++){
        cin >> S[i];
        c[i] = S[i][1];
    }
    for(int i = 0; i < N; i++){
        if(c[i] == "M" || c[i] == "A" || c[i] == "R" || c[i] == "C" || c[i] == "H"){
            for(int j = i+1; j < N; j++){
                if(c[i] == "M" || c[i] == "A" || c[i] == "R" || c[i] == "C" || c[i] == "H" && c[i] != c[j]){
                    for(int k = j+1; k < N; k++){
                        if(c[i] == "M" || c[i] == "A" || c[i] == "R" || c[i] == "C" || c[i] == "H" && c[i] != c[j] && c[i] != c[k] && c[j] != c[k]){
                            a += 1;
                        }
                    }
                }
            }
        }
    }
    cout << a << endl;
    
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:14:17: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   14 |         if(c[i] == "M" || c[i] == "A" || c[i] == "R" || c[i] == "C" || c[i] == "H"){
      |            ~~~~~^~~~~~
a.cc:14:32: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   14 |         if(c[i] == "M" || c[i] == "A" || c[i] == "R" || c[i] == "C" || c[i] == "H"){
      |                           ~~~~~^~~~~~
a.cc:14:47: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   14 |         if(c[i] == "M" || c[i] == "A" || c[i] == "R" || c[i] == "C" || c[i] == "H"){
      |                                          ~~~~~^~~~~~
a.cc:14:62: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   14 |         if(c[i] == "M" || c[i] == "A" || c[i] == "R" || c[i] == "C" || c[i] == "H"){
      |                                                         ~~~~~^~~~~~
a.cc:14:77: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   14 |         if(c[i] == "M" || c[i] == "A" || c[i] == "R" || c[i] == "C" || c[i] == "H"){
      |                                                                        ~~~~~^~~~~~
a.cc:16:25: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   16 |                 if(c[i] == "M" || c[i] == "A" || c[i] == "R" || c[i] == "C" || c[i] == "H" && c[i] != c[j]){
      |                    ~~~~~^~~~~~
a.cc:16:40: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   16 |                 if(c[i] == "M" || c[i] == "A" || c[i] == "R" || c[i] == "C" || c[i] == "H" && c[i] != c[j]){
      |                                   ~~~~~^~~~~~
a.cc:16:55: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   16 |                 if(c[i] == "M" || c[i] == "A" || c[i] == "R" || c[i] == "C" || c[i] == "H" && c[i] != c[j]){
      |                                                  ~~~~~^~~~~~
a.cc:16:70: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   16 |                 if(c[i] == "M" || c[i] == "A" || c[i] == "R" || c[i] == "C" || c[i] == "H" && c[i] != c[j]){
      |                                                                 ~~~~~^~~~~~
a.cc:16:85: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   16 |                 if(c[i] == "M" || c[i] == "A" || c[i] == "R" || c[i] == "C" || c[i] == "H" && c[i] != c[j]){
      |                                                                                ~~~~~^~~~~~
a.cc:18:33: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   18 |                         if(c[i] == "M" || c[i] == "A" || c[i] == "R" || c[i] == "C" || c[i] == "H" && c[i] != c[j] && c[i] != c[k] && c[j] != c[k]){
      |                            ~~~~~^~~~~~
a.cc:18:48: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   18 |                         if(c[i] == "M" || c[i] == "A" || c[i] == "R" || c[i] == "C" || c[i] == "H" && c[i] != c[j] && c[i] != c[k] && c[j] != c[k]){
      |                                           ~~~~~^~~~~~
a.cc:18:63: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   18 |                         if(c[i] == "M" || c[i] == "A" || c[i] == "R" || c[i] == "C" || c[i] == "H" && c[i] != c[j] && c[i] != c[k] && c[j] != c[k]){
      |                                                          ~~~~~^~~~~~
a.cc:18:78: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   18 |                         if(c[i] == "M" || c[i] == "A" || c[i] == "R" || c[i] == "C" || c[i] == "H" && c[i] != c[j] && c[i] != c[k] && c[j] != c[k]){
      |                                                                         ~~~~~^~~~~~
a.cc:18:93: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   18 |                         if(c[i] == "M" || c[i] == "A" || c[i] == "R" || c[i] == "C" || c[i] == "H" && c[i] != c[j] && c[i] != c[k] && c[j] != c[k]){
      |                                                                                        ~~~~~^~~~~~