Language: Java





import java.util.Scanner;
import java.io.*;




public class Main {
&#160; &#160; public static void main(String[] args)throws IOException{
&#160; &#160; &#160; &#160; int[] blood = new int[4];
&#160; &#160; &#160; &#160; BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
&#160; &#160; &#160; &#160; String buf;
&#160; &#160; &#160; &#160; while((buf = br.readLine())!=null){
&#160; &#160; &#160; &#160; &#160; &#160; String b = buf.split(",")[1];
&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; if("A".equals(b))
&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; blood[0]++;
&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; else if("B".equals(b))
&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; blood[1]++;
&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; else if("AB".equals(b))
&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; blood[2]++;
&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; else
&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; blood[3]++;
&#160; &#160; &#160; &#160; }
&#160; &#160; &#160; &#160; for(int i =0; i<blood.length;i++){
&#160; &#160; &#160; &#160; &#160; &#160; System.out.println(blood[i]);
&#160; &#160; &#160; &#160; }
&#160; &#160; }
}

Compiler output:
Main.java:12: error: illegal start of type
&#160; &#160; public static void main(String[] args)throws IOException{
^
Main.java:12: error: illegal character: '#'
&#160; &#160; public static void main(String[] args)throws IOException{
 ^
Main.java:12: error: illegal start of type
&#160; &#160; public static void main(String[] args)throws IOException{
       ^
Main.java:12: error: illegal character: '#'
&#160; &#160; public static void main(String[] args)throws IOException{
        ^
Main.java:13: error: illegal start of expression
&#160; &#160; &#160; &#160; int[] blood = new int[4];
^
Main.java:13: error: illegal character: '#'
&#160; &#160; &#160; &#160; int[] blood = new int[4];
 ^
Main.java:13: error: illegal start of expression
&#160; &#160; &#160; &#160; int[] blood = new int[4];
       ^
Main.java:13: error: illegal character: '#'
&#160; &#160; &#160; &#160; int[] blood = new int[4];
        ^
Main.java:13: error: illegal start of expression
&#160; &#160; &#160; &#160; int[] blood = new int[4];
              ^
Main.java:13: error: illegal character: '#'
&#160; &#160; &#160; &#160; int[] blood = new int[4];
               ^
Main.java:13: error: illegal start of expression
&#160; &#160; &#160; &#160; int[] blood = new int[4];
                     ^
Main.java:13: error: illegal character: '#'
&#160; &#160; &#160; &#160; int[] blood = new int[4];
                      ^
Main.java:14: error: illegal start of expression
&#160; &#160; &#160; &#160; BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
^
Main.java:14: error: illegal character: '#'
&#160; &#160; &#160; &#160; BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
 ^
Main.java:14: error: illegal start of expression
&#160; &#160; &#160; &#160; BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
       ^
Main.java:14: error: illegal character: '#'
&#160; &#160; &#160; &#160; BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        ^
Main.java:14: error: illegal start of expression
&#160; &#160; &#160; &#160; BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
              ^
Main.java:14: error: illegal character: '#'
&#160; &#160; &#160; &#160; BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
               ^
Main.java:14: error: illegal start of expression
&#160; &#160; &#160; &#160; BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
                     ^
Main.java:14: error: illegal character: '#'
&#160; &#160; &#160; &#160; BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
                      ^
Main.java:15: error: illegal start of expression
&#160; &#160; &#160; &#160; String buf;
^
Main.java:15: error: illegal character: '#'
&#160; &#160; &#160; &#160; String buf;
 ^
Main.java:15: error: illegal start of expression
&#160; &#160; &#160; &#160; String buf;
       ^
Main.java:15: error: illegal character: '#'
&#160; &#160; &#160; &#160; String buf;
        ^
Main.java:15: error: illegal start of expression
&#160; &#160; &#160; &#160; String buf;
              ^
Main.java:15: error: illegal character: '#'
&#160; &#160; &#160; &#160; String buf;
               ^
Main.java:15: error: illegal start of expression
&#160; &#160; &#160; &#160; String buf;
                     ^
Main.java:15: error: illegal character: '#'
&#160; &#160; &#160; &#160; String buf;
                      ^
Main.java:16: error: illegal start of expression
&#160; &#160; &#160; &#160; while((buf = br.readLine())!=null){
^
Main.java:16: error: illegal character: '#'
&#160; &#160; &#160; &#160; while((buf = br.readLine())!=null){
 ^
Main.java:16: error: illegal start of expression
&#160; &#160; &#160; &#160; while((buf = br.readLine())!=null){
       ^
Main.java:16: error: illegal character: '#'
&#160; &#160; &#160; &#160; while((buf = br.readLine())!=null){
        ^
