criyle/codenet-compile-errors huggingface dataset:
Language: Java

import java.util.*;

public class Main {
  public static void main(String[] args) {

    Scanner sc = new Scanner(System.in);

    int[] n = new int[26];

    String line;
      char[] c = line.toCharArray();
      int len = c.length;

      for(int i = 0; i < len; i++) {
        for(int j = 0; j < 26; j++) {
          if(c[i] == (char)('a' + j) || c[i] == (char)('A' + j)) {
            n[j] += 1;
            break;
          }
        }
      }

    for(int i = 0; i < 26; i++) {
      char C = (char)('a' + i);
      System.out.println(C + " : " + n[i]);
    }

  }
}

Compiler output:
Main.java:11: error: variable line might not have been initialized
      char[] c = line.toCharArray();
                 ^
1 error
Language: Java

import java.util.Scanner;
public class Main {
    public static void main(String[] args) {
        Scanner scan = new java.util.Scanner(System.in);
        String str = scan.nextLine();
        int[] alp = new int[26]; // ????????????????????°???????´?????????????
        for(int i = 0; i < alp.length; i++){
            int count = 0;
            for(int j = 0; j < str.length(); j++){
                if(i == Character.toLowerCase(str.charAt(j)) - 'a'){
                    count++;
                }   
                alp[i] = count;
            }
        }
        Sysq.out.println();
        char[] alpStr = {'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z'};
        for(int i = 0; i < alp.length; i++){
            System.out.println(alpStr[i] + " : " + alp[i]);
        }
    }
}

Compiler output:
Main.java:16: error: package Sysq does not exist
        Sysq.out.println();
            ^
1 error
Language: Java

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

public class Test {

	public static void main(String[] args) {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String str;
		int count[] = new int[26];
		char abc = 'a';
		try {
			while ((str = br.readLine()).equals(null)){
				for (int i = 0; i < str.length(); ++i) {
					if (Character.isLetter(str.charAt(i))) {
						count[Character.toLowerCase(str.charAt(i)) - 'a']++;
					}
				}

			}
			for(int i=0;i<26;i++) {
				System.out.println(abc++ +":"+count[i]);
			}
		} catch (IOException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
	}

}

Compiler output:
Main.java:5: error: class Test is public, should be declared in a file named Test.java
public class Test {
       ^
1 error
Language: Java

