Language: Java

#include <cstdio>
#include <cstring>
#include <cmath>
#include <cstdlib>
#include <iostream>
#include <string>
#include <algorithm>
#include <vector>
#include <queue>
#include <map>
#include <set>
using namespace std;
//________
#define pb        emplace_back
#define fi        first
#define se        second
#define ALL(x)    x.begin(),x.end()
#define err(...)  fprintf(stderr, __VA_ARGS__ )
#define show(x)   cerr << #x << ':' << (x) << endl
#define outl(x)   cout << (x) << '\n'
#define FAST()    cin.tie(0), ios::sync_with_stdio(false)
#define rep(i,n)     for(int i=0; i<(n); ++i)
#define reps(i,f,n)  for(int i=(f); i<=(n); ++i)
template<class A, class B>inline bool chmax(A &a, B b){return b>a ? a=b,1 : 0;}
template<class A, class B>inline bool chmin(A &a, B b){return b<a ? a=b,1 : 0;}
inline bool inside(int y, int x, int H, int W){return(y>=0 && x>=0 && y<H && x<W);}
constexpr int dx[] = {1, 0, -1, 0,  1, 1, -1, -1};
constexpr int dy[] = {0, 1, 0, -1,  -1, 1, 1, -1};
typedef long long ll;
typedef pair<int,int> pii;
#define let const auto
#define INF  0x3f3f3f3f
#define LINF 0x3f3f3f3f3f3f3f3f
#define NIL -1
//________


signed main()
{
   FAST();
   int N, M;
   map<string, int> a, b;

   cin >> N;
   rep(i, N) {
      string s;
      cin >> s;
      a[s]++;
   }

   cin >> M;
   rep(i, M) {
      string t;
      cin >> t;
      a[t]--;
   }

   int maxv = 0;
   for (auto it=a.begin(); it != a.end(); it++){
      maxv = max(it->second, maxv);
   }
   outl(maxv);
}



Compiler output:
Main.java:1: error: illegal character: '#'
#include <cstdio>
^
Main.java:2: error: illegal character: '#'
#include <cstring>
^
Main.java:3: error: illegal character: '#'
#include <cmath>
^
Main.java:4: error: illegal character: '#'
#include <cstdlib>
^
Main.java:5: error: illegal character: '#'
#include <iostream>
^
Main.java:6: error: illegal character: '#'
#include <string>
^
Main.java:7: error: illegal character: '#'
#include <algorithm>
^
Main.java:8: error: illegal character: '#'
#include <vector>
^
Main.java:9: error: illegal character: '#'
#include <queue>
^
Main.java:10: error: illegal character: '#'
#include <map>
^
Main.java:11: error: illegal character: '#'
#include <set>
^
Main.java:14: error: illegal character: '#'
#define pb        emplace_back
^
Main.java:15: error: illegal character: '#'
#define fi        first
^
Main.java:16: error: illegal character: '#'
#define se        second
^
Main.java:17: error: illegal character: '#'
#define ALL(x)    x.begin(),x.end()
^
Main.java:18: error: illegal character: '#'
#define err(...)  fprintf(stderr, __VA_ARGS__ )
^
Main.java:19: error: illegal character: '#'
#define show(x)   cerr << #x << ':' << (x) << endl
^
Main.java:19: error: illegal character: '#'
#define show(x)   cerr << #x << ':' << (x) << endl
                          ^
Main.java:20: error: illegal character: '#'
#define outl(x)   cout << (x) << '\n'
^
Main.java:21: error: illegal character: '#'
#define FAST()    cin.tie(0), ios::sync_with_stdio(false)
^
Main.java:22: error: illegal character: '#'
#define rep(i,n)     for(int i=0; i<(n); ++i)
^
Main.java:22: error: class, interface, enum, or record expected
#define rep(i,n)     for(int i=0; i<(n); ++i)
                                  ^
Main.java:22: error: class, interface, enum, or record expected
#define rep(i,n)     for(int i=0; i<(n); ++i)
                                         ^
Main.java:23: error: illegal character: '#'
#define reps(i,f,n)  for(int i=(f); i<=(n); ++i)
^
Main.java:23: error: class, interface, enum, or record expected
#define reps(i,f,n)  for(int i=(f); i<=(n); ++i)
                                    ^
Main.java:23: error: class, interface, enum, or record expected
#define reps(i,f,n)  for(int i=(f); i<=(n); ++i)
                                            ^
Main.java:24: error: '{' expected
template<class A, class B>inline bool chmax(A &a, B b){return b>a ? a=b,1 : 0;}
                ^