Main.java:16: error: illegal start of expression
&#160; &#160; &#160; &#160; while((buf = br.readLine())!=null){
              ^
Main.java:16: error: illegal character: '#'
&#160; &#160; &#160; &#160; while((buf = br.readLine())!=null){
               ^
Main.java:16: error: illegal start of expression
&#160; &#160; &#160; &#160; while((buf = br.readLine())!=null){
                     ^
Main.java:16: error: illegal character: '#'
&#160; &#160; &#160; &#160; while((buf = br.readLine())!=null){
                      ^
Main.java:17: error: illegal start of expression
&#160; &#160; &#160; &#160; &#160; &#160; String b = buf.split(",")[1];
^
Main.java:17: error: illegal character: '#'
&#160; &#160; &#160; &#160; &#160; &#160; String b = buf.split(",")[1];
 ^
Main.java:17: error: illegal start of expression
&#160; &#160; &#160; &#160; &#160; &#160; String b = buf.split(",")[1];
       ^
Main.java:17: error: illegal character: '#'
&#160; &#160; &#160; &#160; &#160; &#160; String b = buf.split(",")[1];
        ^
Main.java:17: error: illegal start of expression
&#160; &#160; &#160; &#160; &#160; &#160; String b = buf.split(",")[1];
              ^
Main.java:17: error: illegal character: '#'
&#160; &#160; &#160; &#160; &#160; &#160; String b = buf.split(",")[1];
               ^
Main.java:17: error: illegal start of expression
&#160; &#160; &#160; &#160; &#160; &#160; String b = buf.split(",")[1];
                     ^
Main.java:17: error: illegal character: '#'
&#160; &#160; &#160; &#160; &#160; &#160; String b = buf.split(",")[1];
                      ^
Main.java:17: error: illegal start of expression
&#160; &#160; &#160; &#160; &#160; &#160; String b = buf.split(",")[1];
                            ^
Main.java:17: error: illegal character: '#'
&#160; &#160; &#160; &#160; &#160; &#160; String b = buf.split(",")[1];
                             ^
Main.java:17: error: illegal start of expression
&#160; &#160; &#160; &#160; &#160; &#160; String b = buf.split(",")[1];
                                   ^
Main.java:17: error: illegal character: '#'
&#160; &#160; &#160; &#160; &#160; &#160; String b = buf.split(",")[1];
                                    ^
Main.java:18: error: illegal start of expression
&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; if("A".equals(b))
^
Main.java:18: error: illegal character: '#'
&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; if("A".equals(b))
 ^
Main.java:18: error: illegal start of expression
&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; if("A".equals(b))
       ^
Main.java:18: error: illegal character: '#'
&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; if("A".equals(b))
        ^
Main.java:18: error: illegal start of expression
&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; if("A".equals(b))
              ^
Main.java:18: error: illegal character: '#'
&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; if("A".equals(b))
               ^
Main.java:18: error: illegal start of expression
&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; if("A".equals(b))
                     ^
Main.java:18: error: illegal character: '#'
&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; if("A".equals(b))
                      ^
Main.java:18: error: illegal start of expression
&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; if("A".equals(b))
                            ^
Main.java:18: error: illegal character: '#'
&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; if("A".equals(b))
                             ^
Main.java:18: error: illegal start of expression
&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; if("A".equals(b))
                                   ^
Main.java:18: error: illegal character: '#'
&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; if("A".equals(b))
                                    ^
Main.java:18: error: illegal start of expression
&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; if("A".equals(b))
                                          ^
Main.java:18: error: illegal character: '#'
&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; if("A".equals(b))
                                           ^
Main.java:18: error: illegal start of expression
&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; if("A".equals(b))
                                                 ^
Main.java:18: error: illegal character: '#'
&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; if("A".equals(b))
                                                  ^
Main.java:19: error: illegal start of expression
&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; blood[0]++;
^
Main.java:19: error: illegal character: '#'
&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; blood[0]++;
 ^
Main.java:19: error: illegal start of expression
&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; blood[0]++;
       ^
Main.java:19: error: illegal character: '#'
&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; blood[0]++;
        ^
Main.java:19: error: illegal start of expression
&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; blood[0]++;
              ^
Main.java:19: error: illegal character: '#'
&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; blood[0]++;
               ^
Main.java:19: error: illegal start of expression
&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; blood[0]++;
                     ^
Main.java:19: error: illegal character: '#'
&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; blood[0]++;
                      ^
Main.java:19: error: illegal start of expression
&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; blood[0]++;
                            ^
Main.java:19: error: illegal character: '#'
&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; blood[0]++;
                             ^
Main.java:19: error: illegal start of expression
&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; blood[0]++;
                                   ^
Main.java:19: error: illegal character: '#'
&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; blood[0]++;