	public static void main(String[] args) {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String str;
		int count[] = new int[26];
		char abc = 'a';
		try {
			while ((str = br.readLine()).equals(null)){
				for (int i = 0; i < str.length(); ++i) {
					if (Character.isLetter(str.charAt(i))) {
						count[Character.toLowerCase(str.charAt(i)) - 'a']++;
					}
				}

			}
			for(int i=0;i<26;i++) {
				System.out.println(abc++ +":"+count[i]);
			}
		} catch (IOException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
	}

}

Compiler output:
Main.java:1: error: unnamed classes are a preview feature and are disabled by default.
	public static void main(String[] args) {
	              ^
  (use --enable-preview to enable unnamed classes)
Main.java:24: error: class, interface, enum, or record expected
}
^
2 errors
Language: Java

import java.util.Scanner;
import java.util.Arrays;

class Main{
	public static void main(String[] args){
		Scanner scanner = new Scanner(System.in);
		String s = nextLine();
		int[] alphabet = new int[26];

		for(int i = 0; i < s.length(); i++){
			int n = Character.getNumericValue(s.charAt(i));

			if(n-10 >= 0 && n-10 < 26)
			alphabet[n-10] += 1;
		}

		for(int i = 0; i < 26; i++){
			Char ch = Character.toChars(i + 0x61);
			s = new String(ch);
			System.out.println(s + " : " + alphabet[i]);
		}
	}
}

Compiler output:
Main.java:7: error: cannot find symbol
		String s = nextLine();
		           ^
  symbol:   method nextLine()
  location: class Main
Main.java:18: error: cannot find symbol
			Char ch = Character.toChars(i + 0x61);
			^
  symbol:   class Char
  location: class Main
2 errors
Language: Java

import java.util.Scanner;
import java.util.Arrays;

class Main{
	public static void main(String[] args){
		Scanner scanner = new Scanner(System.in);
		String s = scanner.nextLine();
		int[] alphabet = new int[26];

		for(int i = 0; i < s.length(); i++){
			int n = Character.getNumericValue(s.charAt(i));

			if(n-10 >= 0 && n-10 < 26)
			alphabet[n-10] += 1;
		}

		for(int i = 0; i < 26; i++){
			Char ch = Character.toChars(i + 0x61);
			s = new String(ch);
			System.out.println(s + " : " + alphabet[i]);
		}
	}
}

Compiler output:
Main.java:18: error: cannot find symbol
			Char ch = Character.toChars(i + 0x61);
			^
  symbol:   class Char
  location: class Main
1 error
Language: Java

import java.util.Scanner;
import java.util.Arrays;

class Main{
	public static void main(String[] args){
		Scanner scanner = new Scanner(System.in);
		String s = scanner.nextLine();
		int[] alphabet = new int[26];

		for(int i = 0; i < s.length(); i++){
			int n = Character.getNumericValue(s.charAt(i));

			if(n-10 >= 0 && n-10 < 26)
			alphabet[n-10] += 1;
		}

		for(int i = 0; i < 26; i++){
			Char[] ch = Character.toChars(i + 0x61);
			s = new String(ch);
			System.out.println(s + " : " + alphabet[i]);
		}
	}
}

Compiler output:
Main.java:18: error: cannot find symbol
			Char[] ch = Character.toChars(i + 0x61);
			^
  symbol:   class Char
  location: class Main
1 error
Language: Java

import java.util.Scanner;
import java.util.Arrays;

class Main{
	public static void main(String[] args){
		Scanner scanner = new Scanner(System.in);
		String s = scanner.nextLine();
		int[] alphabet = new int[26];

		for(int i = 0; i < s.length(); i++){
			int n = Character.getNumericValue(s.charAt(i));

			if(n-10 >= 0 && n-10 < 26)
			alphabet[n-10] += 1;
		}

		Char[] ch;

		for(int i = 0; i < 26; i++){
			ch = Character.toChars(i + 0x61);
			s = new String(ch);
			System.out.println(s + " : " + alphabet[i]);
		}
	}
}

Compiler output:
Main.java:17: error: cannot find symbol
		Char[] ch;
		^
  symbol:   class Char
  location: class Main
1 error
Language: Java

import java.util.Scanner;
import java.util.Arrays;

class Main{
	public static void main(String[] args){
		Scanner scanner = new Scanner(System.in);
		String s = scanner.nextLine();

		while(s){
			int[] alphabet = new int[26];

			for(int i = 0; i < s.length(); i++){
				int n = Character.getNumericValue(s.charAt(i));

				if(n-10 >= 0 && n-10 < 26)
				alphabet[n-10] += 1;
			}

			char[] ch;

			for(int i = 0; i < 26; i++){
				ch = Character.toChars(i + 0x61);
				s = new String(ch);
				System.out.println(s + " : " + alphabet[i]);
			}
			String s = scanner.nextLine();
		}
	}
}

Compiler output:
Main.java:9: error: incompatible types: String cannot be converted to boolean
		while(s){
		      ^
Main.java:26: error: variable s is already defined in method main(String[])
			String s = scanner.nextLine();
			       ^
2 errors
Language: Java

import java.util.Scanner;
import java.util.Arrays;

class Main{
	public static void main(String[] args){
		Scanner scanner = new Scanner(System.in);
		String s = scanner.nextLine();

		while(s != ""){
			int[] alphabet = new int[26];

			for(int i = 0; i < s.length(); i++){
				int n = Character.getNumericValue(s.charAt(i));

				if(n-10 >= 0 && n-10 < 26)
				alphabet[n-10] += 1;
			}

			char[] ch;

			for(int i = 0; i < 26; i++){
				ch = Character.toChars(i + 0x61);
				s = new String(ch);
				System.out.println(s + " : " + alphabet[i]);
			}
			String s = scanner.nextLine();
		}
	}
}

Compiler output:
Main.java:26: error: variable s is already defined in method main(String[])
			String s = scanner.nextLine();
			       ^
1 error
Language: Java

package practice;

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

public class Counting_Characters_31 {

	public static void main(String[] args) throws IOException {

		BufferedReader input = new BufferedReader(new InputStreamReader(System.in));

		// ???????????\???
		String Strings = input.readLine();

		// 1?????????????????¢??????????????????????????°?????°????????????????????????????´?
		char[] String_array = Strings.toCharArray();

		// a~z?????§????´¢????????????
		char word_a = 'a';

		// ??\?????????????°??????????a~z????????£?????????????????????????????°
		int count = 0;

		// ??????????????°?????¢?????????????????????????????§????´???????array
		int[] count_array = new int[26];

		// ??????String_array???????´????????????????????????????????????????????????????a~z??§???????????????
		for (int String_spot = 0; String_spot < String_array.length; String_spot++) {

			// AOJ????????¨??????????????????????????????????°??????????
			if (Character.isUpperCase(String_array[String_spot])) {

				String_array[String_spot] = Character.toLowerCase(String_array[String_spot]);

			}

			// a^z?????????????????????????´¢????????¨?????????????????????????????????
			char one_word = String_array[String_spot];

			// ?????????Z????¬??????????????????????
			word_a = 'a';

			// ??\???????????????????????????????????????????????¢?????????????????????????????????????´¢????????????
			for (int word_spot = 0; word_spot <= ('z' - 'a'); word_spot++) {

				// ??\??????????????????????????????????????¢????????????????????????????????¨?????´????????¨???
				if (one_word == word_a) {

					// ????????????
					count = 1;

					// output??¨
					count_array[word_spot] += count;

				}

				// ?¬??????????
				word_a++;

			}

		}

		// ?????????Z????¬??????????????????????
		word_a = 'a';

		// ??\???????????????????????????????????¢?????????????????????z
		for (int word_spot = 0; word_spot < 26; word_spot++) {

			System.out.println(word_a + " " + ":" + " " + count_array[word_spot]);

			word_a++;

		}

	}
}

Compiler output:
Main.java:7: error: class Counting_Characters_31 is public, should be declared in a file named Counting_Characters_31.java
public class Counting_Characters_31 {
       ^
1 error
Language: Java

public class Main {

	public static void main(String[] args) throws IOException {


		BufferedReader input = new BufferedReader(new InputStreamReader(System.in));

		int[] count_array = new int[26];
		// a~z?????§????´¢????????????

				char word_a = 'a';


		// ???????????\???
		String Strings;
		
		while((Strings=input.readLine())!=null){


		// 1?????????????????¢??????????????????????????°?????°????????????????????????????´?
		char[] String_array = Strings.toCharArray();



		// ??\?????????????°??????????a~z????????£?????????????????????????????°
		int count = 0;

		// ??????????????°?????¢?????????????????????????????§????´???????array


		// ??????String_array???????´????????????????????????????????????????????????????a~z??§???????????????
		for (int String_spot = 0; String_spot < String_array.length; String_spot++) {

			// AOJ????????¨??????????????????????????????????°??????????
			if (Character.isUpperCase(String_array[String_spot])) {

				String_array[String_spot] = Character.toLowerCase(String_array[String_spot]);

			}

			// a^z?????????????????????????´¢????????¨?????????????????????????????????
			char one_word = String_array[String_spot];

			// ?????????Z????¬??????????????????????
			word_a = 'a';

			// ??\???????????????????????????????????????????????¢?????????????????????????????????????´¢????????????
			for (int word_spot = 0; word_spot <= ('z' - 'a'); word_spot++) {

				// ??\??????????????????????????????????????¢????????????????????????????????¨?????´????????¨???
				if (one_word == word_a) {

					// ????????????
					count = 1;

					// output??¨
					count_array[word_spot] += count;

				}

				// ?¬??????????
				word_a++;

			}

		}
				}


		// ?????????Z????¬??????????????????????
		word_a = 'a';

		// ??\???????????????????????????????????¢?????????????????????z
		for (int word_spot = 0; word_spot < 26; word_spot++) {

			System.out.println(word_a + " " + ":" + " " + count_array[word_spot]);

			word_a++;

		}//?????£??¨?????£????????????????????????????????°???????????????????????????????????£????????????????????????????????????

	}
}

Compiler output:
Main.java:3: error: cannot find symbol
	public static void main(String[] args) throws IOException {
	                                              ^
  symbol:   class IOException
  location: class Main
Main.java:6: error: cannot find symbol
		BufferedReader input = new BufferedReader(new InputStreamReader(System.in));
		^
  symbol:   class BufferedReader
  location: class Main
Main.java:6: error: cannot find symbol
		BufferedReader input = new BufferedReader(new InputStreamReader(System.in));
		                           ^
  symbol:   class BufferedReader
  location: class Main
Main.java:6: error: cannot find symbol
		BufferedReader input = new BufferedReader(new InputStreamReader(System.in));
		                                              ^
  symbol:   class InputStreamReader
  location: class Main
4 errors
Language: Java

public class Main{

	public static void main(String[] args) throws IOException {

		BufferedReader input = new BufferedReader(new InputStreamReader(System.in));

		// ??????????????°?????¢?????????????????????????????§????´???????array
		int[] count_array = new int[26];

		// ??°???????????¨?????¨??????????????????
		char word_a = 'a';

		while (true) {

			// ???????????\???
			String Strings = input.readLine();

			if (Strings.equals("")) {
				break;
			}

			// 1?????????????????¢??????????????????????????°?????°????????????????????????????´?
			char[] String_array = Strings.toCharArray();

			// ??\?????????????°??????????a~z????????£?????????????????????????????°
			int count = 0;

			// ??????String_array???????´????????????????????????????????????????????????????a~z??§???????????????
			for (int String_spot = 0; String_spot < String_array.length; String_spot++) {

				// AOJ????????¨??????????????????????????????????°??????????
				if (Character.isUpperCase(String_array[String_spot])) {

					String_array[String_spot] = Character.toLowerCase(String_array[String_spot]);

				}

				// a^z?????????????????????????´¢????????¨?????????????????????????????????
				char one_word = String_array[String_spot];

				// ?????????Z????¬??????????????????????
				word_a = 'a';

				// ??\???????????????????????????????????????????????¢?????????????????????????????????????´¢????????????
				for (int word_spot = 0; word_spot <= ('z' - 'a'); word_spot++) {

					// ??\??????????????????????????????????????¢????????????????????????????????¨?????´????????¨???
					if (one_word == word_a) {

						// ????????????
						count = 1;

						// output??¨
						count_array[word_spot] += count;

					}

					// ?¬??????????
					word_a++;

				}

			}
		}

		// ?????????Z????¬??????????????????????
		word_a = 'a';

		// ??\???????????????????????????????????¢?????????????????????z
		for (int word_spot = 0; word_spot < 26; word_spot++) {

			System.out.println(word_a + " " + ":" + " " + count_array[word_spot]);

			word_a++;

		}

	}
}

Compiler output:
Main.java:3: error: cannot find symbol
	public static void main(String[] args) throws IOException {
	                                              ^
  symbol:   class IOException
  location: class Main
Main.java:5: error: cannot find symbol
		BufferedReader input = new BufferedReader(new InputStreamReader(System.in));
		^
  symbol:   class BufferedReader
  location: class Main
Main.java:5: error: cannot find symbol
		BufferedReader input = new BufferedReader(new InputStreamReader(System.in));
		                           ^
  symbol:   class BufferedReader
  location: class Main
Main.java:5: error: cannot find symbol
		BufferedReader input = new BufferedReader(new InputStreamReader(System.in));
		                                              ^
  symbol:   class InputStreamReader
  location: class Main
4 errors
Language: Java

import java.io.*;

public class Main
{
	public static void main(String[] args)throws IOException
	{
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		StringBuilder sb = new StringBuilder();
		StringBuilder sb2 = new StringBuilder();
		while(true)
		{		
			sb.append(br.readLine());
		}
		sb2.append(sb.toString().toLowerCase());
		int[] cnt = new int[26];
		int n;
		for(int i=0;i<26;i++) cnt[i]=0;
		for(int i=0; i<sb2.length(); i++)
		{
			n = sb2.charAt(i)-'a';
			if(n>=0&&n<=26)	cnt[n]++;
		}
		char chr = 'a';
		for(int i=0; i<26; i++)	System.out.println(chr++ + ":" + cnt[i]);
	}
}

Compiler output:
Main.java:14: error: unreachable statement
		sb2.append(sb.toString().toLowerCase());
		^
1 error
Language: Java

import java.util.Scanner;

public class Eight_c_1 {
    public static void main(String... args) {
        Scanner sc = new Scanner(System.in);
        String str = sc.nextLine();

        while(sc.hasNext()) {
            str += sc.nextLine();
        }
        int[] count = new int[26];

        for(int i = 0; i < str.length(); i++) {
        	int c = str.toLowerCase().codePointAt(i) - 97;
        	if (c >= 0) count[c]++;
        }

        for(int i = 0; i < count.length; i++) {
        	System.out.println(String.format("%s : %d", (char) (i+97), count[i]));
        }
    }
}


Compiler output:
Main.java:3: error: class Eight_c_1 is public, should be declared in a file named Eight_c_1.java
public class Eight_c_1 {
       ^
1 error
Language: Java

import com.sun.xml.internal.rngom.parse.compact.JavaCharStream;

import java.util.HashMap;
import java.util.Map;
import java.util.Scanner;
import java.util.function.Function;
import java.util.stream.Stream;

public class Main {

    public static void main(String[] args) {
        new Main().solve();
    }

    Scanner sc = new Scanner(System.in);

    void solve() {
        String str = sc.nextLine();
        char[] strArr = str.toCharArray();
        Map<String, Integer> map = new HashMap<String, Integer>();
        for (char c = 'a'; c <= 'z'; c++) {
            map.put(String.valueOf(c), 0);
        }
        for (int i = 0; i < strArr.length; ++i) {
            if (map.containsKey(String.valueOf(Character.toLowerCase(strArr[i]))))
                map.put(String.valueOf(Character.toLowerCase(strArr[i])),
                        map.get(String.valueOf(Character.toLowerCase(strArr[i]))) + 1);
        }
        for (char c = 'a'; c <= 'z'; c++) {
            System.out.println(c + " : " +
                    map.get(String.valueOf(Character.toLowerCase(c))));
        }


    }
}






Compiler output:
Main.java:1: error: package com.sun.xml.internal.rngom.parse.compact does not exist
import com.sun.xml.internal.rngom.parse.compact.JavaCharStream;
                                               ^
1 error
Language: Java

import com.sun.xml.internal.rngom.parse.compact.JavaCharStream;

import java.util.HashMap;
import java.util.Map;
import java.util.Scanner;

public class Main {

    public static void main(String[] args) {
        new Main().solve();
    }

    Scanner sc = new Scanner(System.in);

    void solve() {
        String str = sc.nextLine();
        char[] strArr = str.toCharArray();
        Map<String, Integer> map = new HashMap<String, Integer>();
        for (char c = 'a'; c <= 'z'; c++) {
            map.put(String.valueOf(c), 0);
        }
        for (int i = 0; i < strArr.length; ++i) {
            if (map.containsKey(String.valueOf(Character.toLowerCase(strArr[i]))))
                map.put(String.valueOf(Character.toLowerCase(strArr[i])),
                        map.get(String.valueOf(Character.toLowerCase(strArr[i]))) + 1);
        }
        for (char c = 'a'; c <= 'z'; c++) {
            System.out.println(c + " : " +
                    map.get(String.valueOf(Character.toLowerCase(c))));
        }
    }
}






Compiler output:
Main.java:1: error: package com.sun.xml.internal.rngom.parse.compact does not exist
import com.sun.xml.internal.rngom.parse.compact.JavaCharStream;
                                               ^
1 error
Language: Java


public class Main {

    public static void main(String[] args) {
        // write your code here
        Scanner scanner=new Scanner(System.in);
        String alphabets="abcdefghijklmnopqrstuvwxyz";
        int[] albox=new int[alphabets.length()];
        while(scanner.hasNext()){
            String s=scanner.nextLine();
            s=s.toLowerCase();
            String[] chars=s.split("");
            for(String c:chars){
                int index=alphabets.indexOf(c);
                if(index==-1) continue;
                albox[index]++;
            }
        }
        for(int i=0;i<alphabets.length();i++){
            System.out.println(alphabets.charAt(i)+" : "+albox[i]);
        }
    }

}



Compiler output:
Main.java:6: error: cannot find symbol
        Scanner scanner=new Scanner(System.in);
        ^
  symbol:   class Scanner
  location: class Main
Main.java:6: error: cannot find symbol
        Scanner scanner=new Scanner(System.in);
                            ^
  symbol:   class Scanner
  location: class Main
2 errors
Language: Java

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

public class CountMozi {

	public static void main(String[] args) throws IOException {
		String[] Lary= {"A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","L","S","T","U","V","W","X","Y","Z"};
		String[] Sary= {"a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z"};
		int[] ansBox=new int[26];

		//ansBox初期化
		for(int i=0;i<26;i++) {
			ansBox[i]=0;
		}

		/*while(true) {*/
			//文字列を入力
			BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
			String str=br.readLine();
			/*if(str.equals("")) {
				break;
			}*/
			//文字列をカウント
			int n=str.length();
			//n回廻す
			for(int i=0;i<n;i++) {
				//strからi個目の文字を切り出す
				char a;
				a=str.charAt(i);

				//それぞれをif文にかけ、アルファベットを判断
				for(int j=0;j<26;j++) {
					if(Lary[j].equals(String.valueOf(a)) || Sary[j].equals(String.valueOf(a))) {
						ansBox[j]++;
					}
				}
			}
		/*}*/
		for(int i=0;i<26;i++) {
			System.out.println(Sary[i]+" : "+ansBox[i]);
		}
	}

}



Compiler output:
Main.java:5: error: class CountMozi is public, should be declared in a file named CountMozi.java
public class CountMozi {
       ^
1 error
Language: Java

import java.util.Scanner;

public class CountMozi {

	public static void main(String[] args) {
		String[] Lary= {"A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","L","S","T","U","V","W","X","Y","Z"};
        String[] Sary= {"a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z"};
        int[] ansBox=new int[26];
 
        //ansBox初期化
        for(int i=0;i<26;i++) {
            ansBox[i]=0;
        }
 
        //文字列を入力
        //BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        Scanner sc=new Scanner(System.in);
        String str;
        while(sc.hasNext()) {
            str=sc.nextLine();
            //文字数をカウント
            int n=str.length();
            //n回廻す
            for(int i=0;i<n;i++) {
                //strからi個目の文字を切り出す
                char a;
                a=str.charAt(i);
 
                //それぞれをif文にかけ、アルファベットを判断
                for(int j=0;j<26;j++) {
                    if(Lary[j].equals(String.valueOf(a)) || Sary[j].equals(String.valueOf(a))) {
                        ansBox[j]++;
                    }
                }
            }
            for(int i=0;i<26;i++) {
                System.out.println(Sary[i]+" : "+ansBox[i]);
            }
        }
        
	}

}



Compiler output:
Main.java:3: error: class CountMozi is public, should be declared in a file named CountMozi.java
public class CountMozi {
       ^
1 error
Language: Java

import java.util.Scanner;

public class Main{
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        String str;
        String[] alfa = {"a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z"};
        String[] s = new String[];
        int[] count = new int[26];
        str = sc.nextLine();
        for(int i=0;i<str.length();i++){
            s[i] = String.valueOf(str.charAt(i));
        }
        for(int i=0;i<str.length();i++){
            for(int j=0;j<26;j++){
                if(s[i].equalsIgnoreCase(alfa[j])) count[j]++;
            }
        }
        for(int i=0;i<26;i++){
            System.out.println(alfa[i] + ":" +count[i]);
        }
    }
}


Compiler output:
Main.java:8: error: array dimension missing
        String[] s = new String[];
                                 ^
1 error
Language: Java


import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int[] Count = new int[26];
		for (int i = 0; i < 26; i++) {
			Count[i] = 0;
		}
		for (int j = 0; j < 12; j++) {
			String S = sc.nextline();
			for (int i = 0; i < S.length(); i++) {
				char c = Character.toLowerCase(S.charAt(i));
				if (c - 'a' >= 0 && c - 'a' <= 26) {
					Count[c - 'a']++;
				}
			}
		}
		for (int i = 0; i < 26; i++) {
			System.out.println((char)('a' + i) + " : " + Count[i]);
		}
	}
}



Compiler output:
Main.java:12: error: cannot find symbol
			String S = sc.nextline();
			             ^
  symbol:   method nextline()
  location: variable sc of type Scanner
1 error
Language: Java

import java.util.*;

public class Ex21{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    char c;
    char[] ap = new char[] {'A','B','C','D','E','F','G','H','I','J','K',
                              'L','M','N','O','P','Q','R','S','T','U',
                              'V','W','X','Y','Z'};
    int[] count = new int[]{};
    while(sc.hasNextLine()){
      String s = sc.nextLine();
      for(int i= 0;i < s.length();i++){
        c = s.charAt(i);
        if(c >= 'A' && c <= 'Z'){
          count[c-'A']++;
        }else if(c >= 'a' && c <= 'z'){
          count[c-'a']++;
        }
      }
    }
    for(int i = 0;i < 26;i++){
      ap[i] += 'a' - 'A';
      System.out.println(ap[i] + " : " + count[i]);
    }
    sc.close();
  }
}



Compiler output:
Main.java:3: error: class Ex21 is public, should be declared in a file named Ex21.java
public class Ex21{
       ^
1 error
Language: Java

import java.util.Scanner;
public class s8{
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        int data[] = new int[26];
        String test = "abcdefghijklmnopqrstuvwxyz";
        String str,str2;


        while(sc.hasNext()) {
            str = sc.nextLine();
            str2=str.toLowerCase();



            for(int i=0;i<str2.length();i++){
            	for(int j=0;j<26;j++) {
            		if(test.charAt(i)==str2.charAt(j))data[j]++;
            	}
            }

        }

        for(int i=0;i<26;i++) {
        	System.out.println(test.charAt(i)+" : "+data[i]);
        }

        sc.close();
    }
}



Compiler output:
Main.java:2: error: class s8 is public, should be declared in a file named s8.java
public class s8{
       ^
1 error
Language: Java

import java.awt.print.Printable;
import java.util.Scanner;
import javax.sound.midi.SysexMessage;
  
public class Main{      
    public static void main(String[] args){

        Scanner sc = new Scanner(System.in);
        int[] charCount = new int[25]
        while(sc.hasNext()){
            String str=sc.next();
            //str.toLowerCase();
            char[] chars = str.toCharArray();
            for(int i=0;i<chars.length;i++){
                if('A' <= chars[i]&&chars[i] <= 'Z')
                    chars[i] = chars[i]+'a'-'A';
                if('a' <= chars[i]&&chars[i] <= 'z')
                    charCount[chars[i]-'a']++;
            } 
        }
        sc.close();
        char L00 = 'A';

        for (int L01 = 0; L01 <= ('Z' - 'A'); L01++) {
            System.out.println(L00++ + " : "+charCount[L01]);
        }
    }   
}


Compiler output:
Main.java:9: error: ';' expected
        int[] charCount = new int[25]
                                     ^
1 error
Language: Java

import java.awt.print.Printable;
import java.util.Scanner;
import javax.sound.midi.SysexMessage;
  
public class Main{      
    public static void main(String[] args){

        Scanner sc = new Scanner(System.in);
        int[] charCount = new int[25];
        while(sc.hasNext()){
            String str=sc.next();
            //str.toLowerCase();
            char[] chars = str.toCharArray();
            for(int i=0;i<chars.length;i++){
                if('A' <= chars[i]&&chars[i] <= 'Z')
                    chars[i] = chars[i]+'a'-'A';
                if('a' <= chars[i]&&chars[i] <= 'z')
                    charCount[chars[i]-'a']++;
            } 
        }
        sc.close();
        char L00 = 'A';

        for (int L01 = 0; L01 <= ('Z' - 'A'); L01++) {
            System.out.println(L00++ + " : "+charCount[L01]);
        }
    }   
}


Compiler output:
Main.java:16: error: incompatible types: possible lossy conversion from int to char
                    chars[i] = chars[i]+'a'-'A';
                                           ^
1 error
Language: Java

import java.awt.print.Printable;
import java.util.Scanner;
import javax.sound.midi.SysexMessage;
  
public class Main{      
    public static void main(String[] args){

        Scanner sc = new Scanner(System.in);
        int[] charCount = new int[25];
        while(sc.hasNext()){
            String str=sc.next();
            //str.toLowerCase();
            char[] chars = str.toCharArray();
            for(int i=0;i<chars.length;i++){
                if('A' <= chars[i]&&chars[i] <= 'Z')
                    chars[i].toLowerCase();
                if('a' <= chars[i]&&chars[i] <= 'z')
                    charCount[chars[i]-'a']++;
            } 
        }
        sc.close();
        char L00 = 'A';

        for (int L01 = 0; L01 <= ('Z' - 'A'); L01++) {
            System.out.println(L00++ + " : "+charCount[L01]);
        }
    }   
}


Compiler output:
Main.java:16: error: char cannot be dereferenced
                    chars[i].toLowerCase();
                            ^
1 error
Language: Java

import java.awt.print.Printable;
import java.util.Scanner;
import javax.sound.midi.SysexMessage;
  
public class Main{      
    public static void main(String[] args){

        Scanner sc = new Scanner(System.in);
        int[] charCount = new int[25];
        while(sc.hasNext()){
            String str=sc.next();
            //str.toLowerCase();
            char[] chars = str.toCharArray();
            for(int i=0;i<chars.length;i++){
                if('A' <= chars[i]&&chars[i] <= 'Z')
                    chars[i]=toLowerCase(chars[i]);
                if('a' <= chars[i]&&chars[i] <= 'z')
                    charCount[chars[i]-'a']++;
            } 
        }
        sc.close();
        char L00 = 'A';

        for (int L01 = 0; L01 <= ('Z' - 'A'); L01++) {
            System.out.println(L00++ + " : "+charCount[L01]);
        }
    }   
}


Compiler output:
Main.java:16: error: cannot find symbol
                    chars[i]=toLowerCase(chars[i]);
                             ^
  symbol:   method toLowerCase(char)
  location: class Main
1 error
Language: Java

import java.io.*;

class Main{
    public static void main(String[] args) throws IOException
    {
        InputStreamReader is = new InputStreamReader(System.in);
        BufferedReader br = new BufferedReader(is);

        String str;
        int[] numOfLetter = new int[26];  // initialize for 0.
        int i; char c;
  
        while(str = br.readLine()){
            for(i = 0; i < str.length(); i++){
                c = str.charAt(i);
                if('a' <= c && c <= 'z'){ numOfLetter[c - 'a']++; }
                else if('A' <= c && c <= 'Z'){ numOfLetter[c - 'A']++; }
            }
        }

        c = 'a';
        for(i = 0; i < 26; i++, c++){
            System.out.print(c);
            System.out.println(" : " + numOfLetter[i]);
        }
    }
}


Compiler output:
Main.java:13: error: incompatible types: String cannot be converted to boolean
        while(str = br.readLine()){
                  ^
1 error
Language: Java

import java.util.Scanner;
 
public class Main2 {
 
    // a～zの文字数を記録する配列
    static int[] CharCount = new int[26];
 
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
 
        // Ctrl+Zが押されるまで繰り返す
        while (sc.hasNext()) {
            // 入力と文字カウント
            CountingCharacters(sc.next());
        }
        // 表示
        Print();
 
    }
 
    // 文字列からa~zの文字をカウントする（大小文字区別なし）
    static void CountingCharacters(String str) {
 
        char[] c = str.toCharArray();
        for (int i = 0; i < c.length; i++) {
            for (int a = (int) 'A'; a < 1 + (int) 'Z'; a++) {
                if (Character.toUpperCase(c[i]) == (char) a) {
                    CharCount[a - (int) 'A']++;
                    break;
                }
            }
        }
    }
 
    // 表示処理
    static void Print() {
        for (int i = 0; i < CharCount.length; i++) {
            System.out.println((char) (i + (int) 'a') + " : " + CharCount[i]);
        }
    }
 
}



Compiler output:
Main.java:3: error: class Main2 is public, should be declared in a file named Main2.java
public class Main2 {
       ^
1 error
Language: Java

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

public class CountingCharacters {
	public static void main (String[] args) throws IOException
	{
		BufferedReader input = new BufferedReader (new InputStreamReader (System.in));



		String str = input.readLine();

		int[] alphabet = new int[26];;

		//配列の初期化
		for(int num = 0; num < alphabet.length; num++)
		{
			alphabet[num] = 0;
		}

		char moji;

		char MOJI;

		//文字列のアルファベットの数を数える
		for(int num = 0; num < str.length(); num++)
		{
			moji = 'a';

			MOJI = 'A';

			for(int kazu = 0; kazu < alphabet.length; kazu++, moji++, MOJI++)
			{
				if(str.charAt(num) ==  moji || str.charAt(num) ==  MOJI)
				{
					alphabet[kazu]++;

					break;
				}
			}
		}

		moji = 'a';

		//結果を表示する
		for(int num = 0; num < alphabet.length; num++, moji++)
		{
			System.out.println(moji + " : " + alphabet[num]);
		}

	}
}



Compiler output:
Main.java:5: error: class CountingCharacters is public, should be declared in a file named CountingCharacters.java
public class CountingCharacters {
       ^
1 error
Language: Java

import java.util.ArrayList;

public class Main {

	static ArrayList<String> list = new ArrayList<String>();

	public static void main(String[] args) {
		// Scanner sc = new Scanner(System.in);
		int alphabetSize = 'z' - 'a';
		int alphabet = 'a';
		int difference = 'A' - 'a';
		int[] count = new int[alphabetSize + 1];
		ArrayList<String> list = new ArrayList<String>();
		// String x;
		String word = "";
		Watch watch = new Watch();
		watch.run();
		try {
			watch.join(3000);
		} catch (InterruptedException e) {

			// while (true) {
			// x = sc.nextLine();
			// if (x.equals("")) {
			// break;
			// }
			// list.add(x);
			// }
			for (int i = 0; i < list.size(); i++) {
				word += list.get(i);
			}
			char[] c = word.toCharArray();
			for (int i = 0; i < c.length; i++) {
				for (int j = 0; j < alphabetSize; j++) {
					if ((int) c[i] == alphabet + j || (int) c[i] == alphabet + difference + j) {
						count[j]++;
					}
				}
			}
			for (int i = 0; i <= alphabetSize; i++) {
				System.out.println((char) (alphabet + i) + " : " + count[i]);
			}
		}
		// sc.close();
	}
}

public class Watch extends Thread {

	public void run() {
		Scanner sc = new Scanner(System.in);
		while (true) {
			String x = sc.nextLine();
			if (x.equals("")) {
				break;
			}
			Ex03CountingCharacters.list.add(x);
		}
		sc.close();
	}
}


Compiler output:
Main.java:48: error: class Watch is public, should be declared in a file named Watch.java
public class Watch extends Thread {
       ^
Main.java:51: error: cannot find symbol
		Scanner sc = new Scanner(System.in);
		^
  symbol:   class Scanner
  location: class Watch
Main.java:51: error: cannot find symbol
		Scanner sc = new Scanner(System.in);
		                 ^
  symbol:   class Scanner
  location: class Watch
Main.java:57: error: package Ex03CountingCharacters does not exist
			Ex03CountingCharacters.list.add(x);
			                      ^
4 errors
Language: Java

import java.util.ArrayList;
import java.util.Scanner;

public class Main {

	static ArrayList<String> list = new ArrayList<String>();

	public static void main(String[] args) {
		// Scanner sc = new Scanner(System.in);
		int alphabetSize = 'z' - 'a';
		int alphabet = 'a';
		int difference = 'A' - 'a';
		int[] count = new int[alphabetSize + 1];
		ArrayList<String> list = new ArrayList<String>();
		// String x;
		String word = "";
		Watch watch = new Watch();
		watch.run();
		try {
			watch.join(3000);
		} catch (InterruptedException e) {

			// while (true) {
			// x = sc.nextLine();
			// if (x.equals("")) {
			// break;
			// }
			// list.add(x);
			// }
			for (int i = 0; i < list.size(); i++) {
				word += list.get(i);
			}
			char[] c = word.toCharArray();
			for (int i = 0; i < c.length; i++) {
				for (int j = 0; j < alphabetSize; j++) {
					if ((int) c[i] == alphabet + j || (int) c[i] == alphabet + difference + j) {
						count[j]++;
					}
				}
			}
			for (int i = 0; i <= alphabetSize; i++) {
				System.out.println((char) (alphabet + i) + " : " + count[i]);
			}
		}
		// sc.close();
	}
}

public class Watch extends Thread {

	public void run() {
		Scanner sc = new Scanner(System.in);
		while (true) {
			String x = sc.nextLine();
			if (x.equals("")) {
				break;
			}
			Ex03CountingCharacters.list.add(x);
		}
		sc.close();
	}
}


Compiler output:
Main.java:49: error: class Watch is public, should be declared in a file named Watch.java
public class Watch extends Thread {
       ^
Main.java:58: error: package Ex03CountingCharacters does not exist
			Ex03CountingCharacters.list.add(x);
			                      ^
2 errors
Language: Java

import java.util.ArrayList;

public class Main {

	static ArrayList<String> list = new ArrayList<String>();

	public static void main(String[] args) {
		// Scanner sc = new Scanner(System.in);
		int alphabetSize = 'z' - 'a';
		int alphabet = 'a';
		int difference = 'A' - 'a';
		int[] count = new int[alphabetSize + 1];
		ArrayList<String> list = new ArrayList<String>();
		// String x;
		String word = "";
		Watch watch = new Watch();
		watch.run();
		try {
			watch.join(3000);
		} catch (InterruptedException e) {

			// while (true) {
			// x = sc.nextLine();
			// if (x.equals("")) {
			// break;
			// }
			// list.add(x);
			// }
			for (int i = 0; i < list.size(); i++) {
				word += list.get(i);
			}
			char[] c = word.toCharArray();
			for (int i = 0; i < c.length; i++) {
				for (int j = 0; j < alphabetSize; j++) {
					if ((int) c[i] == alphabet + j || (int) c[i] == alphabet + difference + j) {
						count[j]++;
					}
				}
			}
			for (int i = 0; i <= alphabetSize; i++) {
				System.out.println((char) (alphabet + i) + " : " + count[i]);
			}
		}
		// sc.close();
	}
}

import java.util.Scanner;

public class Watch extends Thread {

	public void run() {
		Scanner sc = new Scanner(System.in);
		while (true) {
			String x = sc.nextLine();
			if (x.equals("")) {
				break;
			}
			Ex03CountingCharacters.list.add(x);
		}
		sc.close();
	}
}


Compiler output:
Main.java:48: error: class, interface, enum, or record expected
import java.util.Scanner;
^
1 error
Language: Java

import java.util.ArrayList;

public class Main {

	static ArrayList<String> list = new ArrayList<String>();

	public static void main(String[] args) {
		// Scanner sc = new Scanner(System.in);
		int alphabetSize = 'z' - 'a';
		int alphabet = 'a';
		int difference = 'A' - 'a';
		int[] count = new int[alphabetSize + 1];
		ArrayList<String> list = new ArrayList<String>();
		// String x;
		String word = "";
		Watch watch = new Watch();
		watch.run();
		try {
			watch.join(3000);
		} catch (InterruptedException e) {
			for (int i = 0; i < list.size(); i++) {
				word += list.get(i);
			}
			char[] c = word.toCharArray();
			for (int i = 0; i < c.length; i++) {
				for (int j = 0; j < alphabetSize; j++) {
					if ((int) c[i] == alphabet + j || (int) c[i] == alphabet + difference + j) {
						count[j]++;
					}
				}
			}
			for (int i = 0; i <= alphabetSize; i++) {
				System.out.println((char) (alphabet + i) + " : " + count[i]);
			}
		}
		// sc.close();
	}
}

import java.util.Scanner;

public class Watch extends Thread {

	public void run() {
		Scanner sc = new Scanner(System.in);
		while (true) {
			String x = sc.nextLine();
			if (x.equals("")) {
				break;
			}
			Ex03CountingCharacters.list.add(x);
		}
		sc.close();
	}
}


Compiler output:
Main.java:40: error: class, interface, enum, or record expected
import java.util.Scanner;
^
1 error
Language: Java

import java.util.ArrayList;

public class Main {

	static ArrayList<String> list = new ArrayList<String>();

	public static void main(String[] args) {
		int alphabetSize = 'z' - 'a';
		int alphabet = 'a';
		int difference = 'A' - 'a';
		int[] count = new int[alphabetSize + 1];
		ArrayList<String> list = new ArrayList<String>();
		String word = "";
		Watch watch = new Watch();
		watch.run();
		try {
			watch.join(3000);
		} catch (InterruptedException e) {
			for (int i = 0; i < list.size(); i++) {
				word += list.get(i);
			}
			char[] c = word.toCharArray();
			for (int i = 0; i < c.length; i++) {
				for (int j = 0; j < alphabetSize; j++) {
					if ((int) c[i] == alphabet + j || (int) c[i] == alphabet + difference + j) {
						count[j]++;
					}
				}
			}
			for (int i = 0; i <= alphabetSize; i++) {
				System.out.println((char) (alphabet + i) + " : " + count[i]);
			}
		}
	}
}

import java.util.Scanner;

public class Watch extends Thread {

	public void run() {
		Scanner sc = new Scanner(System.in);
		while (true) {
			String x = sc.nextLine();
			if (x.equals("")) {
				break;
			}
			Ex03CountingCharacters.list.add(x);
		}
		sc.close();
	}
}


Compiler output:
Main.java:37: error: class, interface, enum, or record expected
import java.util.Scanner;
^
1 error
Language: Java

import java.util.ArrayList;
import java.util.Scanner;

public class Main {

	static ArrayList<String> list = new ArrayList<String>();

	public static void main(String[] args) {
		int alphabetSize = 'z' - 'a';
		int alphabet = 'a';
		int difference = 'A' - 'a';
		int[] count = new int[alphabetSize + 1];
		ArrayList<String> list = new ArrayList<String>();
		String word = "";
		Watch watch = new Watch();
		watch.run();
		try {
			watch.join(3000);
		} catch (InterruptedException e) {
			for (int i = 0; i < list.size(); i++) {
				word += list.get(i);
			}
			char[] c = word.toCharArray();
			for (int i = 0; i < c.length; i++) {
				for (int j = 0; j < alphabetSize; j++) {
					if ((int) c[i] == alphabet + j || (int) c[i] == alphabet + difference + j) {
						count[j]++;
					}
				}
			}
			for (int i = 0; i <= alphabetSize; i++) {
				System.out.println((char) (alphabet + i) + " : " + count[i]);
			}
		}
	}
}

public class Watch extends Thread {

	public void run() {
		Scanner sc = new Scanner(System.in);
		while (true) {
			String x = sc.nextLine();
			if (x.equals("")) {
				break;
			}
			Ex03CountingCharacters.list.add(x);
		}
		sc.close();
	}
}


Compiler output:
Main.java:38: error: class Watch is public, should be declared in a file named Watch.java
public class Watch extends Thread {
       ^
Main.java:47: error: package Ex03CountingCharacters does not exist
			Ex03CountingCharacters.list.add(x);
			                      ^
2 errors
Language: Java

import java.util.ArrayList;
import java.util.Scanner;

public class Main {

	static ArrayList<String> list = new ArrayList<String>();

	public static void main(String[] args) {
		int alphabetSize = 'z' - 'a';
		int alphabet = 'a';
		int difference = 'A' - 'a';
		int[] count = new int[alphabetSize + 1];
		ArrayList<String> list = new ArrayList<String>();
		String word = "";
		Watch watch = new Watch();
		watch.run();
		try {
			watch.join(3000);
		} catch (InterruptedException e) {
			for (int i = 0; i < list.size(); i++) {
				word += list.get(i);
			}
			char[] c = word.toCharArray();
			for (int i = 0; i < c.length; i++) {
				for (int j = 0; j < alphabetSize; j++) {
					if ((int) c[i] == alphabet + j || (int) c[i] == alphabet + difference + j) {
						count[j]++;
					}
				}
			}
			for (int i = 0; i <= alphabetSize; i++) {
				System.out.println((char) (alphabet + i) + " : " + count[i]);
			}
		}
	}
}

public class Watch extends Thread {

	public void run() {
		Scanner sc = new Scanner(System.in);
		while (true) {
			String x = sc.nextLine();
			if (x.equals("")) {
				break;
			}
			Main.list.add(x);
		}
		sc.close();
	}
}


Compiler output:
Main.java:38: error: class Watch is public, should be declared in a file named Watch.java
public class Watch extends Thread {
       ^
1 error
Language: Java

import java.util.ArrayList;
import java.util.Scanner;

public class Main {

	static ArrayList<String> list = new ArrayList<String>();

	public static void main(String[] args) {
		int alphabetSize = 'z' - 'a';
		int alphabet = 'a';
		int difference = 'A' - 'a';
		int[] count = new int[alphabetSize + 1];
		ArrayList<String> list = new ArrayList<String>();
		String word = "";
		Watch watch = new Watch();
		watch.run();
		try {
			watch.join(3000);
		} catch (InterruptedException e) {
			for (int i = 0; i < list.size(); i++) {
				word += list.get(i);
			}
			char[] c = word.toCharArray();
			for (int i = 0; i < c.length; i++) {
				for (int j = 0; j < alphabetSize; j++) {
					if ((int) c[i] == alphabet + j || (int) c[i] == alphabet + difference + j) {
						count[j]++;
					}
				}
			}
			for (int i = 0; i <= alphabetSize; i++) {
				System.out.println((char) (alphabet + i) + " : " + count[i]);
			}
		}
	}
}
public class Watch extends Thread {

	public void run() {
		Scanner sc = new Scanner(System.in);
		while (true) {
			String x = sc.nextLine();
			if (x.equals("")) {
				break;
			}
			Main.list.add(x);
		}
		sc.close();
	}
}


Compiler output:
Main.java:37: error: class Watch is public, should be declared in a file named Watch.java
public class Watch extends Thread {
       ^
1 error
Language: Java

import java.util.ArrayList;
import java.util.Scanner;

public class Main {

	static ArrayList<String> list = new ArrayList<String>();

	public static void main(String[] args) {
		int alphabetSize = 'z' - 'a';
		int alphabet = 'a';
		int difference = 'A' - 'a';
		int[] count = new int[alphabetSize + 1];
		ArrayList<String> list = new ArrayList<String>();
		String word = "";
		Watch watch = new Watch();
		watch.run();
		try {
			watch.join(3000);
		} catch (InterruptedException e) {
			for (int i = 0; i < list.size(); i++) {
				word += list.get(i);
			}
			char[] c = word.toCharArray();
			for (int i = 0; i < c.length; i++) {
				for (int j = 0; j < alphabetSize; j++) {
					if ((int) c[i] == alphabet + j || (int) c[i] == alphabet + difference + j) {
						count[j]++;
					}
				}
			}
			for (int i = 0; i <= alphabetSize; i++) {
				System.out.println((char) (alphabet + i) + " : " + count[i]);
			}
		}
	}
}

public class Main extends Thread {

	public void run() {
		Scanner sc = new Scanner(System.in);
		while (true) {
			String x = sc.nextLine();
			if (x.equals("")) {
				break;
			}
			Main.list.add(x);
		}
		sc.close();
	}
}


Compiler output:
Main.java:38: error: duplicate class: Main
public class Main extends Thread {
       ^
Main.java:15: error: cannot find symbol
		Watch watch = new Watch();
		^
  symbol:   class Watch
  location: class Main
Main.java:15: error: cannot find symbol
		Watch watch = new Watch();
		                  ^
  symbol:   class Watch
  location: class Main
3 errors