Main.java:24: error: '{' expected
template<class A, class B>inline bool chmax(A &a, B b){return b>a ? a=b,1 : 0;}
                         ^
Main.java:24: error: illegal start of type
template<class A, class B>inline bool chmax(A &a, B b){return b>a ? a=b,1 : 0;}
                                                       ^
Main.java:24: error: <identifier> expected
template<class A, class B>inline bool chmax(A &a, B b){return b>a ? a=b,1 : 0;}
                                                               ^
Main.java:24: error: <identifier> expected
template<class A, class B>inline bool chmax(A &a, B b){return b>a ? a=b,1 : 0;}
                                                                 ^
Main.java:24: error: <identifier> expected
template<class A, class B>inline bool chmax(A &a, B b){return b>a ? a=b,1 : 0;}
                                                                     ^
Main.java:24: error: <identifier> expected
template<class A, class B>inline bool chmax(A &a, B b){return b>a ? a=b,1 : 0;}
                                                                        ^
Main.java:25: error: class, interface, enum, or record expected
template<class A, class B>inline bool chmin(A &a, B b){return b<a ? a=b,1 : 0;}
^
Main.java:25: error: '{' expected
template<class A, class B>inline bool chmin(A &a, B b){return b<a ? a=b,1 : 0;}
                ^
Main.java:25: error: '{' expected
template<class A, class B>inline bool chmin(A &a, B b){return b<a ? a=b,1 : 0;}
                         ^
Main.java:25: error: illegal start of type
template<class A, class B>inline bool chmin(A &a, B b){return b<a ? a=b,1 : 0;}
                                                       ^
Main.java:25: error: > or ',' expected
template<class A, class B>inline bool chmin(A &a, B b){return b<a ? a=b,1 : 0;}
                                                                  ^
Main.java:25: error: <identifier> expected
template<class A, class B>inline bool chmin(A &a, B b){return b<a ? a=b,1 : 0;}
                                                                     ^
Main.java:25: error: <identifier> expected
template<class A, class B>inline bool chmin(A &a, B b){return b<a ? a=b,1 : 0;}
                                                                        ^
Main.java:26: error: class, interface, enum, or record expected
inline bool inside(int y, int x, int H, int W){return(y>=0 && x>=0 && y<H && x<W);}
^
Main.java:26: error: class, interface, enum, or record expected
inline bool inside(int y, int x, int H, int W){return(y>=0 && x>=0 && y<H && x<W);}
                                                                                  ^
Main.java:28: error: class, interface, enum, or record expected
constexpr int dy[] = {0, 1, 0, -1,  -1, 1, 1, -1};
^
Main.java:29: error: class, interface, enum, or record expected
typedef long long ll;
^
Main.java:30: error: class, interface, enum, or record expected
typedef pair<int,int> pii;
^
Main.java:31: error: illegal character: '#'
#define let const auto
^
Main.java:31: error: class, interface, enum, or record expected
#define let const auto
        ^
Main.java:32: error: illegal character: '#'
#define INF  0x3f3f3f3f
^
Main.java:33: error: illegal character: '#'
#define LINF 0x3f3f3f3f3f3f3f3f
^
Main.java:34: error: illegal character: '#'
#define NIL -1
^
Main.java:41: error: class, interface, enum, or record expected
   int N, M;
   ^
Main.java:42: error: class, interface, enum, or record expected
   map<string, int> a, b;
   ^
Main.java:44: error: class, interface, enum, or record expected
   cin >> N;
   ^
Main.java:45: error: class, interface, enum, or record expected
   rep(i, N) {
   ^
Main.java:47: error: class, interface, enum, or record expected
      cin >> s;
      ^
Main.java:48: error: class, interface, enum, or record expected
      a[s]++;
      ^
Main.java:49: error: class, interface, enum, or record expected
   }
   ^
Main.java:52: error: class, interface, enum, or record expected
   rep(i, M) {
   ^
Main.java:54: error: class, interface, enum, or record expected
      cin >> t;
      ^
Main.java:55: error: class, interface, enum, or record expected
      a[t]--;
      ^
Main.java:56: error: class, interface, enum, or record expected
   }
   ^
Main.java:59: error: class, interface, enum, or record expected
   for (auto it=a.begin(); it != a.end(); it++){
   ^
Main.java:59: error: class, interface, enum, or record expected
   for (auto it=a.begin(); it != a.end(); it++){
                           ^
Main.java:59: error: class, interface, enum, or record expected
   for (auto it=a.begin(); it != a.end(); it++){
                                          ^
Main.java:61: error: class, interface, enum, or record expected
   }
   ^
Main.java:63: error: class, interface, enum, or record expected
}
^
66 errors