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

package topics08Character;

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

public class Ex03CountingCharacters {
	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.start();
		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();
	}
}


Compiler output:
Main.java:6: error: class Ex03CountingCharacters is public, should be declared in a file named Ex03CountingCharacters.java
public class Ex03CountingCharacters {
       ^
Main.java:16: error: cannot find symbol
		Watch watch = new Watch();
		^
  symbol:   class Watch
  location: class Ex03CountingCharacters
Main.java:16: error: cannot find symbol
		Watch watch = new Watch();
		                  ^
  symbol:   class Watch
  location: class Ex03CountingCharacters
3 errors
Language: Java

package topics08Character;

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

public class Ex03CountingCharacters {
	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 = "";
			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();
	}
}


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

package topics08Character;

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

public class Main{
	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 = "";
			while (true) {
			x = sc.nextLine();
			
			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();
	}
}


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

package topics08Character;

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

public class Main{
	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 = "";
		while (true) {
			x = sc.nextLine();
			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();
	}
}


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

import java.io.*;
class Main
{
    public static void main(String args[])throws IOException
    {
	BufferedReader input=new BufferedReader(new InputStreamReader(System.in));
	String str;
	int a[]=new int[26];
	while((str=input.readLine())!=null)
	    {
		
		for(int j=0;j<26;j++)
		    {	
			
			for(int i=0;i<str.length();i++)
			    {
				
				
				if((char)('A'+j)==str.charAt(i) || (char)('a'+j)==str.charAt(i))a[j]++;
				
			    }
			
		    }

	    }
	System.out.println((char)('a'+j)+" :"+" "+a[j]);
    }
}

Compiler output:
Main.java:26: error: cannot find symbol
	System.out.println((char)('a'+j)+" :"+" "+a[j]);
	                              ^
  symbol:   variable j
  location: class Main
Main.java:26: error: cannot find symbol
	System.out.println((char)('a'+j)+" :"+" "+a[j]);
	                                            ^
  symbol:   variable j
  location: class Main
2 errors
Language: Java

import java.util.*;

class CountingCharacters {
	public static void main(String[] args){
		final Scanner sc = new Scanner(System.in);
		StringBuilder sb = new StringBuilder();
		final String lb = System.getProperty("line.separator");
		char[] num = sc.nextLine().toCharArray();
		int[] count = new int[26];
		for(int i = 0; i < num.length; i++){
			final int code = num[i];
			if('A' <= code && code <= 'Z'){
				count[code - 0x41]++;
			} else if('a' <= code && code <= 'z'){
				count[code - 0x61]++;
			} else {}
		for(int i = 0; i < count.length; i++){
			sb.append(String.valueOf((char)('a'+i))).append(": ").append(count[i]).append(lb);
		}
		System.out.print(sb.toString());
	}
}

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

import java.util.*;

class Main {
	public static void main(String[] args){
		final Scanner sc = new Scanner(System.in);
		StringBuilder sb = new StringBuilder();
		final String lb = System.getProperty("line.separator");
		char[] num = sc.nextLine().toCharArray();
		int[] count = new int[26];
		for(int i = 0; i < num.length; i++){
			final int code = num[i];
			if('A' <= code && code <= 'Z'){
				count[code - 0x41]++;
			} else if('a' <= code && code <= 'z'){
				count[code - 0x61]++;
			} else {}
		for(int i = 0; i < count.length; i++){
			sb.append(String.valueOf((char)('a'+i))).append(": ").append(count[i]).append(lb);
		}
		System.out.print(sb.toString());
	}
}

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

package charactor;

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

public class Counting_Characters {

	// アルファベットの配列
	public static String[] alphabet_all = { "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" };

	public static void main(String[] args) {

		// アルファベットbeanのリスト
		ArrayList<alphabet> alpha_beans = new ArrayList<alphabet>();
		// 各アルファベットのbeanを作る
		for (String val : alphabet_all) {
			//
			alphabet hoge = new alphabet(val);
			alpha_beans.add(hoge);
		}

		// 標準入力
		Scanner sc = new Scanner(System.in);
		
		while (sc.hasNext()) {
			String input_sentence = sc.nextLine();

			// 入力文字を1文字ずつに変換
			char ch[] = input_sentence.toCharArray();

			// 入力文字列がある分、まわす
			for (int i = 0; i < ch.length; i++) {

				// それぞれのアルファベットについて
				for (alphabet val : alpha_beans) {

					// 入力文字の一文字ずつとアルファベットの文字(大文字も小文字は区別しない)が一致したら
					if (val.getString().equals(
							String.valueOf(ch[i]).toLowerCase())) {
						// 一致したアルファベットの数字を増やす
						val.setNumber(1);

					}
				}
			}
		}

		// 出力
		for (alphabet val : alpha_beans) {
			//
			System.out.println(val.getString() + " : " + val.getNumber());
		}
	}
}

// 各アルファベットクラス
class alphabet {
	//
	private int number = 0;
	private String alphabet = "";

	// コンストラクタ
	alphabet(String a) {
		alphabet = a;
	}

	// セッター
	public void setNumber(int n) {
		number = n + number;
	}

	// ゲッター
	public int getNumber() {
		return number;
	}

	public String getString() {
		return alphabet;
	}
}

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

import java.util.*;
class Main{
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		String str;
		
		while (sc.hasNext()){
			String buf = sc.nextLine();
			str += buf;
		}
		int[] count = new int[26];
		for (int i = 0; i < str.length(); i++){
			count[str.charAt[i] - 'a']++;
		}
		
		for (int i = 0; i < 26; i++){
			System.out.println(String.valueOf('a' + i) + " : " + count[i);
		}
	}
}

Compiler output:
Main.java:17: error: ']' expected
			System.out.println(String.valueOf('a' + i) + " : " + count[i);
			                                                            ^
1 error
Language: Java

import java.util.*;
class Main{
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		String str;
		
		while (sc.hasNext()){
			String buf = sc.nextLine();
			str += buf;
		}
		int[] count = new int[26];
		for (int i = 0; i < str.length(); i++){
			count[str.charAt[i] - 'a']++;
		}
		
		for (int i = 0; i < 26; i++){
			System.out.println(String.valueOf('a' + i) + " : " + count[i]);
		}
	}
}

Compiler output:
Main.java:13: error: cannot find symbol
			count[str.charAt[i] - 'a']++;
			         ^
  symbol:   variable charAt
  location: variable str of type String
1 error
Language: Java

import java.util.*;
class Main{
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		String str;
		
