Language: C++

#inculude <bits/stdc++.h>
using namespace std;

int main (){
  int n,m;
  string s;
  vector<int> ans;
  vector<string> blue,red;
  
  cin >> n;
  for(int i=;i<n;++i){
    cin >> s;
    blue.push_back(s);
  }

  cin >> m;
  for(int i=0;i<n;++i){
    sin >> s;
    red.push_back(s);
  }
  
  int res=0;
  for(int i=0;i<n;++i){
    for(int j=i;j<n;++j){
      if(blue[i]==blue[j])res++;
    }
    for(int j=i;j<n;++j){
      if(blue[i]==red[j])res--;
    }
    ans.push_back(res);
  }
  
  sort(ans.begin(),ans.end,greater<int>());
  
  cout << max(0,ans(0)) <<endl;
}

Compiler output:
a.cc:1:2: error: invalid preprocessing directive #inculude; did you mean #include?
    1 | #inculude <bits/stdc++.h>
      |  ^~~~~~~~
      |  include
a.cc: In function 'int main()':
a.cc:6:3: error: 'string' was not declared in this scope
    6 |   string s;
      |   ^~~~~~
a.cc:1:1: note: 'std::string' is defined in header '<string>'; this is probably fixable by adding '#include <string>'
  +++ |+#include <string>
    1 | #inculude <bits/stdc++.h>
a.cc:7:3: error: 'vector' was not declared in this scope
    7 |   vector<int> ans;
      |   ^~~~~~
a.cc:1:1: note: 'std::vector' is defined in header '<vector>'; this is probably fixable by adding '#include <vector>'
  +++ |+#include <vector>
    1 | #inculude <bits/stdc++.h>
a.cc:7:10: error: expected primary-expression before 'int'
    7 |   vector<int> ans;
      |          ^~~
a.cc:8:18: error: 'blue' was not declared in this scope
    8 |   vector<string> blue,red;
      |                  ^~~~
a.cc:8:23: error: 'red' was not declared in this scope
    8 |   vector<string> blue,red;
      |                       ^~~
a.cc:10:3: error: 'cin' was not declared in this scope
   10 |   cin >> n;
      |   ^~~
a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 | #inculude <bits/stdc++.h>
a.cc:11:13: error: expected primary-expression before ';' token
   11 |   for(int i=;i<n;++i){
      |             ^
a.cc:12:12: error: 's' was not declared in this scope
   12 |     cin >> s;
      |            ^
a.cc:18:5: error: 'sin' was not declared in this scope
   18 |     sin >> s;
      |     ^~~
a.cc:18:12: error: 's' was not declared in this scope
   18 |     sin >> s;
      |            ^
a.cc:30:5: error: 'ans' was not declared in this scope
   30 |     ans.push_back(res);
      |     ^~~
a.cc:33:8: error: 'ans' was not declared in this scope
   33 |   sort(ans.begin(),ans.end,greater<int>());
      |        ^~~
a.cc:33:28: error: 'greater' was not declared in this scope
   33 |   sort(ans.begin(),ans.end,greater<int>());
      |                            ^~~~~~~
a.cc:33:36: error: expected primary-expression before 'int'
   33 |   sort(ans.begin(),ans.end,greater<int>());
      |                                    ^~~
a.cc:33:3: error: 'sort' was not declared in this scope; did you mean 'short'?
   33 |   sort(ans.begin(),ans.end,greater<int>());
      |   ^~~~
      |   short
a.cc:35:3: error: 'cout' was not declared in this scope
   35 |   cout << max(0,ans(0)) <<endl;
      |   ^~~~
a.cc:35:3: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:35:11: error: 'max' was not declared in this scope
   35 |   cout << max(0,ans(0)) <<endl;
      |           ^~~
a.cc:35:27: error: 'endl' was not declared in this scope
   35 |   cout << max(0,ans(0)) <<endl;
      |                           ^~~~
a.cc:1:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
  +++ |+#include <ostream>
    1 | #inculude <bits/stdc++.h>