Language: C++

#include <iostream>
#include <string>
#include <vector>
using namespace std;

int main(){    
    long long int N;
    string s;
    cin>>N;
    vector<ll> v(5);
    
    for(ll i=0;i<N;i++){
        cin>>s;
        if(s[0]=='M') v[0]++;
        else if(s[0]=='A') v[1]++;
        else if(s[0]=='R') v[2]++;
        else if(s[0]=='C') v[3]++;
        else if(s[0]=='H') v[4]++;
    }
  
    cout<<v[0]*(v[1]*(v[2]+v[3]+v[4])+v[2]*(v[3]+v[4])+v[3]*v[4])+v[1]*(v[2]*(v[3]+v[4])+v[3]*v[4])+v[2]*v[3]*v[4]<<endl;
    
    return 0;}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:12: error: 'll' was not declared in this scope
   10 |     vector<ll> v(5);
      |            ^~
a.cc:10:14: error: template argument 1 is invalid
   10 |     vector<ll> v(5);
      |              ^
a.cc:10:14: error: template argument 2 is invalid
a.cc:12:11: error: expected ';' before 'i'
   12 |     for(ll i=0;i<N;i++){
      |           ^~
      |           ;
a.cc:12:16: error: 'i' was not declared in this scope
   12 |     for(ll i=0;i<N;i++){
      |                ^
a.cc:14:24: error: invalid types 'int[int]' for array subscript
   14 |         if(s[0]=='M') v[0]++;
      |                        ^
a.cc:15:29: error: invalid types 'int[int]' for array subscript
   15 |         else if(s[0]=='A') v[1]++;
      |                             ^
a.cc:16:29: error: invalid types 'int[int]' for array subscript
   16 |         else if(s[0]=='R') v[2]++;
      |                             ^
a.cc:17:29: error: invalid types 'int[int]' for array subscript
   17 |         else if(s[0]=='C') v[3]++;
      |                             ^
a.cc:18:29: error: invalid types 'int[int]' for array subscript
   18 |         else if(s[0]=='H') v[4]++;
      |                             ^
a.cc:21:12: error: invalid types 'int[int]' for array subscript
   21 |     cout<<v[0]*(v[1]*(v[2]+v[3]+v[4])+v[2]*(v[3]+v[4])+v[3]*v[4])+v[1]*(v[2]*(v[3]+v[4])+v[3]*v[4])+v[2]*v[3]*v[4]<<endl;
      |            ^
a.cc:21:18: error: invalid types 'int[int]' for array subscript
   21 |     cout<<v[0]*(v[1]*(v[2]+v[3]+v[4])+v[2]*(v[3]+v[4])+v[3]*v[4])+v[1]*(v[2]*(v[3]+v[4])+v[3]*v[4])+v[2]*v[3]*v[4]<<endl;
      |                  ^
a.cc:21:24: error: invalid types 'int[int]' for array subscript
   21 |     cout<<v[0]*(v[1]*(v[2]+v[3]+v[4])+v[2]*(v[3]+v[4])+v[3]*v[4])+v[1]*(v[2]*(v[3]+v[4])+v[3]*v[4])+v[2]*v[3]*v[4]<<endl;
      |                        ^
a.cc:21:29: error: invalid types 'int[int]' for array subscript
   21 |     cout<<v[0]*(v[1]*(v[2]+v[3]+v[4])+v[2]*(v[3]+v[4])+v[3]*v[4])+v[1]*(v[2]*(v[3]+v[4])+v[3]*v[4])+v[2]*v[3]*v[4]<<endl;
      |                             ^
a.cc:21:34: error: invalid types 'int[int]' for array subscript
   21 |     cout<<v[0]*(v[1]*(v[2]+v[3]+v[4])+v[2]*(v[3]+v[4])+v[3]*v[4])+v[1]*(v[2]*(v[3]+v[4])+v[3]*v[4])+v[2]*v[3]*v[4]<<endl;
      |                                  ^
a.cc:21:40: error: invalid types 'int[int]' for array subscript
   21 |     cout<<v[0]*(v[1]*(v[2]+v[3]+v[4])+v[2]*(v[3]+v[4])+v[3]*v[4])+v[1]*(v[2]*(v[3]+v[4])+v[3]*v[4])+v[2]*v[3]*v[4]<<endl;
      |                                        ^
a.cc:21:46: error: invalid types 'int[int]' for array subscript
   21 |     cout<<v[0]*(v[1]*(v[2]+v[3]+v[4])+v[2]*(v[3]+v[4])+v[3]*v[4])+v[1]*(v[2]*(v[3]+v[4])+v[3]*v[4])+v[2]*v[3]*v[4]<<endl;
      |                                              ^
a.cc:21:51: error: invalid types 'int[int]' for array subscript
   21 |     cout<<v[0]*(v[1]*(v[2]+v[3]+v[4])+v[2]*(v[3]+v[4])+v[3]*v[4])+v[1]*(v[2]*(v[3]+v[4])+v[3]*v[4])+v[2]*v[3]*v[4]<<endl;
      |                                                   ^
a.cc:21:57: error: invalid types 'int[int]' for array subscript
   21 |     cout<<v[0]*(v[1]*(v[2]+v[3]+v[4])+v[2]*(v[3]+v[4])+v[3]*v[4])+v[1]*(v[2]*(v[3]+v[4])+v[3]*v[4])+v[2]*v[3]*v[4]<<endl;
      |                                                         ^
a.cc:21:62: error: invalid types 'int[int]' for array subscript
   21 |     cout<<v[0]*(v[1]*(v[2]+v[3]+v[4])+v[2]*(v[3]+v[4])+v[3]*v[4])+v[1]*(v[2]*(v[3]+v[4])+v[3]*v[4])+v[2]*v[3]*v[4]<<endl;
      |                                                              ^
a.cc:21:68: error: invalid types 'int[int]' for array subscript
   21 |     cout<<v[0]*(v[1]*(v[2]+v[3]+v[4])+v[2]*(v[3]+v[4])+v[3]*v[4])+v[1]*(v[2]*(v[3]+v[4])+v[3]*v[4])+v[2]*v[3]*v[4]<<endl;
      |                                                                    ^
a.cc:21:74: error: invalid types 'int[int]' for array subscript
   21 |     cout<<v[0]*(v[1]*(v[2]+v[3]+v[4])+v[2]*(v[3]+v[4])+v[3]*v[4])+v[1]*(v[2]*(v[3]+v[4])+v[3]*v[4])+v[2]*v[3]*v[4]<<endl;
      |                                                                          ^
a.cc:21:80: error: invalid types 'int[int]' for array subscript
   21 |     cout<<v[0]*(v[1]*(v[2]+v[3]+v[4])+v[2]*(v[3]+v[4])+v[3]*v[4])+v[1]*(v[2]*(v[3]+v[4])+v[3]*v[4])+v[2]*v[3]*v[4]<<endl;
      |                                                                                ^
a.cc:21:85: error: invalid types 'int[int]' for array subscript
   21 |     cout<<v[0]*(v[1]*(v[2]+v[3]+v[4])+v[2]*(v[3]+v[4])+v[3]*v[4])+v[1]*(v[2]*(v[3]+v[4])+v[3]*v[4])+v[2]*v[3]*v[4]<<endl;
      |                                                                                     ^
a.cc:21:91: error: invalid types 'int[int]' for array subscript
   21 |     cout<<v[0]*(v[1]*(v[2]+v[3]+v[4])+v[2]*(v[3]+v[4])+v[3]*v[4])+v[1]*(v[2]*(v[3]+v[4])+v[3]*v[4])+v[2]*v[3]*v[4]<<endl;
      |                                                                                           ^
a.cc:21:96: error: invalid types 'int[int]' for array subscript
   21 |     cout<<v[0]*(v[1]*(v[2]+v[3]+v[4])+v[2]*(v[3]+v[4])+v[3]*v[4])+v[1]*(v[2]*(v[3]+v[4])+v[3]*v[4])+v[2]*v[3]*v[4]<<endl;
      |                                                                                                ^
a.cc:21:102: error: invalid types 'int[int]' for array subscript
   21 |     cout<<v[0]*(v[1]*(v[2]+v[3]+v[4])+v[2]*(v[3]+v[4])+v[3]*v[4])+v[1]*(v[2]*(v[3]+v[4])+v[3]*v[4])+v[2]*v[3]*v[4]<<endl;
      |                                                                                                      ^
a.cc:21:107: error: invalid types 'int[int]' for array subscript
   21 |     cout<<v[0]*(v[1]*(v[2]+v[3]+v[4])+v[2]*(v[3]+v[4])+v[3]*v[4])+v[1]*(v[2]*(v[3]+v[4])+v[3]*v[4])+v[2]*v[3]*v[4]<<endl;
      |                                                                                                           ^
a.cc:21:112: error: invalid types 'int[int]' for array subscript
   21 |     cout<<v[0]*(v[1]*(v[2]+v[3]+v[4])+v[2]*(v[3]+v[4])+v[3]*v[4])+v[1]*(v[2]*(v[3]+v[4])+v[3]*v[4])+v[2]*v[3]*v[4]<<endl;
      |                                                                                                                ^