		while (sc.hasNext()){
			String buf = sc.nextLine();
			str += buf;
		}
		int[] count = new int[26];
		for (int i = 0; i < str.length(); i++){
			count[Integer.parseInt("" + str.charAt[i] - 'a')]++;
		}
		
		for (int i = 0; i < 26; i++){
			System.out.println(String.valueOf('a' + i) + " : " + count[i]);
		}
	}
}

Compiler output:
Main.java:13: error: cannot find symbol
			count[Integer.parseInt("" + str.charAt[i] - 'a')]++;
			                               ^
  symbol:   variable charAt
  location: variable str of type String
1 error
Language: Java

import java.util.*;
class Main{
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		String str;
		
		while (sc.hasNext()){
			String buf = sc.nextLine();
			str += buf;
		}
		int[] count = new int[26];
		for (int i = 0; i < str.length(); i++){
			count[Integer.parseInt("" + str.charAt[i]) - Integer.parseInt("" + 'a')]++;
		}
		
		for (int i = 0; i < 26; i++){
			System.out.println(String.valueOf('a' + i) + " : " + count[i]);
		}
	}
}

Compiler output:
Main.java:13: error: cannot find symbol
			count[Integer.parseInt("" + str.charAt[i]) - Integer.parseInt("" + 'a')]++;
			                               ^
  symbol:   variable charAt
  location: variable str of type String
1 error
Language: Java



import java.io.BufferedReader;
import java.io.FileNotFoundException;
import java.io.FileReader;
import java.io.IOException;
import java.util.ArrayList;

public class Main{

	// アルファベットの配列
	public static String[] alphabet_all = { "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" };

	public static void main(String[] args) {
		String dir = System.getProperty("user.dir");

		// アルファベットbeanのリスト
		ArrayList<alphabet> alpha_beans = new ArrayList<alphabet>();
		// 各アルファベットのbeanを作る
		for (String val : alphabet_all) {
			//
			alphabet hoge = new alphabet(val);
			alpha_beans.add(hoge);
		}

		System.out.print(dir);

		String line = "";
		try {

			// ファイル入力
			FileReader in = null;

			// テキストファイルを読み込む
			for (int i = 1; i < 5; i++) {
				//
				if (new FileReader("in" + i + ".txt") != null) {
					in = new FileReader("in" + i + ".txt");
				}
			}

			BufferedReader br = new BufferedReader(in);

			while ((line = br.readLine()) != null) {

				// 入力文字を1文字ずつに変換
				char ch[] = line.toCharArray();

				// 入力文字列がある分、まわす
				for (int i = 0; i < ch.length; i++) {

					// それぞれのアルファベットについて
					for (alphabet val : alpha_beans) {

						// 入力文字の一文字ずつとアルファベットの文字(大文字も小文字は区別しない)が一致したら
						if (val.getString().equals(
								String.valueOf(ch[i]).toLowerCase())) {
							// 一致したアルファベットの数字を増やす
							val.setNumber(1);

						}
					}
				}
			}

		} catch (FileNotFoundException e) {
			e.printStackTrace();
		} catch (IOException e) {
			// TODO 自動生成された catch ブロック
			e.printStackTrace();
		}
		// 出力
		for (alphabet val : alpha_beans) {
			//
			System.out.println(val.getString() + " : " + val.getNumber());
		}
	}

}

Compiler output:
Main.java:20: error: cannot find symbol
		ArrayList<alphabet> alpha_beans = new ArrayList<alphabet>();
		          ^
  symbol:   class alphabet
  location: class Main
Main.java:20: error: cannot find symbol
		ArrayList<alphabet> alpha_beans = new ArrayList<alphabet>();
		                                                ^
  symbol:   class alphabet
  location: class Main
Main.java:24: error: cannot find symbol
			alphabet hoge = new alphabet(val);
			^
  symbol:   class alphabet
  location: class Main
Main.java:24: error: cannot find symbol
			alphabet hoge = new alphabet(val);
			                    ^
  symbol:   class alphabet
  location: class Main
