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

import java.util.Scanner;
public class Main{
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        int result[26];
        for(int i = 0 ; i < 26 ; i++)
            result[i] = 0;
        while(sc.hasNext())
        {
            String str = sc.next();
            str = str.toLowerCase();
            for(int i = 0 ; i < str.length() ; i++)
            {
                char c = str.charAt(i);
                if(c >= 'a' && c <= 'z')
                    result[c - 'a']++;
            }
        }
        for(int i = 0 ; i < 26 ; i++)
        {
            char ch = 'a' + i;
            System.out.println(c + " : " + result[i]);
        }
    }
}


Compiler output:
Main.java:5: error: ']' expected
        int result[26];
                   ^
1 error
Language: Java

import java.util.Scanner;
public class Main{
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        int result[] = new int[26];
        for(int i = 0 ; i < 26 ; i++)
            result[i] = 0;
        while(sc.hasNext())
        {
            String str = sc.next();
            str = str.toLowerCase();
            for(int i = 0 ; i < str.length() ; i++)
            {
                char c = str.charAt(i);
                if(c >= 'a' && c <= 'z')
                    result[c - 'a']++;
            }
        }
        for(int i = 0 ; i < 26 ; i++)
        {
            char ch = 'a' + i;
            System.out.println(c + " : " + result[i]);
        }
    }
}


Compiler output:
Main.java:21: error: incompatible types: possible lossy conversion from int to char
            char ch = 'a' + i;
                          ^
Main.java:22: error: cannot find symbol
            System.out.println(c + " : " + result[i]);
                               ^
  symbol:   variable c
  location: class Main
2 errors
Language: Java

import java.util.Scanner;
public class Main{
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        int result[] = new int[26];
        for(int i = 0 ; i < 26 ; i++)
            result[i] = 0;
        while(sc.hasNext())
        {
            String str = sc.next();
            str = str.toLowerCase();
            for(int i = 0 ; i < str.length() ; i++)
            {
                char c = str.charAt(i);
                if(c >= 'a' && c <= 'z')
                    result[c - 'a']++;
            }
        }
        for(int i = 0 ; i < 26 ; i++)
        {
            char ch = 'a' + i;
            System.out.println(ch + " : " + result[i]);
        }
    }
}


Compiler output:
Main.java:21: error: incompatible types: possible lossy conversion from int to char
            char ch = 'a' + i;
                          ^
1 error
Language: Java

import java.util.Scanner;
public class Main{
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        int result[] = new int[26];
        for(int i = 0 ; i < 26 ; i++)
            result[i] = 0;
        while(sc.hasNext())
        {
            String str = sc.next();
            str = str.toLowerCase();
            for(int i = 0 ; i < str.length() ; i++)
            {
                char c = str.charAt(i);
                if(c >= 'a' && c <= 'z')
                    result[c - 'a']++;
            }
        }
        for(int i = 0 ; i < 26 ; i++)
        {
            char ch = 'a' + (char)i;
            System.out.println(ch + " : " + result[i]);
        }
    }
}


Compiler output:
Main.java:21: error: incompatible types: possible lossy conversion from int to char
            char ch = 'a' + (char)i;
                          ^
1 error
Language: Java

import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int[] counter = new int[27];
        int flag=0;
        while (true) {
            String in = sc.nextLine();
            if(in==-1){
                break;
            }
            in=in.toLowerCase();
            for (int i = 0; i < in.length(); i++) {
          
                int value = in.charAt(i)-'a' ;
                if(value==-65){
                    continue;
                }
                if(value==-51){
                    flag=1;
                    break;
                }
           
               
                counter[value]++;
            }
            
            if(flag==1){
                break;
            }
        }
        for (int i = 0; i < 26; i++) {
            System.out.printf("%c : %d\n", i + 'a', counter[i]);
        }
        sc.close();
    }
}


Compiler output:
Main.java:10: error: bad operand types for binary operator '=='
            if(in==-1){
                 ^
  first type:  String
  second type: int
1 error
Language: Java

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

		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String str;
		int[] count=new int[26];
		char ch='a';
		for(;(str=br.readLine())!=null;){
			str=str.toLowerCase();
			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(ch++ +" : "+count[i]);
		}
	
	
	}}

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

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

public class Main{
	private int[] charCount = new int[128];

	public void count(String key) {
		charCount = new int[128];
		byte[] bStr = key.getBytes();
		for (byte b : bStr) {
			int index = (int) b;
			charCount[index]++;
		}
	}

	public int getCharCount(char ch) {
		return charCount[(int) ch];
	}

	public static void main(String[] args) throws IOException {
		CountingCharacters cc = new CountingCharacters();
		BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
		while (true) {
			String str = in.readLine();
			if (str.isEmpty()) {
				break;
			}
			cc.count(str.toLowerCase());
			char ch = 'a';
			for (int i = 0; i <= ('z' - 'a'); i += 1) {
				char x = ch++;
				System.out.println(x + " : " + cc.getCharCount(x));
			}
		}
	}
}

Compiler output:
Main.java:22: error: cannot find symbol
		CountingCharacters cc = new CountingCharacters();
		^
  symbol:   class CountingCharacters
  location: class Main
Main.java:22: error: cannot find symbol
		CountingCharacters cc = new CountingCharacters();
		                            ^
  symbol:   class CountingCharacters
  location: class Main
2 errors
Language: Java

import static java.lang.Character.*;

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

public class CountingCharacters {

