Language: Java

#include <iostream>#include <map>#include <string>using namespace std; int main(){    int id;    char c;    string bt;    map<string, int> b;    while(cin >> id >> c >> bt){        b[bt]++;    }    cout << b["A"] << endl;    cout << b["B"] << endl;    cout << b["AB"] << endl;    cout << b["O"] << endl;    return 0;}

Compiler output:
Main.java:1: error: illegal character: '#'
#include <iostream>#include <map>#include <string>using namespace std; int main(){    int id;    char c;    string bt;    map<string, int> b;    while(cin >> id >> c >> bt){        b[bt]++;    }    cout << b["A"] << endl;    cout << b["B"] << endl;    cout << b["AB"] << endl;    cout << b["O"] << endl;    return 0;}
^
Main.java:1: error: illegal character: '#'
#include <iostream>#include <map>#include <string>using namespace std; int main(){    int id;    char c;    string bt;    map<string, int> b;    while(cin >> id >> c >> bt){        b[bt]++;    }    cout << b["A"] << endl;    cout << b["B"] << endl;    cout << b["AB"] << endl;    cout << b["O"] << endl;    return 0;}
                   ^
Main.java:1: error: illegal character: '#'
#include <iostream>#include <map>#include <string>using namespace std; int main(){    int id;    char c;    string bt;    map<string, int> b;    while(cin >> id >> c >> bt){        b[bt]++;    }    cout << b["A"] << endl;    cout << b["B"] << endl;    cout << b["AB"] << endl;    cout << b["O"] << endl;    return 0;}
                                 ^
Main.java:1: error: not a statement
#include <iostream>#include <map>#include <string>using namespace std; int main(){    int id;    char c;    string bt;    map<string, int> b;    while(cin >> id >> c >> bt){        b[bt]++;    }    cout << b["A"] << endl;    cout << b["B"] << endl;    cout << b["AB"] << endl;    cout << b["O"] << endl;    return 0;}
                                                                                                                                                                                                                     ^
Main.java:1: error: not a statement
#include <iostream>#include <map>#include <string>using namespace std; int main(){    int id;    char c;    string bt;    map<string, int> b;    while(cin >> id >> c >> bt){        b[bt]++;    }    cout << b["A"] << endl;    cout << b["B"] << endl;    cout << b["AB"] << endl;    cout << b["O"] << endl;    return 0;}
                                                                                                                                                                                                                                                ^
Main.java:1: error: not a statement
#include <iostream>#include <map>#include <string>using namespace std; int main(){    int id;    char c;    string bt;    map<string, int> b;    while(cin >> id >> c >> bt){        b[bt]++;    }    cout << b["A"] << endl;    cout << b["B"] << endl;    cout << b["AB"] << endl;    cout << b["O"] << endl;    return 0;}
                                                                                                                                                                                                                                                                            ^
Main.java:1: error: not a statement
#include <iostream>#include <map>#include <string>using namespace std; int main(){    int id;    char c;    string bt;    map<string, int> b;    while(cin >> id >> c >> bt){        b[bt]++;    }    cout << b["A"] << endl;    cout << b["B"] << endl;    cout << b["AB"] << endl;    cout << b["O"] << endl;    return 0;}
                                                                                                                                                                                                                                                                                                       ^
Main.java:1: error: unnamed classes are a preview feature and are disabled by default.
#include <iostream>#include <map>#include <string>using namespace std; int main(){    int id;    char c;    string bt;    map<string, int> b;    while(cin >> id >> c >> bt){        b[bt]++;    }    cout << b["A"] << endl;    cout << b["B"] << endl;    cout << b["AB"] << endl;    cout << b["O"] << endl;    return 0;}
                                                                       ^
  (use --enable-preview to enable unnamed classes)
8 errors