Main.java:55: error: cannot find symbol
					for (alphabet val : alpha_beans) {
					     ^
  symbol:   class alphabet
  location: class Main
Main.java:75: error: cannot find symbol
		for (alphabet val : alpha_beans) {
		     ^
  symbol:   class alphabet
  location: class Main
6 errors
Language: Java

import java.util.Scanner;
 
public class Main {
    public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
        boolean f = true;
        int[] c = new int['z' - 'a' + 1];
        while (s.hasNext()) {
            String str = scan.next().toLowerCase();
            for (int i = 0; i < str.length(); i++) {
                if (Character.isLetter(str.charAt(i))) {
                    c[str.charAt(i) - 'a']++;
                }
            }
        }
        for (int i = 0; i < c.length; ++i) {
            System.out.printf("%c : %d\n", (char)('a' + i), c[i]);
        }
    }
}

Compiler output:
Main.java:8: error: cannot find symbol
        while (s.hasNext()) {
               ^
  symbol:   variable s
  location: class Main
1 error
Language: C

#include<stdio.h>
int main()
{
 int i;
 char moji;
 int c[26]={};

 for(i=0;moji!=EOF;i++){
                        scanf("%c",&moji);
                        if(moji==isupper) moji=tolower;
                        c=moji-'a';
                        counter[c]++;
                        }
 for(i=0;i<26;i++){
                   printf("%c : %d\n",i+'a',counter[i]);
                   }
 return 0;

}



Compiler output:
main.c: In function 'main':
main.c:10:34: error: 'isupper' undeclared (first use in this function)
   10 |                         if(moji==isupper) moji=tolower;
      |                                  ^~~~~~~
main.c:10:34: note: each undeclared identifier is reported only once for each function it appears in
main.c:10:48: error: 'tolower' undeclared (first use in this function)
   10 |                         if(moji==isupper) moji=tolower;
      |                                                ^~~~~~~
main.c:11:26: error: assignment to expression with array type
   11 |                         c=moji-'a';
      |                          ^
main.c:12:25: error: 'counter' undeclared (first use in this function)
   12 |                         counter[c]++;
      |                         ^~~~~~~
Language: C

#include<stdio.h>
int main()
{
 int i;
 char moji;
 int c[26]={};

 for(i=0;moji!=EOF;i++){
                        scanf("%c",&moji);
                        if(isupper(moji)) tolower(moji);
                        c=moji-'a';
                        counter[c]++;
                        }
 for(i=0;i<26;i++){
                   printf("%c : %d\n",i+'a',counter[i]);
                   }
 return 0;

}



Compiler output:
main.c: In function 'main':
main.c:10:28: error: implicit declaration of function 'isupper' [-Wimplicit-function-declaration]
   10 |                         if(isupper(moji)) tolower(moji);
      |                            ^~~~~~~
main.c:2:1: note: include '<ctype.h>' or provide a declaration of 'isupper'
    1 | #include<stdio.h>
  +++ |+#include <ctype.h>
    2 | int main()
main.c:10:43: error: implicit declaration of function 'tolower' [-Wimplicit-function-declaration]
   10 |                         if(isupper(moji)) tolower(moji);
      |                                           ^~~~~~~
main.c:10:43: note: include '<ctype.h>' or provide a declaration of 'tolower'
main.c:11:26: error: assignment to expression with array type
   11 |                         c=moji-'a';
      |                          ^
main.c:12:25: error: 'counter' undeclared (first use in this function)
   12 |                         counter[c]++;
      |                         ^~~~~~~
main.c:12:25: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#include <stdio.h> 
 
 
  int main(){ 
     int count[26]={0}; 
     char ch; 
     int i, num; 
 
 
     while(scanf("%c", &ch)!=EOF){ 
         if(islower(ch)){ 
             num=ch-'a'; 
         }else if(isupper(ch)){ 
             num=ch-'A'; 
         }else{ 
             continue; 
         } 
         count[num]++; 
     } 
     for(i=0;i<26;i++){ 
         printf("%c : %d\n", 'a'+i, count[i]); 
     } 
 
 
25     return 0; 
26 } 



Compiler output:
main.c: In function 'main':
main.c:11:13: error: implicit declaration of function 'islower' [-Wimplicit-function-declaration]
   11 |          if(islower(ch)){
      |             ^~~~~~~
main.c:2:1: note: include '<ctype.h>' or provide a declaration of 'islower'
    1 | #include <stdio.h>
  +++ |+#include <ctype.h>
    2 | 
main.c:13:19: error: implicit declaration of function 'isupper' [-Wimplicit-function-declaration]
   13 |          }else if(isupper(ch)){
      |                   ^~~~~~~
main.c:13:19: note: include '<ctype.h>' or provide a declaration of 'isupper'
main.c:25:3: error: expected ';' before 'return'
   25 | 25     return 0;
      |   ^    ~~~~~~
      |   ;
main.c:26:3: error: expected ';' before '}' token
   26 | 26 }
      |   ^~
      |   ;
Language: C

#include <stdio.h>
#include <string.h>
char t[1510];
int main(){
	int i;
	int n;
	int ans;
	int al[26]={0};
	while(gets(t)){
		n=strlen(t);
		for(i=0;i<n;i++){
			if(!isalpha(t[i])) continue;
			al[tolower(t[i])-'a']++;
		}
	}
	for(i=0;i<26;i++){
		printf("%c : %d\n",'a'+i,al[i]);
	}
	return 0;
}



Compiler output:
main.c: In function 'main':
main.c:9:15: error: implicit declaration of function 'gets'; did you mean 'fgets'? [-Wimplicit-function-declaration]
    9 |         while(gets(t)){
      |               ^~~~
      |               fgets
main.c:12:29: error: implicit declaration of function 'isalpha' [-Wimplicit-function-declaration]
   12 |                         if(!isalpha(t[i])) continue;
      |                             ^~~~~~~
main.c:3:1: note: include '<ctype.h>' or provide a declaration of 'isalpha'
    2 | #include <string.h>
  +++ |+#include <ctype.h>
    3 | char t[1510];
main.c:13:28: error: implicit declaration of function 'tolower' [-Wimplicit-function-declaration]
   13 |                         al[tolower(t[i])-'a']++;
      |                            ^~~~~~~
main.c:13:28: note: include '<ctype.h>' or provide a declaration of 'tolower'
Language: C

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

   char t[1510];
   int main(){
	int i;
	int n;
	int ans;
	int al[26]={0};
	while(gets(t)){
		n=strlen(t);
		for(i=0;i<n;i++){
			if(!isalpha(t[i])) continue;
			al[tolower(t[i])-'a']++;
		}
	}
	for(i=0;i<26;i++){
		printf("%c : %d\n",'a'+i,al[i]);
	}
	return 0;
}



Compiler output:
main.c: In function 'main':
main.c:10:15: error: implicit declaration of function 'gets'; did you mean 'fgets'? [-Wimplicit-function-declaration]
   10 |         while(gets(t)){
      |               ^~~~
      |               fgets
main.c:13:29: error: implicit declaration of function 'isalpha' [-Wimplicit-function-declaration]
   13 |                         if(!isalpha(t[i])) continue;
      |                             ^~~~~~~
main.c:3:1: note: include '<ctype.h>' or provide a declaration of 'isalpha'
    2 | #include <string.h>
  +++ |+#include <ctype.h>
    3 | 
main.c:14:28: error: implicit declaration of function 'tolower' [-Wimplicit-function-declaration]
   14 |                         al[tolower(t[i])-'a']++;
      |                            ^~~~~~~
main.c:14:28: note: include '<ctype.h>' or provide a declaration of 'tolower'
Language: C

#include <stdio.h>

int main()
{
	char str[1200];
	int count[26] = {0};
	int i;
	
	gets(str);
	
	i = 0;
	while (str[i] != '\0'){
		if (str[i] >= 'a' && str[i] <= 'z'){
			str[i] -= ('a' - 'A');
		}
		i++;
	}
	
	i = 0;
	while (str[i] != '\0'){
		if ((str[i] >= 'A' && str[i] <= 'Z') || (str[i] >= 'a' && str[i] <= 'z')){
			count[str[i] - 65]++;
		}
		i++;
	}
	
	for (i = 0; i < 26; i++){
		printf("%c:%d\n", i + 97, count[i]);
	}
	
	return 0;
}



Compiler output:
main.c: In function 'main':
main.c:9:9: error: implicit declaration of function 'gets'; did you mean 'fgets'? [-Wimplicit-function-declaration]
    9 |         gets(str);
      |         ^~~~
      |         fgets
Language: C

#include <stdio.h>

int main()
{
	char str[1200];
	int count[26] = {0};
	int i;
	
	gets_s(str);
	
	i = 0;
	while (str[i] != '\0'){
		if (str[i] >= 'a' && str[i] <= 'z'){
			str[i] -= ('a' - 'A');
		}
		i++;
	}
	
	i = 0;
	while (str[i] != '\0'){
		if ((str[i] >= 'A' && str[i] <= 'Z') || (str[i] >= 'a' && str[i] <= 'z')){
			count[str[i] - 65]++;
		}
		i++;
	}
	
	for (i = 0; i < 26; i++){
		printf("%c:%d\n", i + 97, count[i]);
	}
	
	return 0;
}



Compiler output:
main.c: In function 'main':
main.c:9:9: error: implicit declaration of function 'gets_s' [-Wimplicit-function-declaration]
    9 |         gets_s(str);
      |         ^~~~~~
Language: C

#include <stdio.h>
int main(){
	char Alphabet[1500];
	int i,j;
	for(j=0;j<1500;j++){
		Alphabet[j]=abc;
	}
	for(i=0;i<1500;i++){
		scanf("%s",&Alphabet[i]);
	}
	
	int sum[122],k;
	for(k=0;k<122;k++){
		sum[k]=0;
	}
	
	int n,l,m;
	
	for(n=0;n<1500;n++){
		int Convert[1500];
		Convert[n]=Alphabet[n];
		for(l=65;l<=90;l++){
			if(Convert[n]==l){
				sum[l]=sum[l]+1;
			}
		}
		for(m=97;m<=122;m++){
			if(Convert[n]==m){
				sum[m]=sum[m]+1;
			}
		}
	}
	int s,t;
	for(s=97;s<=122;s++){
		printf("%c:%d\n",s,sum[s]);
	}
	for(t=65;t<=90;t++){
		printf("%c:%d\n",t,sum[t]);
	}
	return 0;
}



Compiler output:
main.c: In function 'main':
main.c:6:29: error: 'abc' undeclared (first use in this function)
    6 |                 Alphabet[j]=abc;
      |                             ^~~
main.c:6:29: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#include<stdio.h>
#include<string.h>
int main()
{
    int i,A[26]= {0},p;
    char a[10005];
    gets(a);
    for(i=0; a[i]!='\0'; i++)
    {
        if(a[i]!=' ')
        {
            if(a[i]>='A' && a[i]<='Z')
            {
                p=a[i]-'A';
            }
            else
            {
                p=a[i]-'a';
            }
            A[p]++;
        }
    }
    for(i=0; i<26; i++)
    {
        printf("%c : %d\n",'a'+i,A[i]);
    }
    return 0;
}



Compiler output:
main.c: In function 'main':
main.c:7:5: error: implicit declaration of function 'gets'; did you mean 'fgets'? [-Wimplicit-function-declaration]
    7 |     gets(a);
      |     ^~~~
      |     fgets
Language: C

#include<stdio.h>
#include<string.h>
int main()
{
    int ln,a[100],x,i;
    memset(a,0,sizeof(a));
    char s[1009];
    gets(s);
    ln=strlen(s);
    for(i=0;i<ln;i++)
    {
        if(s[i]!=' ')
        {
            if(s[i]>=97)
            x=s[i]-'a';
            else
                x=s[i]-'A';
            a[x]++;
        }

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



Compiler output:
main.c: In function 'main':
main.c:8:5: error: implicit declaration of function 'gets'; did you mean 'fgets'? [-Wimplicit-function-declaration]
    8 |     gets(s);
      |     ^~~~
      |     fgets
Language: C

/*1803115*/
#include<stdio.h>
#include<string.h>
int main()
{
    char s[1200],l,u;
    int c[25]= {0},a,b,x;
    gets(s);
    x=strlen(s);
    for(a=0; a<x; a++)
    {
        l='a',u='z';
        while(l<='z')
        {
            if(s[a]==l || s[a]==u)
            {
                b=l-'a';
                c[b]+=1;
            }
            l=l+1;
            u=u+1;
        }

    }
    for(l='a',a=0; a<25; l++,a++)
    {
        printf("%c : %d\n",l,c[a]);
    }
    return 0;

}



Compiler output:
main.c: In function 'main':
main.c:8:5: error: implicit declaration of function 'gets'; did you mean 'fgets'? [-Wimplicit-function-declaration]
    8 |     gets(s);
      |     ^~~~
      |     fgets
Language: C

#include<stdio.h>
int main(void){
int h[26];
char m,c='a';
for(int a=0;a<26;a++)h[a]=0;
while(scanf("%c",&m)!=EOF){
if((m>='A'&&m<='Z')||(m>='a'&&m<='z')){
if(m>='A'&&m<='Z')m-='A';
if(m>='a'&&m<='z')m-='a';
h[m]++;
}
}
for(int b=0;b<26;b++){
c+=b;
printf("%c : %d\n",c,h[a]);
}
return 0;
}


Compiler output:
main.c: In function 'main':
main.c:15:24: error: 'a' undeclared (first use in this function)
   15 | printf("%c : %d\n",c,h[a]);
      |                        ^
main.c:15:24: note: each undeclared identifier is reported only once for each function it appears in
Language: C

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


Compiler output:
main.c: In function 'main':
main.c:4:5: error: expected ',' or ';' before 'int'
    4 |     int s[26]={0};
      |     ^~~
main.c:9:13: error: 's' undeclared (first use in this function)
    9 |             s[65-a[i]]++;
      |             ^
main.c:9:13: note: each undeclared identifier is reported only once for each function it appears in
Language: C

int main(int argc, const char * argv[]) {
    char ch;
    int num;
    int sum[26] = {0};
    int i;

    while ( scanf("%ch", &ch) != EOF){
        //どの文字に当たるかチェック
        if (ch>='a' && ch<='z') {//アルファベットかどうか判定
            num = ch - 'a';
            sum[num] ++;
            //printf("%c : %d\n", ch, sum[ch-'a']);
        }else if (ch>='A' && ch<='Z'){
            num = ch - 'A';
            sum[num] ++;
        }
    }

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

    return 0;
}


Compiler output:
main.c: In function 'main':
main.c:7:13: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    7 |     while ( scanf("%ch", &ch) != EOF){
      |             ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | int main(int argc, const char * argv[]) {
main.c:7:13: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    7 |     while ( scanf("%ch", &ch) != EOF){
      |             ^~~~~
main.c:7:13: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:7:34: error: 'EOF' undeclared (first use in this function)
    7 |     while ( scanf("%ch", &ch) != EOF){
      |                                  ^~~
main.c:7:34: note: 'EOF' is defined in header '<stdio.h>'; this is probably fixable by adding '#include <stdio.h>'
main.c:7:34: note: each undeclared identifier is reported only once for each function it appears in
main.c:20:9: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
   20 |         printf("%c : %d\n", i+'a', sum[i]);
      |         ^~~~~~
main.c:20:9: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:20:9: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:20:9: note: include '<stdio.h>' or provide a declaration of 'printf'
Language: C

int main(int argc, const char * argv[]) {
    char ch;
    int num;
    int sum[26] = {0};
    int i;

    while ( scanf("%c", &ch) != EOF){
        //どの文字に当たるかチェック
        if (ch>='a' && ch<='z') {//アルファベットかどうか判定
            num = ch - 'a';
            sum[num] ++;
            //printf("%c : %d\n", ch, sum[ch-'a']);
        }else if (ch>='A' && ch<='Z'){
            num = ch - 'A';
            sum[num] ++;
        }
    }

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

    return 0;
}


Compiler output:
main.c: In function 'main':
main.c:7:13: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    7 |     while ( scanf("%c", &ch) != EOF){
      |             ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | int main(int argc, const char * argv[]) {
main.c:7:13: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    7 |     while ( scanf("%c", &ch) != EOF){
      |             ^~~~~
main.c:7:13: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:7:33: error: 'EOF' undeclared (first use in this function)
    7 |     while ( scanf("%c", &ch) != EOF){
      |                                 ^~~
main.c:7:33: note: 'EOF' is defined in header '<stdio.h>'; this is probably fixable by adding '#include <stdio.h>'
main.c:7:33: note: each undeclared identifier is reported only once for each function it appears in
main.c:20:9: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
   20 |         printf("%c : %d\n", i+'a', sum[i]);
      |         ^~~~~~
main.c:20:9: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:20:9: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:20:9: note: include '<stdio.h>' or provide a declaration of 'printf'
Language: C

#include<stdio.h>

main()
{
	char c;
	int counter[26] = {0};
	
	
	while(scanf("%c",&c) != EOF){
		if('a'<= c && c <= 'z'){
			counter[ch-'a']++;
		} else if('A'<=c && c <= 'Z'){
			counter[ch-'A']++;
		}
	}
	
	
	short i;
	
	for(i=0;i<26;i++){
		printf("%c : %d\n",'a'+i,counter[i]);
	}
	return 0;
}

Compiler output:
main.c:3:1: error: return type defaults to 'int' [-Wimplicit-int]
    3 | main()
      | ^~~~
main.c: In function 'main':
main.c:11:33: error: 'ch' undeclared (first use in this function); did you mean 'c'?
   11 |                         counter[ch-'a']++;
      |                                 ^~
      |                                 c
main.c:11:33: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#include <stdio.h>

int main(void){
  int i,n[26]=0;
  char st,al[53] = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";
  
  do{
    scanf("%c", &st);

    for(i=0;i<52;i++)
      if(al[i] == st){
        n[ i%26 ]++
      }

    printf("%c", st);

  }while(st != '\n');

  for(i=0;i<26;i++)
    printf("%c : %d\n", al[i] , n[i]);

  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:4:15: error: invalid initializer
    4 |   int i,n[26]=0;
      |               ^
main.c:12:20: error: expected ';' before '}' token
   12 |         n[ i%26 ]++
      |                    ^
      |                    ;
   13 |       }
      |       ~
Language: C

#include<stdio.h>
#define MAX 1200
int main(){
	int i,j,cnt[26];
	char ss[MAX+1];
	gets(ss);
	for(i=0; i<MAX; i++){
		if(ss[i]=='\0'){break;}
		for(j=0; j<26; j++){
			if(ss[i]==65+i || SS[i]==97+i){cnt[i]++;}
		}
	}
	for(i=0; i<26; i++){
		printf("%s : %d", 97+i,ss[i]);
	}
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:6:9: error: implicit declaration of function 'gets'; did you mean 'fgets'? [-Wimplicit-function-declaration]
    6 |         gets(ss);
      |         ^~~~
      |         fgets
main.c:10:43: error: 'SS' undeclared (first use in this function); did you mean 'ss'?
   10 |                         if(ss[i]==65+i || SS[i]==97+i){cnt[i]++;}
      |                                           ^~
      |                                           ss
main.c:10:43: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#include<stdio.h>
#define MAX 1200
int main(){
	int i,j,cnt[26];
	char ss;
	while(scanf("%c", &ss) != EOF){
		for(i=0; i<MAX; i++){
			if(ss=='\0'){break;}
			else {cnt[ss-'a']++;}
			}
		}
		for(i=0; i<26; i++){
			printf("%c : %d\n", 97+i,cnt[i]);
		}
	}
	return 0;
}

Compiler output:
main.c:16:9: error: expected identifier or '(' before 'return'
   16 |         return 0;
      |         ^~~~~~
main.c:17:1: error: expected identifier or '(' before '}' token
   17 | }
      | ^
Language: C

#include <stdio.h>
#define WORDS 2400

int main(void) {
  char str[WORDS]="\0";
  int al[26]={0};
  int j;
  int i=0;

  fgets(str,sizeof(str),in2.txt);
  while(str[i]){
    if('a'<=str[i]&&str[i]<='z'||'A'<=str[i]&&str[i]<='Z')
      al[(str[i]-65)%32]++;
    i++;
  }
  for(j=0;j<26;j++)
    printf("%c : %d\n",97+j,al[j]);
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:10:25: error: 'in2' undeclared (first use in this function); did you mean 'int'?
   10 |   fgets(str,sizeof(str),in2.txt);
      |                         ^~~
      |                         int
main.c:10:25: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#include<stdio.h>
#include<ctype.h>
int main(){
int count[26];
char ch,j=a;
int num;
int i;
for(i=0;i<26;i++){
	count[i]=0;
}
while(scanf("%c",&ch)!=EOF){
	if(isalpha(ch)){
	num=ch-'a';
	count[num]++;
	}
}
for(i=0;i<26;i++){
j++;
printf("%c : %d\n",j,count[i+1]);
}
return 0;
}

Compiler output:
main.c: In function 'main':
main.c:5:11: error: 'a' undeclared (first use in this function)
    5 | char ch,j=a;
      |           ^
main.c:5:11: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#include <stdio.h>

int main(void){

  char ch;
  int alpha[26] = {0};
  int count;

  while ( scanf("%c", &ch) != EOF ){
    count = ch - 'a';
    alpha[count]++; 
  }
  for(i = 0;i < 26;i++){
    printf("%c : %d\n",i + 'a',alpha[i]);
  }
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:13:7: error: 'i' undeclared (first use in this function)
   13 |   for(i = 0;i < 26;i++){
      |       ^
main.c:13:7: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#include <stdio.h>
#include <ctype.h>

int main(void){
	int abc[26] = {0}, i;
	char ch;

	while (scanf_s("%c", &ch) != EOF){
		if (!isalpha(ch))continue;

		if (isupper(ch))ch = tolower(ch);
		abc[ch - 'a']++;
	}

	for ( i = 0; i < 26; i++){
		printf("%c : %d\n", 'a' + i, abc[i]);
	}
	
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:8:16: error: implicit declaration of function 'scanf_s'; did you mean 'scanf'? [-Wimplicit-function-declaration]
    8 |         while (scanf_s("%c", &ch) != EOF){
      |                ^~~~~~~
      |                scanf
Language: C

#include<stdio.h>

int main(){
int a=0,b=0,c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0;
int l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,y=0,v=0,w=0,x=0,y=0,z=0;
char A;
while(1){
scanf("%c",&A);
if(A=='\n'){
printf("a : %d\n",a);
printf("b : %d\n",b);
printf("c : %d\n",c);
printf("d : %d\n",d);
printf("e : %d\n",e);
printf("f : %d\n",f);
printf("g : %d\n",g);
printf("h : %d\n",h);
printf("i : %d\n",i);
printf("j : %d\n",j);
printf("k : %d\n",k);
printf("l : %d\n",l);
printf("m : %d\n",m);
printf("n : %d\n",n);
printf("o : %d\n",o);
printf("p : %d\n",p);
printf("q : %d\n",q);
printf("r : %d\n",r);
printf("s : %d\n",s);
printf("t : %d\n",t);
printf("u : %d\n",u);
printf("v : %d\n",v);
printf("w : %d\n",w);
printf("x : %d\n",x);
printf("y : %d\n",y);
printf("z : %d\n",z);
break;
}
if(A=='a')
a+=1;
if(A=='b')
b+=1;
if(A=='c')
c+=1;
if(A=='d')
d+=1;
if(A=='e')
e+=1;
if(A=='f')
f+=1;
if(A=='g')
g+=1;
if(A=='h')
h+=1;
if(A=='i')
i+=1;
if(A=='j')
j+=1;
if(A=='k')
k+=1;
if(A=='l')
l+=1;
if(A=='m')
m+=1;
if(A=='n')
n+=1;
if(A=='o')
o+=1;
if(A=='p')
p+=1;
if(A=='q')
q+=1;
if(A=='r')
r+=1;
if(A=='s')
s+=1;
if(A=='t')
t+=1;
if(A=='u')
u+=1;
if(A=='v')
v+=1;
if(A=='w')
w+=1;
if(A=='x')
x+=1;
if(A=='y')
y+=1;
if(A=='z')
z+=1;
if(A=='A')
a+=1;
if(A=='B')
b+=1;
if(A=='C')
c+=1;
if(A=='D')
d+=1;
if(A=='E')
e+=1;
if(A=='F')
f+=1;
if(A=='G')
g+=1;
if(A=='H')
h+=1;
if(A=='I')
i+=1;
if(A=='J')
j+=1;
if(A=='K')
k+=1;
if(A=='L')
l+=1;
if(A=='M')
m+=1;
if(A=='N')
n+=1;
if(A=='O')
o+=1;
if(A=='P')
p+=1;
if(A=='Q')
q+=1;
if(A=='R')
r+=1;
if(A=='S')
s+=1;
if(A=='T')
t+=1;
if(A=='U')
u+=1;
if(A=='V')
v+=1;
if(A=='W')
w+=1;
if(A=='X')
x+=1;
if(A=='Y')
y+=1;
if(A=='Z')
z+=1;
}
return 0;
}

Compiler output:
main.c: In function 'main':
main.c:5:61: error: redefinition of 'y'
    5 | int l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,y=0,v=0,w=0,x=0,y=0,z=0;
      |                                                             ^
main.c:5:45: note: previous definition of 'y' with type 'int'
    5 | int l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,y=0,v=0,w=0,x=0,y=0,z=0;
      |                                             ^
Language: C

#include <stdio.h>
int main(void)
{

int n[26] = {0};
char m[1300];
int i, z;

while(1){

if(scanf("%s",&m) == EOF)
break;

while(1){
if(m[i] == '\0')
break;

if('a' <= m[i] && m[i] <= 'z')
n[ m[i] - 'a']++;

if('A' <= m[i] && m[i] <= 'Z')
n[ m[i]] - 'A']++;

i++;
}

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

return 0;
}

Compiler output:
main.c: In function 'main':
main.c:22:15: error: expected ';' before ']' token
   22 | n[ m[i]] - 'A']++;
      |               ^
      |               ;
main.c:22:15: error: expected statement before ']' token
main.c:22:18: error: expected expression before ';' token
   22 | n[ m[i]] - 'A']++;
      |                  ^
main.c:28:12: error: expected ';' before 'printf'
   28 | z = i + 'a'
      |            ^
      |            ;
   29 | printf("%c : %d\n", z, n[i])
      | ~~~~~~      
main.c:33:1: error: expected declaration or statement at end of input
   33 | }
      | ^
Language: C



#include <stdio.h>
int main(void)
{
  
int n[26] = {0};
char m[1300];
int i, z;
  
while(1){
  
if(scanf("%s",&m) == EOF)
break;
  
while(1){
if(m[i] == '\0')
break;
  
if('a' <= m[i] && m[i] <= 'z')
n[ m[i] - 'a']++;
  
if('A' <= m[i] && m[i] <= 'Z')
n[ m[i] - 'A']++;
  
i++;
}
  
for(i = 0; i < 26; i++){
z = i + 'a';
printf("%c : %d\n", z, n[i]);
}
  
return 0;
}

Compiler output:
main.c: In function 'main':
main.c:35:1: error: expected declaration or statement at end of input
   35 | }
      | ^
Language: C

#include <stdio.h>
int main(void)
{
   
int n[26] = {0};
char m[1300];
int i, z;
   
while(1){
   
if(scanf("%s",&m) == EOF)
break;
   
i = 0;
while(1){
if(m[i] == '\0')
break;
   
if('a' <= m[i] && m[i] <= 'z')
n[ m[i] - 'a']++;
   
if('A' <= m[i] && m[i] <= 'Z')
n[ m[i] - 'A']++;
   
i++;
}
   
for(i = 0; i < 26; i++){
z = i + 'a';
printf("%c : %d\n", z, n[i]);
}
   
return 0;
}

Compiler output:
main.c: In function 'main':
main.c:34:1: error: expected declaration or statement at end of input
   34 | }
      | ^
Language: C

#include<stdio.h>
int main(){
	char cha;
	int str[26],i;
	while (scanf("%c", &cha) != EOF){
		scanf_s("%c", &cha);
		if (cha >= 'A'&&cha <= 'Z')
		{
			cha = cha - 'A' + 'a';
			str[cha - 'a']++;
		}
	}
	for (i = 0; i < 26; i++){
		printf("%c : %d\n", i + 'a', str[i]);
	}
		return 0;
}

Compiler output:
main.c: In function 'main':
main.c:6:17: error: implicit declaration of function 'scanf_s'; did you mean 'scanf'? [-Wimplicit-function-declaration]
    6 |                 scanf_s("%c", &cha);
      |                 ^~~~~~~
      |                 scanf
Language: C

#include<stdio.h>
#include<ctype.h>
int num[26],a;
char ch;

main()
{
	while(scanf("%c",&ch)!=EOF){
		if(ch=='\n') break;
		
		if(isupper(ch))a=tolower(ch)-'a';num[a]++;
		
		else if(islower(ch))a=ch-'a';num[a]++;
	}
	
	for(ch='a';ch<='z';ch++){
		printf("%c : %d\n",ch,num[ch-'a']);
	}
	
	return 0;
}

Compiler output:
main.c:6:1: error: return type defaults to 'int' [-Wimplicit-int]
    6 | main()
      | ^~~~
main.c: In function 'main':
main.c:13:17: error: 'else' without a previous 'if'
   13 |                 else if(islower(ch))a=ch-'a';num[a]++;
      |                 ^~~~
Language: C

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

int main()
{
	char str;
	int alpha[26];
	int i;
	
	for(i=0;i<26;i++)alpha[i]=0;
	
	
	while(scanf("%c",&str)!=EOF)
	{
			if(isalpha(str[i]))
			{
				if(isupper(str[i]))
				{
					alpha[str[i]-'A']++;
				}
				else
				{
					alpha[str[i]-'a']++;
				}
			}
	}
	
	for(i=0;i<26;i++)
	{
		printf("%c : %d\n",'a'+i,alpha[i]);
	}
	
	
	return 0;
}

Compiler output:
In file included from main.c:3:
main.c: In function 'main':
main.c:16:39: error: subscripted value is neither array nor pointer nor vector
   16 |                         if(isalpha(str[i]))
      |                                       ^
main.c:18:47: error: subscripted value is neither array nor pointer nor vector
   18 |                                 if(isupper(str[i]))
      |                                               ^
main.c:20:50: error: subscripted value is neither array nor pointer nor vector
   20 |                                         alpha[str[i]-'A']++;
      |                                                  ^
main.c:24:50: error: subscripted value is neither array nor pointer nor vector
   24 |                                         alpha[str[i]-'a']++;
      |                                                  ^
Language: C

#include <stdio.h>


int main(void){
	int i,j;
	int count[27] = {0};
	char c;

	while(scanf("%c",&c) != EOF){
		for(j = 97;j < 123;j++){
			if(c >= 65 && c <= 90){
				str[i]+=32;
			}else if(c < 97 || c > 122){
				continue;
			}
			if(c == j){
				count[j-97]++;
			}
		}
	}
	for(i = 0;i+97 < 123;i++){
		printf("%c : %d\n",i+97,count[i]);
	}
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:12:33: error: 'str' undeclared (first use in this function)
   12 |                                 str[i]+=32;
      |                                 ^~~
main.c:12:33: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#include "ex904.h"
#include "string.h"
int main(){
    int k, i, j, count[30]={0}, n=0;
    char str[100];
    char alpha[30]="abcdefghijklmnopqrstuvwxyz";
    fgets(str,30,stdin);
    n=strlen(str);
    for(i=0;i<n;i++){
        for(k=0;k<26;k++){
            if(str[i]==alpha[k]){
                count[k]++;
            }
        }
    }
    for(j=0;j<26;j++){
        printf("%c : %d\n", alpha[j], count[j]);
    }
    
    return 0;
}

Compiler output:
main.c:1:10: fatal error: ex904.h: No such file or directory
    1 | #include "ex904.h"
      |          ^~~~~~~~~
compilation terminated.
Language: C

#include "ex904.h"
#include "string.h"
int main(){
    int k, i, j, count[30]={0}, n=0;
    char static str[1200];
    char alpha[26]="abcdefghijklmnopqrstuvwxyz";
    fgets(str,1200,stdin);
    printf("%d",n);
    for(i=0;i<n;i++){
        for(k=0;k<26;k++){
            if(str[i]==alpha[k]){
                count[k]++;
            }
        }
    }
    for(j=0;j<26;j++){
        printf("%c : %d\n", alpha[j], count[j]);
    }
    return 0;
}

Compiler output:
main.c:1:10: fatal error: ex904.h: No such file or directory
    1 | #include "ex904.h"
      |          ^~~~~~~~~
compilation terminated.
Language: C

#include <ex904.h>
#include <string.h>
int main(){
    int k, i, j, count[30]={0}, n=0;
    char static str[1200];
    char alpha[26]="abcdefghijklmnopqrstuvwxyz";
    fgets(str,1200,stdin);
    printf("%d",n);
    for(i=0;i<n;i++){
        for(k=0;k<26;k++){
            if(str[i]==alpha[k]){
                count[k]++;
            }
        }
    }
    for(j=0;j<26;j++){
        printf("%c : %d\n", alpha[j], count[j]);
    }
    return 0;
}

Compiler output:
main.c:1:10: fatal error: ex904.h: No such file or directory
    1 | #include <ex904.h>
      |          ^~~~~~~~~
compilation terminated.
Language: C

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

int main() {
	int i, c;
	int cnt[26];
	while((c = getchar()) != EOF) {
		if( c >= A && c <= z) {
			toupper(c);
			cnt[c-a]++;
		}
	}
	for( i = 0; i < 26; i++) printf("%c : %d\n", a + i, cnt[i]);
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:8:26: error: 'A' undeclared (first use in this function)
    8 |                 if( c >= A && c <= z) {
      |                          ^
main.c:8:26: note: each undeclared identifier is reported only once for each function it appears in
main.c:8:36: error: 'z' undeclared (first use in this function)
    8 |                 if( c >= A && c <= z) {
      |                                    ^
main.c:9:25: error: implicit declaration of function 'toupper' [-Wimplicit-function-declaration]
    9 |                         toupper(c);
      |                         ^~~~~~~
main.c:3:1: note: include '<ctype.h>' or provide a declaration of 'toupper'
    2 | #include <string.h>
  +++ |+#include <ctype.h>
    3 | 
main.c:10:31: error: 'a' undeclared (first use in this function)
   10 |                         cnt[c-a]++;
      |                               ^
Language: C

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

int main() {
	int i, c;
	int cnt[26];
	while((c = getchar()) != EOF) {
		if( c >= 'A' && c <= 'z') {
			toupper(c);
			cnt[c-a]++;
		}
	}
	for( i = 0; i < 26; i++) printf("%c : %d\n", 'a' + i, cnt[i]);
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:9:25: error: implicit declaration of function 'toupper' [-Wimplicit-function-declaration]
    9 |                         toupper(c);
      |                         ^~~~~~~
main.c:3:1: note: include '<ctype.h>' or provide a declaration of 'toupper'
    2 | #include <string.h>
  +++ |+#include <ctype.h>
    3 | 
main.c:10:31: error: 'a' undeclared (first use in this function)
   10 |                         cnt[c-a]++;
      |                               ^
main.c:10:31: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#include "ex904.h"
#include "string.h"
#include"ctype.h"
int main(){
    int k, i, j, count[30]={0}, n=0;
    char static str[1200];
    char alpha[26]="abcdefghijklmnopqrstuvwxyz";
    fgets(str,1200,stdin);
    n=strlen(str);
    printf("??????????????????str?????°%d\n",n);//de
    for(i=0;i<n;i++){
        for(k=0;k<26;k++){
            if(str[i]==alpha[k]){
                count[k]++;
            }
        }
    }
    for(j=0;j<26;j++){
        printf("%c : %d\n", alpha[j], count[j]);
    }
    return 0;
}

Compiler output:
main.c:1:10: fatal error: ex904.h: No such file or directory
    1 | #include "ex904.h"
      |          ^~~~~~~~~
compilation terminated.
Language: C

#include <ex904.h>
#include <string.h>
#include<ctype.h>
int main(){
    int k, i, j, count[30]={0}, n=0;
    char static str[1200];
    char alpha[27]="abcdefghijklmnopqrstuvwxyz";
    char alpha1[27]="ABCDEFGHIJKLMNOPQRSTUVWXYZ";
    fgets(str,1200,stdin);
    n=strlen(str);
    for(i=0;i<n;i++){
        for(k=0;k<26;k++){
            if(str[i]==alpha[k]||str[i]==alpha1[k]){
                count[k]++;
            }
        }
    }
    for(j=0;j<26;j++){
        printf("%c : %d?\n", alpha[j], count[j]);
    }
    return 0;
}

Compiler output:
main.c:1:10: fatal error: ex904.h: No such file or directory
    1 | #include <ex904.h>
      |          ^~~~~~~~~
compilation terminated.