	public static void main(String[] args) throws IOException {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String str;
		int[] count = new int[26];
		while((str = br.readLine()) != null){
			str = str.toLowerCase();
			for(int i = 0;i < str.length();i++){
				char c = str.charAt(i);
				if(isLetter(c)){
					count[c - 'a']++;
				}
			}
		}
		for(int i = 0;i < count.length;i++){
			System.out.print((char)('a' + i));
			System.out.print(" : ");
			System.out.println(count[i]);
		}
	}

}

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

import java.util.Scanner;

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

        for (String s = input.nextLine(); input.hasNext(); s = input.nextLine()){
            for (char c : s.toCharArray){
                if (c < 'A' || 'Z' < c) continue;
                c = Character.toUpperCase(c) - 'A';
                alphabet[c]++;
            }
        }

        for (int i = 0; i < 26; i++){
            System.out.printf("%c : %d\n", 'a' + i, alpabet[i]);
        }
    }
}

Compiler output:
Main.java:9: error: cannot find symbol
            for (char c : s.toCharArray){
                           ^
  symbol:   variable toCharArray
  location: variable s of type String
Main.java:11: error: incompatible types: possible lossy conversion from int to char
                c = Character.toUpperCase(c) - 'A';
                                             ^
Main.java:17: error: cannot find symbol
            System.out.printf("%c : %d\n", 'a' + i, alpabet[i]);
                                                    ^
  symbol:   variable alpabet
  location: class Main
3 errors
Language: Java

import java.util.Scanner;

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

        for (String s = input.nextLine(); input.hasNext(); s = input.nextLine()){
            for (char c : s.toCharArray()){
                if (c < 'A' || 'Z' < c) continue;
                c = Character.toUpperCase(c) - 'A';
                alphabet[c]++;
            }
        }

        for (int i = 0; i < 26; i++){
            System.out.printf("%c : %d\n", 'a' + i, alphabet[i]);
        }
    }
}

Compiler output:
Main.java:11: error: incompatible types: possible lossy conversion from int to char
                c = Character.toUpperCase(c) - 'A';
                                             ^
1 error
Language: Java

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

class Main {
    public static void main(String[] args) {
        BufferedReader buf = new BufferedReader(new InputStreamReader(System.in));
        String line;
        int c;
        int[] amounts = new int[26];

        try {
            while ((line = buf.readLine()) != null) {
                while ((c = line.read()) != (int)'\n') {
                        for (int i = 0; i < 26; i++) {
                            if (c == 97 + i || c == 65 + i) { // 97+の方で小文字と、65+の方で大文字との合致を判定
                                amounts[i] += 1;
                            }
                        }
                }
            }
            for (int i = 0; i < 26; i++) {
                System.out.println((char)(i + 97) + " : " + amounts[i]);
            }
        } catch (IOException e) {
            e.printStackTrace();
        }
    }
}

Compiler output:
Main.java:14: error: cannot find symbol
                while ((c = line.read()) != (int)'\n') {
                                ^
  symbol:   method read()
  location: variable line of type String
1 error
Language: Java

package Character;

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.LinkedHashMap;
import java.util.Map;
import java.util.Map.Entry;
import java.util.Scanner;

public class C {
	/**
	 * main
	 * @param args
	 * @throws IOException
	 */
	public static void main(String[] args) throws IOException {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		int[] cnt = new int[26];//??¢??????????????????26??????????????????
		char word = 'a';	//??????????????¢??????????????????
		int num = 0;		//???????????¨????????°
		String str = "";	//??§??????=>?°??????????????????????????????°	
		String line = "";
		
		while(!(line = br.readLine()).equals("")){
			//??????
			for(char c : line.toCharArray()){
				str = String.valueOf(c);
				// 32 => ?????????44 => ,???46 => .???*??????3????????´??????continue
				if(c == 32 || c == 44 || c == 46) continue;
				//??§????????§????????°?°??????????????????????
				if(c >= 65 && c <= 90){
					char i[] = str.toLowerCase().toCharArray();
					num = i[0] - word;
				}else{
					//??¢?????????????????????????°?????????§????????°???????????????????????????
					num = c - 'a';
				}
				cnt[num]++;
			}
		}
		
		
		
		//??¨???
		for (int i = 0; i < cnt.length; i++) {
			System.out.println((char)(97+i) + "???" + cnt[i]);
		}
	}

	
}

//if(c >= 'a' && c <= 'z'){
//c = toLowerCase(c);

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

package Character;

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.lang.Character;
import java.util.Scanner;


public class C {
	private static final String Charcter = null;

	/**
	 * main
	 * @param args
	 * @throws IOException
	 */
	public static void main(String[] args) throws IOException {
		//BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		Scanner scan = new Scanner(System.in);
		int[] cnt = new int[26];//??¢??????????????????26??????????????????
		int num = 0;		//???????????¨????????°
		String line = "";
		
		while(scan.hasNext()){
			
			for(char c : line.toCharArray()){
				c = Character.toLowerCase(c);
				if(c < 'a' && c > 'z'){
					num = c - 'a';
					cnt[num]++;
				}
			}
		}
		
		//??¨???
		for (int i = 0; i < cnt.length; i++) {
			System.out.println((char)('a'+i) + " : " + cnt[i]);
		}
	}

	

	
}

//if(c < 'a' || c > 'z'){
//c = Charcter.toLowerCase(c);

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

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

public class Main {

	public static void main(String[] args) {
		// TODO ?????????????????????????????????????????????

		BufferedReader insBR = new BufferedReader(new InputStreamReader(System.in));
		//??£??????????????????????????????????????°
		String strLine = "";

		while(true){
			try{

				String strScan = insBR.readLine();
				if("".equals(strScan) || strScan == null){
					break;
				}else{
					strLine += strScan;
				}


			}catch(IOException e){
				System.out.println(e);
			}

		}

		//?°????????????????
		strLine = strLine.toLowerCase();
		//System.out.println("strLine:" + strLine);

		//str???????§£??????char[]???????´?
		char[] aryLine= strLine.toCharArray();
		//System.out.println("aryLine.length:" + aryLine.length);

		char x = 'a';

		//int[] intCount = new int[26];

Compiler output:
Main.java:39: error: reached end of file while parsing
		char x = 'a';
		             ^
1 error
Language: Java

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

class Alphabet{
	char ch;
	int count = 0;
	boolean with = false;
	static List<Alphabet> abc = new ArrayList<Alphabet>();

	Alphabet(char ch){
		this.ch = ch;
	}
}


public class Main{
	public static void main(String[] args) throws IOException{
		char a = 'a';
		for (int i = 0; i < 26; i++){
			Alphabet.abc.add(new Alphabet(a++));
		}

				
	BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
	String str;
	
		while((str = br.readLine()) != null){
			for(char c: str.toCharArray()){
				if(Character.isUpperCase(c)){
					c = Character.toLowerCase(c);
				}

				for (Alphabet x : Alphabet.abc){
					if(c == x.ch){
						x.with = true;
						x.count ++;
					}	
				}
			}
		}			

		for(Alphabet x : Alphabet.abc){
			System.out.println(x.ch + " : " + x.count);
		}
	}

Compiler output:
Main.java:45: error: reached end of file while parsing
	}
	 ^
1 error
Language: Java

public class Main{
  public void run(java.io.InputStream in, java.io.PrintStream out){
    java.util.Scanner sc = new java.util.Scanner(in);
/*answer*/
    String str;
    char[] ch;
    int i, n, m;
    int[] count;

    count = new int[26];

    for(;sc.hasNextLine();){
      str = sc.nextLine();
      m = str.length();
      ch = new char[m];
      for(i = 0;i < m;i++){
        ch[i] = str.charAt(i);
        if(ch[i] >= 'a' && ch[i] <= 'z'){
          ch[i] -= 'a' - 'A';
        }
        if(ch[i] >= 'A' && ch[i] <= 'Z'){
          count[ch[i] - 'A']++;
        }
      }

    }

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


    sc.close();
  }
  public static void main(String[] args){
    (new Main()).run(System.in, System.out);
  }
}

Compiler output:
Main.java:29: error: variable ch might not have been initialized
      ch[0] = (char)('a' + i);
      ^
1 error
Language: Java

#include <stdio.h>
 
int main(){
  char c;
  char m;
  char s;
  int i;
  int j;
  int A[26]={0};
  while(scanf("%c", &s) != EOF){
    for(j=0,c='a',m='A';j<26;j++,c++,m++){
      if((int)s>=97&&(int)s<=122){
    if(c==s)A[(int)c-97]++;
      }else if((int)s>=65&&(int)s<=90){
    if(m==s)A[(int)m-65]++;
      }
    }
  }
  for(i=0,c='a';i<26;i++,c++){
    printf("%c : %d\n",c,A[i]);
  }
  return 0;
}

Compiler output:
Main.java:1: error: illegal character: '#'
#include <stdio.h>
^
Main.java:1: error: class, interface, enum, or record expected
#include <stdio.h>
         ^
Main.java:5: error: unnamed classes are a preview feature and are disabled by default.
  char m;
  ^
  (use --enable-preview to enable unnamed classes)
Main.java:9: error: class, interface, enum, or record expected
  int A[26]={0};
  ^
Main.java:10: error: class, interface, enum, or record expected
  while(scanf("%c", &s) != EOF){
  ^
Main.java:11: error: class, interface, enum, or record expected
    for(j=0,c='a',m='A';j<26;j++,c++,m++){
                        ^
Main.java:11: error: class, interface, enum, or record expected
    for(j=0,c='a',m='A';j<26;j++,c++,m++){
                             ^
Main.java:14: error: class, interface, enum, or record expected
      }else if((int)s>=65&&(int)s<=90){
      ^
Main.java:16: error: class, interface, enum, or record expected
      }
      ^
Main.java:19: error: class, interface, enum, or record expected
  for(i=0,c='a';i<26;i++,c++){
                ^
Main.java:19: error: class, interface, enum, or record expected
  for(i=0,c='a';i<26;i++,c++){
                     ^
Main.java:21: error: class, interface, enum, or record expected
  }
  ^
Main.java:23: error: class, interface, enum, or record expected
}
^
13 errors
Language: Java

#include <stdio.h>
  
int main(){
  char c,m,s;
  int i,j, temp[26]={0};
  while(scanf("%c", &s) != EOF){
    for(j=0,c='a',m='temp';j<26;j++,c++,m++){
      if((int)s>=97&&(int)s<=122){
    if(c==s)temp[(int)c-97]++;
      }else if((int)s>=65&&(int)s<=90){
    if(m==s)temp[(int)m-65]++;
      }
    }
  }
  for(i=0,c='a';i<26;i++,c++){
    printf("%c : %d\n",c,temp[i]);
  }
  return 0;
}

Compiler output:
Main.java:1: error: illegal character: '#'
#include <stdio.h>
^
Main.java:1: error: class, interface, enum, or record expected
#include <stdio.h>
         ^
Main.java:5: error: class, interface, enum, or record expected
  int i,j, temp[26]={0};
  ^
Main.java:6: error: class, interface, enum, or record expected
  while(scanf("%c", &s) != EOF){
  ^
Main.java:7: error: unclosed character literal
    for(j=0,c='a',m='temp';j<26;j++,c++,m++){
                    ^
Main.java:7: error: unclosed character literal
    for(j=0,c='a',m='temp';j<26;j++,c++,m++){
                         ^
Main.java:7: error: class, interface, enum, or record expected
    for(j=0,c='a',m='temp';j<26;j++,c++,m++){
                                ^
Main.java:10: error: class, interface, enum, or record expected
      }else if((int)s>=65&&(int)s<=90){
      ^
Main.java:12: error: class, interface, enum, or record expected
      }
      ^
Main.java:15: error: class, interface, enum, or record expected
  for(i=0,c='a';i<26;i++,c++){
                ^
Main.java:15: error: class, interface, enum, or record expected
  for(i=0,c='a';i<26;i++,c++){
                     ^
Main.java:17: error: class, interface, enum, or record expected
  }
  ^
Main.java:19: error: class, interface, enum, or record expected
}
^
13 errors
Language: Java

import java.util.Scanner;

public class ITP1_8_C {

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int chcnt[] = new int[26];

        for(String str = sc.next(); ; str = sc.next()){
            str = str.toLowerCase();
            for(int i = 0; i < str.length(); i++ ){
                char ch = str.charAt(i);
                if(ch <= 'z' && ch >= 'a') chcnt[ch - 97]++;
            }
            for(int i = 0; i < 26; i++){
                System.out.println((char)('a' + i) + " : " + chcnt[i]);
            }
        }
    }
}

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

import java.util.Scanner;

public class???Main {

	public static void main(String[] args) {
		// TODO ?????????????????????????????????????????????

		
		// ??\???
		Scanner scan = new Scanner(System.in);
		scan.useDelimiter("\\r\\n");
		int X[];
		X = new int[26];
		String S = "a";
		while(true){
			String s = scan.next();
			// ???????????????
			int sl = s.length();
			if(sl == 0) break;
			int x=0;
			for (int i=1; i<sl; i++){
				// ?????????????????????
				S = s.substring(i, i+1);
				// test
				//System.out.println(S);
				if((S.equals ("a"))||(S.equals("A"))) x=1;
				if((S.equals ("b"))||(S.equals("B"))) x=2;
				if((S.equals ("c"))||(S.equals("C"))) x=3;
				if((S.equals ("d"))||(S.equals("D"))) x=4;
				if((S.equals ("e"))||(S.equals("E"))) x=5;
				if((S.equals ("f"))||(S.equals("F"))) x=6;
				if((S.equals ("g"))||(S.equals("G"))) x=7;
				if((S.equals ("h"))||(S.equals("H"))) x=8;
				if((S.equals ("i"))||(S.equals("I"))) x=9;
				if((S.equals ("j"))||(S.equals("J"))) x=10;
				if((S.equals ("k"))||(S.equals("K"))) x=11;
				if((S.equals ("l"))||(S.equals("L"))) x=12;
				if((S.equals ("m"))||(S.equals("M"))) x=13;
				if((S.equals ("n"))||(S.equals("N"))) x=14;
				if((S.equals ("o"))||(S.equals("O"))) x=15;
				if((S.equals ("p"))||(S.equals("P"))) x=16;
				if((S.equals ("q"))||(S.equals("Q"))) x=17;
				if((S.equals ("r"))||(S.equals("R"))) x=18;
				if((S.equals ("s"))||(S.equals("S"))) x=19;
				if((S.equals ("t"))||(S.equals("T"))) x=20;
				if((S.equals ("u"))||(S.equals("U"))) x=21;
				if((S.equals ("v"))||(S.equals("V"))) x=22;
				if((S.equals ("w"))||(S.equals("W"))) x=23;
				if((S.equals ("x"))||(S.equals("X"))) x=24;
				if((S.equals ("y"))||(S.equals("Y"))) x=25;
				if((S.equals ("z"))||(S.equals("Z"))) x=26;
				X[x-1] = X[x-1]+1;
			}
		}
		System.out.println("a" + " : " + X[0]);
		System.out.println("b" + " : " + X[1]);
		System.out.println("c" + " : " + X[2]);
		System.out.println("d" + " : " + X[3]);
		System.out.println("e" + " : " + X[4]);
		System.out.println("f" + " : " + X[5]);
		System.out.println("g" + " : " + X[6]);
		System.out.println("h" + " : " + X[7]);
		System.out.println("i" + " : " + X[8]);
		System.out.println("j" + " : " + X[9]);
		System.out.println("k" + " : " + X[10]);
		System.out.println("l" + " : " + X[11]);
		System.out.println("m" + " : " + X[12]);
		System.out.println("n" + " : " + X[13]);
		System.out.println("o" + " : " + X[14]);
		System.out.println("p" + " : " + X[15]);
		System.out.println("q" + " : " + X[16]);
		System.out.println("r" + " : " + X[17]);
		System.out.println("s" + " : " + X[18]);
		System.out.println("t" + " : " + X[19]);
		System.out.println("u" + " : " + X[20]);
		System.out.println("v" + " : " + X[21]);
		System.out.println("w" + " : " + X[22]);
		System.out.println("x" + " : " + X[23]);
		System.out.println("y" + " : " + X[24]);
		System.out.println("z" + " : " + X[25]);	
	}

}

Compiler output:
Main.java:3: error: <identifier> expected
public class???Main {
            ^
1 error
Language: Java

import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		// TODO ?????????????????????????????????????????????

		
		// ??\???
		Scanner scan = new Scanner(System.in);
		scan.useDelimiter("\\r\\n");
		
		// ??????
		int count[];
		count = new int[26];
		int x = 0;
		while(true) {
			String S = scan.next();
			if(s.equals ("")) break;
			// ???????????????
			int sl = S.length();
			if(sl == 0000) break;
			// ?°???????????????????
			String s = S.toLowerCase();
			// 1????????\???char??????????´?
			char[] charArray = s.toCharArray();
			for (char ch : charArray) {
				int CH = ch;
				x = CH;
				// a-z?????°??????
				if(((CH-97)>=0) && ((CH-97)<26)){
					count[CH-97]++;
				}
			}
			if(x == 0000) break;
		}
		// ??????
		for (int i=0; i<26; i++) {
			int cords = i + 97;
			char c = (char)cords;
			System.out.println(c + " : " + count[i]);
		}

		
	}

}

Compiler output:
Main.java:19: error: cannot find symbol
			if(s.equals ("")) break;
			   ^
  symbol:   variable s
  location: class Main
1 error
Language: Java

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

public class L_8_3 {
	public static BufferedReader br;
	public static void main(String[] args)throws IOException{
		br = new BufferedReader(new InputStreamReader(System.in));
		int c[]=new int[26];
		String str;
		while((str = br.readLine())!=null){
			str = str.toLowerCase();
			for(int i=0;i<str.length();i++){
				char a='a';
				for(int j=0;j<26;j++){
					if(!Character.isLetter(str.charAt(i)))break;
					if(a==str.charAt(i)){
						c[j]++;
					}
					a++;
				}
			}
		}
		for(int i=0;i<26;i++){
			System.out.println((char)('a'+i)+" : "+c[i]);
		}
	}
}

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

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

        // ??????????????????????????????.
        java.util.Scanner sc = new java.util.Scanner(System.in);

        // ??¢??????????????????????????°????¨??????????????????????????????????????????????.
        int[] num = new int[26];
        for (int i = 0; i < 26; i ++) { num[i] = 0; }

        // ???????????????????????§????????????????????? 1 ?????\???????????????????????????.
        // ???????????? 1 ???????????????????????¢??????????????????????????°?????????????????????.
        while (true) {
            String s = sc.nextLine();
            if (s.length() == null) { break; }
            for (int i = 0; i < s.length(); i ++) {
                if (s.charAt(i) <= 'Z' && 'A' <= s.charAt(i)) { num[s.charAt(i) - 'A'] ++; }
                else if (s.charAt(i) <= 'z' && 'a' <= s.charAt(i)) { num[s.charAt(i) - 'a'] ++; }
            }
        }
        char c = 'a';
        for (int i = 0; i < 26; i ++) {
            System.out.println(c + " : " + num[i]);
            c ++;
        }
    }
}

Compiler output:
Main.java:15: error: bad operand types for binary operator '=='
            if (s.length() == null) { break; }
                           ^
  first type:  int
  second type: <null>
1 error
Language: Java

import java.util.Scanner;

public class Main{
  public static void main(String[] args){
    Scanner sc = new Scanner(Sysyem.in);
    int[] chars = new int[256];
    while(sc.hasNextLine()){
      String line = sc.nextLine();
      for(int i=0;i<line.length();i++){
        char ch = Character.toLowerCase(line.charAt(i));
        int n = ch-'a';
        chars[n]++;
      }
    }
    for(char ch ='a';ch <='z';ch++){
      System.out.println(ch+":"+chars[ch]);
    }
  }
}

Compiler output:
Main.java:5: error: cannot find symbol
    Scanner sc = new Scanner(Sysyem.in);
                             ^
  symbol:   variable Sysyem
  location: class Main
1 error
Language: Java

import java.util.Scanner;

public class Main{
 public stataic void main(String[] args){
 Scanner sc = new Scanner(System.in);
 int[] chars = new int{256];
 while(sc.hasNextLine()){
 String line= sc.nextLine();
 for(int i=0;i<line.length();i++){
 char ch =Character.toLowerCase(line.charAt(i));
 for(char search ='a';search<='z';search++){
  if(search == ch){
   chars[search]++;
   }
  }
 }
 for(char ch ='a';ch<='z';ch++){
 System.out.println(ch +" : "+ chars[ch]);
  }
 }
}

Compiler output:
Main.java:4: error: <identifier> expected
 public stataic void main(String[] args){
               ^
Main.java:6: error: '[' expected
 int[] chars = new int{256];
                      ^
Main.java:6: error: '}' expected
 int[] chars = new int{256];
                          ^
Main.java:21: error: reached end of file while parsing
}
 ^
4 errors
Language: Java

import java.util.Scanner;

public class Main{
 public stataic void main(String[] args){
 Scanner sc = new Scanner(System.in);
 int[] chars = new int[256];
 while(sc.hasNextLine()){
 String line= sc.nextLine();
 for(int i=0;i<line.length();i++){
 char ch =Character.toLowerCase(line.charAt(i));
 for(char search ='a';search<='z';search++){
  if(search == ch){
   chars[search]++;
   }
  }
 }
 for(char ch ='a';ch<='z';ch++){
 System.out.println(ch +" : "+ chars[ch]);
  }
 }
}

Compiler output:
Main.java:4: error: <identifier> expected
 public stataic void main(String[] args){
               ^
Main.java:21: error: reached end of file while parsing
}
 ^
2 errors
Language: Java

import java.util.Scanner;

public class Main{
 public static void main(String[] args){
 Scanner sc = new Scanner(System.in);
 int[] chars = new int[256];
 while(sc.hasNextLine()){
 String line= sc.nextLine();
 for(int i=0;i<line.length();i++){
 char ch =Character.toLowerCase(line.charAt(i));
 for(char search ='a';search<='z';search++){
  if(search == ch){
   chars[search]++;
   }
  }
 }
 for(char ch ='a';ch<='z';ch++){
 System.out.println(ch +" : "+ chars[ch]);
  }
 }
}

Compiler output:
Main.java:21: error: reached end of file while parsing
}
 ^
1 error
Language: Java

import java.util.Scanner;

public class Main{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    int[] chars = new int[256];
    for(int i=0;i<256;i++){
      chars[i]=0;
    }
    while(sc.hasNextLine()){
      String line = sc.nextLine();
      for(int i=0;i<line.length();i++){
        char ch = Character.toLowerCase(line.charAt(i));
        char n = ch-'a';
        chars[n]++;
      }
    }
    for(char ch ='a';ch <='z';ch++){
      System.out.println(ch+":"+chars[ch]);
    }
  }
}

Compiler output:
Main.java:14: error: incompatible types: possible lossy conversion from int to char
        char n = ch-'a';
                   ^
1 error
Language: Java

import java.io.*;

public class CountingCharacter {
    public static void main(String[] args) throws IOException {
        BufferedReader input = new BufferedReader(new InputStreamReader(System.in));
 
        String sentence;
        int[] abc = new int[26];
 
        while ((sentence = input.readLine()) != null) {
            for (int i = 0; i < sentence.length(); i++) {
                char c = sentence.charAt(i);
                     c = Character.toLowerCase(c);
                char cc = 'a';
                for (int j = 0; j < abc.length; j++) {
                    if (cc == c)
                        abc[j]++;
                    cc++;
                }
            }
        }
 
        char cc = 'a';
        for (int i = 0; i < abc.length; i++) {
            System.out.println(cc + " : " + abc[i]);
            cc++;
        }
    }
 
}

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

#include <stdio.h>
#include <string.h>

int main(void)
{
	char c[1200];
	int i,j,s,k,out[26];
	for(i=0;i<26;i++) out[i]=0;
		

		fgets(c,sizeof(c),stdin);		
		for(i=0;i<strlen(c);i++){
			for(j='a',k='A',s=0;j<='z';j++,k++,s++){
				if(j==c[i] || k==c[i]) out[s]+=1;
			}
		}
		for(i='a',j=0;j<26;i++,j++)	printf("%c : %d\n",i,out[j]);
	

return 0;
}

Compiler output:
Main.java:1: error: illegal character: '#'
#include <stdio.h>
^
Main.java:1: error: class, interface, enum, or record expected
#include <stdio.h>
         ^
Main.java:2: error: illegal character: '#'
#include <string.h>
^
Main.java:7: error: class, interface, enum, or record expected
	int i,j,s,k,out[26];
	^
Main.java:8: error: class, interface, enum, or record expected
	for(i=0;i<26;i++) out[i]=0;
	^
Main.java:8: error: class, interface, enum, or record expected
	for(i=0;i<26;i++) out[i]=0;
	        ^
Main.java:8: error: class, interface, enum, or record expected
	for(i=0;i<26;i++) out[i]=0;
	             ^
Main.java:11: error: class, interface, enum, or record expected
		fgets(c,sizeof(c),stdin);		
		^
Main.java:12: error: class, interface, enum, or record expected
		for(i=0;i<strlen(c);i++){
		^
Main.java:12: error: class, interface, enum, or record expected
		for(i=0;i<strlen(c);i++){
		        ^
Main.java:12: error: class, interface, enum, or record expected
		for(i=0;i<strlen(c);i++){
		                    ^
Main.java:13: error: class, interface, enum, or record expected
			for(j='a',k='A',s=0;j<='z';j++,k++,s++){
			                    ^
Main.java:13: error: class, interface, enum, or record expected
			for(j='a',k='A',s=0;j<='z';j++,k++,s++){
			                           ^
Main.java:15: error: class, interface, enum, or record expected
			}
			^
Main.java:17: error: class, interface, enum, or record expected
		for(i='a',j=0;j<26;i++,j++)	printf("%c : %d\n",i,out[j]);
		              ^
Main.java:17: error: class, interface, enum, or record expected
		for(i='a',j=0;j<26;i++,j++)	printf("%c : %d\n",i,out[j]);
		                   ^
Main.java:20: error: class, interface, enum, or record expected
return 0;
^
Main.java:21: error: class, interface, enum, or record expected
}
^
18 errors
Language: Java

	public static void main(String[] args){

		Scanner scan = new Scanner(System.in);
		String sent = scan.nextLine();
		char [] alp = { 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 < 26; i++){
			int cnt = 0;
			for(int j = 0; j < sent.length(); j++){
				char c = sent.charAt(j);
				if(c == alp[i]){
					cnt++;
				}
			}
			System.out.printf("%s : %d\n", alp[i], cnt);
		}
	}
}

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:17: error: class, interface, enum, or record expected
}
^
2 errors
Language: Java

import java.util.*;

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

		Scanner scan = new Scanner(System.in);
		String sent = scan.nextLine();
		char [] alp = { '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 < 26; i++){
			int cnt = 0;
			for(int j = 0; j < sent.length(); j++){
				char c = toLower(sent.charAt(j));
				if(alp[i] == c){
					cnt++;
				}
			}
			System.out.printf("%s : %d\n", alp[i], cnt);
		}
	}
}

Compiler output:
Main.java:12: error: cannot find symbol
				char c = toLower(sent.charAt(j));
				         ^
  symbol:   method toLower(char)
  location: class Main
1 error
Language: Java

import java.util.*;

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

		Scanner scan = new Scanner(System.in);
		String sent = scan.nextLine();
		char [] alp = { '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 < 26; i++){
			int cnt = 0;
			for(int j = 0; j < sent.length(); j++){
				char c = sent.toLower().charAt(j);
				if(alp[i] == c){
					cnt++;
				}
			}
			System.out.printf("%s : %d\n", alp[i], cnt);
		}
	}
}

Compiler output:
Main.java:12: error: cannot find symbol
				char c = sent.toLower().charAt(j);
				             ^
  symbol:   method toLower()
  location: variable sent of type String
1 error
Language: Java

import java.util.*;

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

		Scanner scan = new Scanner(System.in);
		String sent = scan.next();
		char [] alp = { '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 [] num = new int[26];
		for(sent.hasNext()){
			String s = sent.toLowerCase();
			for(int i = 0; i < s.length(); i++){
				char c = s.charAt(i);
				for(int j = 0; j < 26; j++){
					if(c == alp[j]){
						num[j]++;
					}
				}
			}
		}

		for(int i = 0; i < 26; i++){
			System.out.printf("%c : %d\n", alp[i], num[i]);
		}
	}
}

Compiler output:
Main.java:10: error: ';' expected
		for(sent.hasNext()){
		                  ^
1 error
Language: Java

import java.util.*;

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

		Scanner scan = new Scanner(System.in);
		String sent = scan.next();
		char [] alp = { '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 [] num = new int[26];
		while(sent.hasNext()){
			String s = sent.toLowerCase();
			for(int i = 0; i < s.length(); i++){
				char c = s.charAt(i);
				for(int j = 0; j < 26; j++){
					if(c == alp[j]){
						num[j]++;
					}
				}
			}
		}

		for(int i = 0; i < 26; i++){
			System.out.printf("%c : %d\n", alp[i], num[i]);
		}
	}
}

Compiler output:
Main.java:10: error: cannot find symbol
		while(sent.hasNext()){
		          ^
  symbol:   method hasNext()
  location: variable sent of type String
1 error
Language: Java

import java.util.*;

public class Main{
	private static final Scanner scan = new Scanner(System.in);

	public static void main(String[] args){
		char[] alp = { '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[26];
		while(scan.hasNext()){
			String word = scan.next();
			word = word.toLowerCase();
			for(int i = 0; word.length(); i++){
				char ch = word.charAt(i);
				for(int j = 0; j < 26; j++){
					if(ch.equals(alp[j]){
						count[j]++;
					}
				}
			}
		}

		for(int i = 0; i < 26; i++){
			System.out.printf("%c : %d\n", alp[i], count[i]);
		}
	}
}

Compiler output:
Main.java:15: error: ')' expected
					if(ch.equals(alp[j]){
					                    ^
1 error
Language: Java

import java.util.*;

public class Main{
	private static final Scanner scan = new Scanner(System.in);

	public static void main(String[] args){
		char[] alp = { '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[26];
		while(scan.hasNext()){
			String word = scan.next();
			word = word.toLowerCase();
			for(int i = 0; word.length(); i++){
				char ch = word.charAt(i);
				for(int j = 0; j < 26; j++){
					if(ch.equals(alp[j])){
						count[j]++;
					}
				}
			}
		}

		for(int i = 0; i < 26; i++){
			System.out.printf("%c : %d\n", alp[i], count[i]);
		}
	}
}

Compiler output:
Main.java:12: error: incompatible types: int cannot be converted to boolean
			for(int i = 0; word.length(); i++){
			                          ^
Main.java:15: error: char cannot be dereferenced
					if(ch.equals(alp[j])){
					     ^
2 errors
Language: Java

import java.io.*;

public class Main31{
	public static void main(String[] args) throws IOException{
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String str;
		int count[] = new int[26];
		char abc = 'a';
		
		while((str=br.readLine())!=null){
			
			for(int i=0;i<str.length();i++){
				char abcd = str.charAt(i);
				abcd = Character.toLowerCase(abcd);
				for(int j =0;j<count.length;j++){
					if(abc==abcd) count[j]++;
					abc++;
					
				}
			}
		}
		for(int i=0;i<26;i++){
			System.out.println(abc + " : " +count[i]);
			abc++;
		}
		
		
	}
}

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



import java.util.Scanner;

public class Main8{
	public static void main(String []args){
		//????????£?????????????????????
		Scanner sc = new Scanner(System.in);
		//26???????????¨?????????
		int [] array = new int[26];
		while(sc.hasNext()){
			//??±????????????
			String line = sc.nextLine();
			//
			for(int i = 0; i<line.length(); i++){
				char  temp = line.charAt(i);
				//?????¶???
				if('A' <= temp && temp <='Z'){
					array[temp - 'A']++;
				}else if('a' <= temp && temp <='z'){
					array[temp-'a']++;
				}
			}
			//???????????¨???
			for(int i =0; i<array.length;i++){
				System.out.println((char)('a'+i)+ " : "+ array[i]);
			}
		}
	}
}

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



import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		// ????????£?????????????????????
		Scanner sc = new Scanner(System.in);
		// ??£?¨?
		String line = "";
		char temp;
		// 26???????????¨?????????
		int[] array = new int[26];
		while (true) {
			// ??±????????????
			line = sc.nextLine();
			// ??¨???????????????????°??????????????????????
			String lower = line.toLowerCase();
			// System.out.println(lower);
			// ?????????char ??????
			for (int i = 0; i < lower.length(); i++) {
				temp = lower.charAt(i);
				// System.out.println(temp);
				// ??\?????????????????¨a?????¢???????????????????????°?????§??????
				// if(Character.isLetter('a')){
				if ('a' <= temp && temp <= 'z') {
					array[temp - 'a']++;
				}
			}
		}
		for (int i = 0; i < array.length; i++) {
			System.out.println((char) ('a' + i) + " : " + array[i]);
		}
	}
}

Compiler output:
Main.java:31: error: unreachable statement
		for (int i = 0; i < array.length; i++) {
		^
1 error
Language: Java



import java.util.Scanner;

public class Main {
	public static void main(String [] args){
		//????????£?????????????????????
		Scanner sc = new Scanner(System.in);
		//??£?¨?
		String line ="";
		char temp; //char????????????????????´???
		int [] table = new int[26]; //??¢?????????????????????26???????????¨?????????
		//??°?????????
		while(ture){
			//?????????(??±???)?????????
			line = sc.nextLine();
			//??¨???????????????????°???????????????´
			String lower = line.toLowerCase();
			//?????????????????????
			for(int i =0; i < lower.length(); i++){
				//?°??????????char????????????
				temp = lower.charAt(i);
				//System.out.print(temp+ " ");
				//??¢??????????????????????°???????????????°????????????
				if('a' <= temp  && temp  <= 'z'){
					table[temp - 'a']++;
				}
			}
		}
		//????????????????????????
		for(int i = 0; i < table.length; i++){
			System.out.println( (char )('a' + i)+ " : "+ table[i]);
		}
	}
}

Compiler output:
Main.java:14: error: cannot find symbol
		while(ture){
		      ^
  symbol:   variable ture
  location: class Main
1 error
Language: Java

public class Main {
    
    public static void main(String[] args) throws IOException{
        BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
        
        String input="";
        char[] text=new char[1000];
        
        while(true){
            String in;
            in=br.readLine();
            if(in.equals("")){break;}
            else{input+=in;}            
        }
        
        text=input.toCharArray();
        
        for(int i=97;i<=122;i++){
            int count=0;
            for(int j=0;j<text.length;j++){
                if(text[j]==(char)(i)){
                    count+=1;
                }
            }
            System.out.println((char)(i)+":"+count);
        }
        
    }
}

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:4: error: cannot find symbol
        BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
        ^
  symbol:   class BufferedReader
  location: class Main
Main.java:4: error: cannot find symbol
        BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
                              ^
  symbol:   class BufferedReader
  location: class Main
Main.java:4: error: cannot find symbol
        BufferedReader br=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) {
		Scanner sc = new Scanner(System.in);
		int[] sum = new int[26];

		while(sc.hasNext()) {
			String line = sc.next();

			char[] chars =  line.toCharArray();
			for(int i = 0;i < chars.length; i++) {
				for(int j = 0;j < 26; j++) {
					if(chars[i] == 'a' + j || chars[i] == 'A' + j) {
						sum[j]++;
					}
				}
			}

		}
		System.out.println("e");

		for(int i = 0;i < sum.length;i++) {
			int ab = 'a' + i;

			System.out.println((char)ab + " : " + sum[i]);
		}
		sc.close();

	}
}

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

import java.util.*;

class Main(){

public static void main(String[] args){
Scanner scan;
String test

while((test=scan.nextLine())!=null){
System.out.println("Hello World");
}


}


}

Compiler output:
Main.java:3: error: '{' expected
class Main(){
          ^
Main.java:7: error: ';' expected
String test
           ^
2 errors
Language: Java


import java.util.*;
public class main {
    public static void main(String[] args)
    {
        Scanner scan = new Scanner(System.in);
        int cnt[] = new int[26];
        String alphabet="abcdefghijklmnopqrstuvwxyz";
        for(int i=0; i<26; i++)
        {
            cnt[i]=0;
        }
        char ch;
        while(scan.hasNext())
        {
            String text = scan.next();
            for(int i=0; i<text.length(); i++)
            {
                ch=text.charAt(i);
                int n=(ch-'A')%32;
                cnt[n]++;
            }
        }
        for(int i=0; i<26; i++)
        {
            System.out.println(alphabet.charAt(i)+" : "+cnt[i]);
        }
        scan.close();

    }
}

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

import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		Scanner in = new Scanner(System.in);
		while(in.hasNext()) {
			String s = in.nextLine();
			int table[] = new int[26];
			for (int i = 0; i < s.length(); i++) {
				char ch = Character.toLowerCase(s.charAt(i));
				if (Character.isAlphabetic(ch))
					table[ch - 'a']++;
			}
		}
		for(int i=0;i<26;i++) {
			char ch = (char) ('a' + i);
			System.out.println(ch + " : " + table[ch - 'a']);
		}
	}
}

Compiler output:
Main.java:17: error: cannot find symbol
			System.out.println(ch + " : " + table[ch - 'a']);
			                                ^
  symbol:   variable table
  location: class Main
1 error
Language: Java

import java.util.*;

public class Main{
  public static void main(String[] args){
    Scanner scanner = new Scanner(System.in);
    int[] chars = new int[256];
    while(scanner.hasNextLine()){
      String line = scanner.nextLine();
      for(int i = 0; i < line.length(); i++){
        char ch = Charactor.toLowerCase(line.charAt(i));
        for(char j = 'a'; j <= 'z'; j++){
          if(ch == j) chars[j] += 1;
        }
      }
    }
    for(char ch = 'a'; ch <= 'z'; ch++){
      Sysytem.out.println(ch + ":" + chars[ch]);
    }
  }
}

Compiler output:
Main.java:10: error: cannot find symbol
        char ch = Charactor.toLowerCase(line.charAt(i));
                  ^
  symbol:   variable Charactor
  location: class Main
Main.java:17: error: package Sysytem does not exist
      Sysytem.out.println(ch + ":" + chars[ch]);
             ^
2 errors