criyle/codenet-compile-errors huggingface dataset:
Language: C++

#include<iostream>
#include<cstdio>
using namespace std;

int main(){
    int co[26]={};
    int i,j;
    char al[40]="abcdefghijklmnopqrstuvwxyz"
    char ch;
    while(true{
        scanf("%c",'ch');
        if(ch='\n')break;
        for(i=0;i<26;i++){
            if(ch==al[i]){
                co[i]+=1;
            }
        } 
    }
    for(j=0;j<26;j++){
        cout<<al[j]<<" : "<<co[j]<<endl;
    }
    return ;
}


Compiler output:
a.cc:11:20: warning: multi-character character constant [-Wmultichar]
   11 |         scanf("%c",'ch');
      |                    ^~~~
a.cc: In function 'int main()':
a.cc:9:5: error: expected ',' or ';' before 'char'
    9 |     char ch;
      |     ^~~~
a.cc:10:15: error: expected ')' before '{' token
   10 |     while(true{
      |          ~    ^
      |               )
a.cc:12:12: error: 'ch' was not declared in this scope; did you mean 'co'?
   12 |         if(ch='\n')break;
      |            ^~
      |            co
a.cc:14:16: error: 'ch' was not declared in this scope; did you mean 'co'?
   14 |             if(ch==al[i]){
      |                ^~
      |                co
a.cc:22:5: error: return-statement with no value, in function returning 'int' [-fpermissive]
   22 |     return ;
      |     ^~~~~~
Language: C++

#include<iostream>
#include<cstdio>
using namespace std;

int main(){
    int co[26]={};
    int i,j;
    char al[40]="abcdefghijklmnopqrstuvwxyz";
    char ch;
    while(true{
        scanf("%c",'ch');
        if(ch='\n')break;
        for(i=0;i<26;i++){
            if(ch==al[i]){
                co[i]+=1;
            }
        } 
    }
    for(j=0;j<26;j++){
        cout<<al[j]<<" : "<<co[j]<<endl;
    }
    return ;
}


Compiler output:
a.cc:11:20: warning: multi-character character constant [-Wmultichar]
   11 |         scanf("%c",'ch');
      |                    ^~~~
a.cc: In function 'int main()':
a.cc:10:15: error: expected ')' before '{' token
   10 |     while(true{
      |          ~    ^
      |               )
a.cc:22:5: error: return-statement with no value, in function returning 'int' [-fpermissive]
   22 |     return ;
      |     ^~~~~~
Language: C++

#include<iostream>
#include<cstdio>
using namespace std;

int main(){
    int co[26]={};
    int i,j;
    char al[40]="abcdefghijklmnopqrstuvwxyz";
    char ch;
    while(true){
        scanf("%c",'ch');
        if(ch='\n')break;
        for(i=0;i<26;i++){
            if(ch==al[i]){
                co[i]+=1;
            }
        } 
    }
    for(j=0;j<26;j++){
        cout<<al[j]<<" : "<<co[j]<<endl;
    }
    return ;
}


Compiler output:
a.cc:11:20: warning: multi-character character constant [-Wmultichar]
   11 |         scanf("%c",'ch');
      |                    ^~~~
a.cc: In function 'int main()':
a.cc:22:5: error: return-statement with no value, in function returning 'int' [-fpermissive]
   22 |     return ;
      |     ^~~~~~
Language: C++

#include<cstdio>
#include<cctype>
using namespace std;
int main(){
    int counter[25];
    for (int i = 0; i < 25; i++){
        counter[i] = 0;
    }
    while(scanf("%c", ch) != EOF){
        counter[ch - 'a']++;
    }
    for(int i = 0; i < 25; i ++){
        printf("%c : %d\n", i, counter[i]);
    }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:9:23: error: 'ch' was not declared in this scope; did you mean 'char'?
    9 |     while(scanf("%c", ch) != EOF){
      |                       ^~
      |                       char
Language: C++

#include<cstdio>
#include<cctype>
using namespace std;
int main(){
    int counter[25];
    char ch;
    for (int i = 0; i < 25; i++){
        counter[i] = 0;
    }
    while(cin >> ch){
        counter[ch - 'a']++;
    }
    for(int i = 0; i < 25; i ++){
        printf("%c : %d\n", i, counter[i]);
    }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:10:11: error: 'cin' was not declared in this scope
   10 |     while(cin >> ch){
      |           ^~~
a.cc:3:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
    2 | #include<cctype>
  +++ |+#include <iostream>
    3 | using namespace std;
Language: C++

#include<cstdio>
#include<cctype>
#include<iostream>
using namespace std;
int main(){
    int counter[25];
    char ch;
    for (int i = 0; i < 25; i++){
        counter[i] = 0;
    }
    while(cin >> ch){
        if (isalpha(ch)){
            if(islower) int num = ch - 'a';
            else int num = toupper(ch) - 'a';
            counter[num]++;
        }
    }
    for(int i = 0; i < 25; i ++){
        printf("%c : %d\n", i, counter[i]);
    }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:13:23: error: cannot resolve overloaded function 'islower' based on conversion to type 'bool'
   13 |             if(islower) int num = ch - 'a';
      |                       ^
a.cc:15:21: error: 'num' was not declared in this scope; did you mean 'enum'?
   15 |             counter[num]++;
      |                     ^~~
      |                     enum
Language: C++

#include<cstdio>
#include<cctype>
#include<iostream>
using namespace std;
int main(){
    int counter[25];
    char ch;
    for (int i = 0; i < 25; i++){
        counter[i] = 0;
    }
    while(cin >> ch){
        if (isalpha(ch)){
            if(islower(ch)) int num = ch - 'a';
            else int num = toupper(ch) - 'a';
            counter[num]++;
        }
    }
    for(int i = 0; i < 25; i ++){
        printf("%c : %d\n", i, counter[i]);
    }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:15:21: error: 'num' was not declared in this scope; did you mean 'enum'?
   15 |             counter[num]++;
      |                     ^~~
      |                     enum
Language: C++

#include<iostream>
// cout endl cin //
#include<cstdio>
// printf scanf //
#include<cctype>
// 文字の判別や変換 //
using namespce std;

int main(){
    char ch;
    int cnt[26]={};
    
    while(cin >> ch){
        ch = tolower(ch);
        if (isalpha(ch)){
            cnt[ch-'a']++;
        }
    }
    
    for ( int i=0; i<26; i++){
        printf ("%c : %d\n," i+'a',cnt[i]);
    }
    return 0;
}


Compiler output:
a.cc:7:7: error: expected nested-name-specifier before 'namespce'
    7 | using namespce std;
      |       ^~~~~~~~
a.cc: In function 'int main()':
a.cc:13:11: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
   13 |     while(cin >> ch){
      |           ^~~
      |           std::cin
In file included from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:21:29: error: expected ')' before 'i'
   21 |         printf ("%c : %d\n," i+'a',cnt[i]);
      |                ~            ^~
      |                             )
Language: C++

#include<iostream>
// cout endl cin //
#include<cstdio>
// printf scanf //
#include<cctype>
// 文字の判別や変換 //
using namespce std;

int main(){
    char ch;
    int cnt[26]={};
    
    while(cin >> ch){
        ch = tolower(ch);
        if (isalpha(ch)){
            cnt[ch-'a']++;
        }
    }
    
    for ( int i=0; i<26; i++){
        printf ("%c : %d\n", i+'a',cnt[i]);
    }
    return 0;
}


Compiler output:
a.cc:7:7: error: expected nested-name-specifier before 'namespce'
    7 | using namespce std;
      |       ^~~~~~~~
a.cc: In function 'int main()':
a.cc:13:11: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
   13 |     while(cin >> ch){
      |           ^~~
      |           std::cin
In file included from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
Language: C++

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


Compiler output:
a.cc:8:19: warning: multi-character character constant [-Wmultichar]
    8 |             ch=ch+'32';
      |                   ^~~~
a.cc: In function 'int main()':
a.cc:7:12: error: 'A' was not declared in this scope
    7 |         if(A<=ch && ch<=Z){
      |            ^
a.cc:7:25: error: 'Z' was not declared in this scope
    7 |         if(A<=ch && ch<=Z){
      |                         ^
a.cc:11:19: error: 'a' was not declared in this scope
   11 |         }else if((a<=ch && ch<=z){
      |                   ^
a.cc:11:32: error: 'z' was not declared in this scope
   11 |         }else if((a<=ch && ch<=z){
      |                                ^
a.cc:11:34: error: expected ')' before '{' token
   11 |         }else if((a<=ch && ch<=z){
      |                 ~                ^
      |                                  )
a.cc:15:5: error: expected primary-expression before '}' token
   15 |     }
      |     ^
a.cc:17:20: error: expected ')' before ':' token
   17 |         printf("%c" : "%d\n",i+'a',num[i]);
      |               ~    ^~
      |                    )
a.cc:18:2: error: expected '}' at end of input
   18 | }
      |  ^
a.cc:3:11: note: to match this '{'
    3 | int main(){
      |           ^
Language: C++

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


Compiler output:
a.cc:8:19: warning: multi-character character constant [-Wmultichar]
    8 |             ch=ch+'32';
      |                   ^~~~
a.cc: In function 'int main()':
a.cc:11:38: error: expected ')' before '{' token
   11 |         }else if(('a'<=ch && ch<='z'){
      |                 ~                    ^
      |                                      )
a.cc:15:5: error: expected primary-expression before '}' token
   15 |     }
      |     ^
a.cc:17:20: error: expected ')' before ':' token
   17 |         printf("%c" : "%d\n",i+'a',num[i]);
      |               ~    ^~
      |                    )
a.cc:18:2: error: expected '}' at end of input
   18 | }
      |  ^
a.cc:3:11: note: to match this '{'
    3 | int main(){
      |           ^
Language: C++

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


Compiler output:
a.cc:8:19: warning: multi-character character constant [-Wmultichar]
    8 |             ch=ch+'32';
      |                   ^~~~
a.cc: In function 'int main()':
a.cc:11:38: error: expected ')' before '{' token
   11 |         }else if(('a'<=ch && ch<='z'){
      |                 ~                    ^
      |                                      )
a.cc:15:5: error: expected primary-expression before '}' token
   15 |     }
      |     ^
a.cc:18:2: error: expected '}' at end of input
   18 | }
      |  ^
a.cc:3:11: note: to match this '{'
    3 | int main(){
      |           ^
Language: C++

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


Compiler output:
a.cc:8:19: warning: multi-character character constant [-Wmultichar]
    8 |             ch=ch+'32';
      |                   ^~~~
a.cc: In function 'int main()':
a.cc:18:2: error: expected '}' at end of input
   18 | }
      |  ^
a.cc:3:11: note: to match this '{'
    3 | int main(){
      |           ^
Language: C++

# include<cstdio>
# include<cctype>
int main() {
    char ch;
    int counter[26] = {};
    while (1) {
        scanf("%c",&ch);
        if (isalpha(ch)) {
            if(isupper(ch)) {
                ch = tolower(ch);
            }
            int num = ch-'a';
            counter[num]++;
        }
        if (ch == \n) break;
    }
    for (int i=0;i<26;i++) {
        printf("%c",i+'a');
        printf(" : ");
        printf("%d",counter[i]);
    }
    return 0;
}


Compiler output:
a.cc:15:19: error: stray '\' in program
   15 |         if (ch == \n) break;
      |                   ^
a.cc: In function 'int main()':
a.cc:15:20: error: 'n' was not declared in this scope
   15 |         if (ch == \n) break;
      |                    ^
Language: C++

#include <cstdio>
#include <cctype>

int main(){
	char ch;
	counter[26]={0};
	while( scanf("%c", &ch) != EOF ){
		if( isupper(ch) ) 
			ch = tolower(ch);
	
		if('a'<=ch && ch<='z') 
			++counter[ ch-'a' ];

	}

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

	return 0;
}



Compiler output:
a.cc: In function 'int main()':
a.cc:6:9: error: 'counter' was not declared in this scope
    6 |         counter[26]={0};
      |         ^~~~~~~
Language: C++

#include<cctype>
#include<cstdio>
int main(){
    char ch;
    int counter[] = {0};
    
    while(scanf(%c", &ch) != EOF){
        if(isppper(ch)){
            ch = tolower(ch);
        }
        if(isalpha(ch)){
            int mun = ch - 'a';
            counter[num] ++;
        }
    }for ( int i = 0; i < 26; i++){
        printf("%s : %d", i + 'a', couter[num]);
    }return 0;
}


Compiler output:
a.cc:7:19: warning: missing terminating " character
    7 |     while(scanf(%c", &ch) != EOF){
      |                   ^
a.cc:7:19: error: missing terminating " character
    7 |     while(scanf(%c", &ch) != EOF){
      |                   ^~~~~~~~~~~~~~~~
a.cc: In function 'int main()':
a.cc:7:17: error: expected primary-expression before '%' token
    7 |     while(scanf(%c", &ch) != EOF){
      |                 ^
a.cc:7:18: error: 'c' was not declared in this scope; did you mean 'ch'?
    7 |     while(scanf(%c", &ch) != EOF){
      |                  ^
      |                  ch
a.cc:14:10: error: expected ')' before '}' token
   14 |         }
      |          ^
      |          )
   15 |     }for ( int i = 0; i < 26; i++){
      |     ~     
a.cc:7:10: note: to match this '('
    7 |     while(scanf(%c", &ch) != EOF){
      |          ^
a.cc:15:5: error: expected primary-expression before '}' token
   15 |     }for ( int i = 0; i < 26; i++){
      |     ^
a.cc: At global scope:
a.cc:15:6: error: expected unqualified-id before 'for'
   15 |     }for ( int i = 0; i < 26; i++){
      |      ^~~
a.cc:15:23: error: 'i' does not name a type
   15 |     }for ( int i = 0; i < 26; i++){
      |                       ^
a.cc:15:31: error: 'i' does not name a type
   15 |     }for ( int i = 0; i < 26; i++){
      |                               ^
a.cc:17:6: error: expected unqualified-id before 'return'
   17 |     }return 0;
      |      ^~~~~~
a.cc:18:1: error: expected declaration before '}' token
   18 | }
      | ^
Language: C++

#include<cctype>
#include<cstdio>
int main(){
    char ch;
    int counter[] = {0};
    
    while(scanf(%c", &ch) != EOF){
        if(isppper(ch)){
            ch = tolower(ch);
        }
        if(isalpha(ch)){
            int num = ch - 'a';
            counter[num] ++;
        }
    }for ( int i = 0; i < 26; i++){
        printf("%s : %d", i + 'a', couter[num]);
    }return 0;
}


Compiler output:
a.cc:7:19: warning: missing terminating " character
    7 |     while(scanf(%c", &ch) != EOF){
      |                   ^
a.cc:7:19: error: missing terminating " character
    7 |     while(scanf(%c", &ch) != EOF){
      |                   ^~~~~~~~~~~~~~~~
a.cc: In function 'int main()':
a.cc:7:17: error: expected primary-expression before '%' token
    7 |     while(scanf(%c", &ch) != EOF){
      |                 ^
a.cc:7:18: error: 'c' was not declared in this scope; did you mean 'ch'?
    7 |     while(scanf(%c", &ch) != EOF){
      |                  ^
      |                  ch
a.cc:14:10: error: expected ')' before '}' token
   14 |         }
      |          ^
      |          )
   15 |     }for ( int i = 0; i < 26; i++){
      |     ~     
a.cc:7:10: note: to match this '('
    7 |     while(scanf(%c", &ch) != EOF){
      |          ^
a.cc:15:5: error: expected primary-expression before '}' token
   15 |     }for ( int i = 0; i < 26; i++){
      |     ^
a.cc: At global scope:
a.cc:15:6: error: expected unqualified-id before 'for'
   15 |     }for ( int i = 0; i < 26; i++){
      |      ^~~
a.cc:15:23: error: 'i' does not name a type
   15 |     }for ( int i = 0; i < 26; i++){
      |                       ^
a.cc:15:31: error: 'i' does not name a type
   15 |     }for ( int i = 0; i < 26; i++){
      |                               ^
a.cc:17:6: error: expected unqualified-id before 'return'
   17 |     }return 0;
      |      ^~~~~~
a.cc:18:1: error: expected declaration before '}' token
   18 | }
      | ^
Language: C++

#include<cctype>
#include<cstdio>
int main(){
    char ch;
    int counter[] = {0};
    
    while(scanf("%c", &ch) != EOF){
        if(isppper(ch)){
            ch = tolower(ch);
        }
        if(isalpha(ch)){
            int num = ch - 'a';
            counter[num] ++;
        }
    }for ( int i = 0; i < 26; i++){
        printf("%s : %d", i + 'a', couter[num]);
    }return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:12: error: 'isppper' was not declared in this scope; did you mean 'isupper'?
    8 |         if(isppper(ch)){
      |            ^~~~~~~
      |            isupper
a.cc:16:36: error: 'couter' was not declared in this scope; did you mean 'counter'?
   16 |         printf("%s : %d", i + 'a', couter[num]);
      |                                    ^~~~~~
      |                                    counter
a.cc:16:43: error: 'num' was not declared in this scope; did you mean 'enum'?
   16 |         printf("%s : %d", i + 'a', couter[num]);
      |                                           ^~~
      |                                           enum
Language: C++

#include<cctype>
#include<cstdio>
int main(){
    char ch;
    int counter[] = {0};
    
    while(scanf("%c", &ch) != EOF){
        if(isppper(ch)){
            ch = tolower(ch);
        }
        if(isalpha(ch)){
            int num = ch - 'a';
            counter[num] ++;
        }
    }for ( int i = 0; i < 26; i++){
        printf("%s : %d", i + 'a', counter[num]);
    }return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:12: error: 'isppper' was not declared in this scope; did you mean 'isupper'?
    8 |         if(isppper(ch)){
      |            ^~~~~~~
      |            isupper
a.cc:16:44: error: 'num' was not declared in this scope; did you mean 'enum'?
   16 |         printf("%s : %d", i + 'a', counter[num]);
      |                                            ^~~
      |                                            enum
Language: C++

#include<cctype>
#include<cstdio>
int main(){
    char ch;
    int counter[] = {0};
    
    while(scanf("%c", &ch) != EOF){
        if(isupper(ch)){
            ch = tolower(ch);
        }
        if(isalpha(ch)){
            int num = ch - 'a';
            counter[num] ++;
        }
    }for ( int i = 0; i < 26; i++){
        printf("%s : %d", i + 'a', counter[num]);
    }return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:16:44: error: 'num' was not declared in this scope; did you mean 'enum'?
   16 |         printf("%s : %d", i + 'a', counter[num]);
      |                                            ^~~
      |                                            enum
Language: C++

#include<iostream>
#include<cctype>
#include<cstdio>
using namespace std;
int main(){
    char ch;
    int count[26] = {};
    while(cin >> ch){
        if(isalpha(ch)){
            count[tolower(ch) - 'a'] ++;
        }
    }
    for(int i = 0; i <= 25; i++){
        printf("%c : %d",ch,count[i])
    }
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:14:38: error: expected ';' before '}' token
   14 |         printf("%c : %d",ch,count[i])
      |                                      ^
      |                                      ;
   15 |     }
      |     ~
Language: C++

#include<iostream>
#include<stdio.h>
#include<cstdio>
#include<cctype>
using namespace std;
int main(){
    char ch;
    int num[26]={};
    while( scanf("%c", &ch) != EOF ){
		if(isupper(ch)){
		    ch = tolower(ch);
		}
	
		if('a'<=ch && ch<='z'){
		    a[ ch-'a' ] += 1
		}
	}
    
     ///出力
        for(char ci='a';i=<'z';i++){
            cout << ci << " " << ":" << " " << num[i] << endl;
            
        }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:15:21: error: 'a' was not declared in this scope
   15 |                     a[ ch-'a' ] += 1
      |                     ^
a.cc:20:25: error: 'i' was not declared in this scope; did you mean 'ci'?
   20 |         for(char ci='a';i=<'z';i++){
      |                         ^
      |                         ci
a.cc:20:27: error: expected primary-expression before '<' token
   20 |         for(char ci='a';i=<'z';i++){
      |                           ^
Language: C++

#include<iostream>
#include<stdio.h>
#include<cstdio>
#include<cctype>
using namespace std;
int main(){
    char ch;
    int num[26]={};
    while( scanf("%c", &ch) != EOF ){
		if(isupper(ch)){
		    ch = tolower(ch);
		}
	
		if('a'<=ch && ch<='z'){
		    num[ch-'a'] += 1
		}
	}
    
     ///出力
        for(char ci='a';i=<'z';i++){
            cout << ci << " " << ":" << " " << num[i] << endl;
            
        }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:15:37: error: expected ';' before '}' token
   15 |                     num[ch-'a'] += 1
      |                                     ^
      |                                     ;
   16 |                 }
      |                 ~                    
a.cc:20:25: error: 'i' was not declared in this scope; did you mean 'ci'?
   20 |         for(char ci='a';i=<'z';i++){
      |                         ^
      |                         ci
a.cc:20:27: error: expected primary-expression before '<' token
   20 |         for(char ci='a';i=<'z';i++){
      |                           ^
Language: C++

#include<iostream>
#include<stdio.h>
#include<cstdio>
#include<cctype>
using namespace std;
int main(){
    char ch;
    int num[26]={};
    while( scanf("%c", &ch) != EOF ){
		if(isupper(ch)){
		    ch = tolower(ch);
		}
	
		if('a'<=ch && ch<='z'){
		    num[ch-'a'] += 1
		}
	}
    
     ///出力
        for(char ci='a';ci=<'z';ci++){
            cout << ci << " " << ":" << " " << num[i] << endl;
            
        }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:15:37: error: expected ';' before '}' token
   15 |                     num[ch-'a'] += 1
      |                                     ^
      |                                     ;
   16 |                 }
      |                 ~                    
a.cc:20:28: error: expected primary-expression before '<' token
   20 |         for(char ci='a';ci=<'z';ci++){
      |                            ^
a.cc:21:52: error: 'i' was not declared in this scope; did you mean 'ci'?
   21 |             cout << ci << " " << ":" << " " << num[i] << endl;
      |                                                    ^
      |                                                    ci
Language: C++

#include<iostream>
#include<stdio.h>
#include<cstdio>
#include<cctype>
using namespace std;
int main(){
    char ch;
    int num[26]={};
    while( scanf("%c", &ch) != EOF ){
		if(isupper(ch)){
		    ch = tolower(ch);
		}
	
		if('a'<=ch && ch<='z'){
		    num[ch-'a'] += 1
		}
	}
    
     ///出力
        for(char ci='a';ci=<'z';ci++){
            cout << ci << " " << ":" << " " << num[ci-'a'] << endl;
            
        }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:15:37: error: expected ';' before '}' token
   15 |                     num[ch-'a'] += 1
      |                                     ^
      |                                     ;
   16 |                 }
      |                 ~                    
a.cc:20:28: error: expected primary-expression before '<' token
   20 |         for(char ci='a';ci=<'z';ci++){
      |                            ^
Language: C++

#include<ioetream>
#include<string>
#include<cctype>
using namespace std;
int main(){
    string AtoZ;
    char atoz[26] ={'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 a[26]={};
    while(0){
        cin>>AtoZ;
        for(int i=1;i<=AtoZ.size();i++){
            if(issupper(AtoZ[i])==1){
                a[i]=tolower(a[i]);
            }
            for(int j=1;j<=26;i++){
                if(AtoZ[i]==atoz[j]){
                    a[j]++;
                    break;
                }
        }
    }
    for(int k=0;k<26;k++){
        cout<<atoz[k]<<" : "<<a[k]<<endl;
    }
    return 0;
}


Compiler output:
a.cc:1:9: fatal error: ioetream: No such file or directory
    1 | #include<ioetream>
      |         ^~~~~~~~~~
compilation terminated.
Language: C++

#include<iostream>
#include<string>
#include<cctype>
using namespace std;
int main(){
    string AtoZ;
    char atoz[26] ={'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 a[26]={};
    while(0){
        cin>>AtoZ;
        for(int i=1;i<=AtoZ.size();i++){
            if(issupper(AtoZ[i])==1){
                a[i]=tolower(a[i]);
            }
            for(int j=1;j<=26;i++){
                if(AtoZ[i]==atoz[j]){
                    a[j]++;
                    break;
                }
        }
    }
    for(int k=0;k<26;k++){
        cout<<atoz[k]<<" : "<<a[k]<<endl;
    }
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:5: error: expected ',' or ';' before 'int'
    8 |     int a[26]={};
      |     ^~~
a.cc:12:16: error: 'issupper' was not declared in this scope; did you mean 'iswupper'?
   12 |             if(issupper(AtoZ[i])==1){
      |                ^~~~~~~~
      |                iswupper
a.cc:13:17: error: 'a' was not declared in this scope
   13 |                 a[i]=tolower(a[i]);
      |                 ^
a.cc:17:21: error: 'a' was not declared in this scope
   17 |                     a[j]++;
      |                     ^
a.cc:23:31: error: 'a' was not declared in this scope
   23 |         cout<<atoz[k]<<" : "<<a[k]<<endl;
      |                               ^
a.cc:26:2: error: expected '}' at end of input
   26 | }
      |  ^
a.cc:5:11: note: to match this '{'
    5 | int main(){
      |           ^
Language: C++

#include<iostream>
#include<string>
#include<cctype>
using namespace std;
int main(){
    string AtoZ;
    char atoz[26] ={'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 a[26]={};
    while(0){
        cin>>AtoZ;
        for(int i=1;i<=AtoZ.size();i++){
            if(issupper(AtoZ[i])==1){
                a[i]=tolower(a[i]);
            }
            for(int j=1;j<=26;i++){
                if(AtoZ[i]==atoz[j]){
                    a[j]++;
                    break;
                }
        }
    }
    for(int k=0;k<26;k++){
        cout<<atoz[k]<<" : "<<a[k]<<endl;
    }
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:12:16: error: 'issupper' was not declared in this scope; did you mean 'iswupper'?
   12 |             if(issupper(AtoZ[i])==1){
      |                ^~~~~~~~
      |                iswupper
a.cc:26:2: error: expected '}' at end of input
   26 | }
      |  ^
a.cc:5:11: note: to match this '{'
    5 | int main(){
      |           ^
Language: C++

#include<iostream>
#include<string>
#include<cctype>
using namespace std;
int main(){
    string AtoZ;
    char atoz[26] ={'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 a[26]={};
    while(0){
        cin>>AtoZ;
        for(int i=1;i<=AtoZ.size();i++){
            if(isupper(AtoZ[i])==1){
                a[i]=tolower(a[i]);
            }
            for(int j=1;j<=26;i++){
                if(AtoZ[i]==atoz[j]){
                    a[j]++;
                    break;
                }
        }
    }
    for(int k=0;k<26;k++){
        cout<<atoz[k]<<" : "<<a[k]<<endl;
    }
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:26:2: error: expected '}' at end of input
   26 | }
      |  ^
a.cc:5:11: note: to match this '{'
    5 | int main(){
      |           ^
Language: C++

#include<iostream>
#include<string>
#include<cctype>
using namespace std;
int main(){
    string AtoZ;
    char atoz[26] ={'a','b','c','d','e','f','g','h','i','j','k','l','m','n','o','p
    int a[26]={0};
    while(cin>>AtoZ){
        for(int i=0;i<AtoZ.size();i++){
            if(isupper(AtoZ[i])){
                AtoZ[i]=tolower(AtoZ[i]);
            }
            for(int j=0;j<26;j++){
                if(AtoZ[i]==atoz[j]){
                    a[j]++;
                    break;
                }
            }
        }
    }
    for(int k=0;k<26;k++){
        cout<<atoz[k]<<" : "<<a[k]<<endl;
    }
    return 0;
}


Compiler output:
a.cc:7:81: warning: missing terminating ' character
    7 |     char atoz[26] ={'a','b','c','d','e','f','g','h','i','j','k','l','m','n','o','p
      |                                                                                 ^
a.cc:7:81: error: missing terminating ' character
    7 |     char atoz[26] ={'a','b','c','d','e','f','g','h','i','j','k','l','m','n','o','p
      |                                                                                 ^~
a.cc: In function 'int main()':
a.cc:8:5: error: expected primary-expression before 'int'
    8 |     int a[26]={0};
      |     ^~~
a.cc:8:5: error: expected '}' before 'int'
a.cc:7:20: note: to match this '{'
    7 |     char atoz[26] ={'a','b','c','d','e','f','g','h','i','j','k','l','m','n','o','p
      |                    ^
a.cc:16:21: error: 'a' was not declared in this scope
   16 |                     a[j]++;
      |                     ^
a.cc:23:31: error: 'a' was not declared in this scope
   23 |         cout<<atoz[k]<<" : "<<a[k]<<endl;
      |                               ^
Language: C++

#include<cstdio>
using namespace std;

int main(){
    char ch;
    int counter[26];
    
    while(1){
        scanf("%s", &ch){
            if(isalpha(ch)) counter[ch-'a']++;
        }
    }
    
    for(int i=0; i<26; i++){
        printf("%c %d", i+'a', counter[i]);
    }
    
    return 0;
    
}


Compiler output:
a.cc: In function 'int main()':
a.cc:9:25: error: expected ';' before '{' token
    9 |         scanf("%s", &ch){
      |                         ^
      |                         ;
Language: C++

#include<cstdio>
using namespace std;

int main(){
    char ch;
    int counter[26];
    
    while(1){
        scanf("%s", &ch);
            if(isalpha(ch)) counter[ch-'a']++;
        }
    }
    
    for(int i=0; i<26; i++){
        printf("%c %d", i+'a', counter[i]);
    }
    
    return 0;
    
}


Compiler output:
a.cc: In function 'int main()':
a.cc:10:16: error: 'isalpha' was not declared in this scope
   10 |             if(isalpha(ch)) counter[ch-'a']++;
      |                ^~~~~~~
a.cc: At global scope:
a.cc:14:5: error: expected unqualified-id before 'for'
   14 |     for(int i=0; i<26; i++){
      |     ^~~
a.cc:14:18: error: 'i' does not name a type
   14 |     for(int i=0; i<26; i++){
      |                  ^
a.cc:14:24: error: 'i' does not name a type
   14 |     for(int i=0; i<26; i++){
      |                        ^
a.cc:18:5: error: expected unqualified-id before 'return'
   18 |     return 0;
      |     ^~~~~~
a.cc:20:1: error: expected declaration before '}' token
   20 | }
      | ^
Language: C++

#include<cstdio>
#include<cctype>
using namespace std;

int main(){
    char ch;
    int counter[26];
    
    while(1){
        scanf("%s", &ch);
            if(isalpha(ch)) counter[ch-'a']++;
        }
    }
    
    for(int i=0; i<26; i++){
        printf("%c %d", i+'a', counter[i]);
    }
    
    return 0;
    
}


Compiler output:
a.cc:15:5: error: expected unqualified-id before 'for'
   15 |     for(int i=0; i<26; i++){
      |     ^~~
a.cc:15:18: error: 'i' does not name a type
   15 |     for(int i=0; i<26; i++){
      |                  ^
a.cc:15:24: error: 'i' does not name a type
   15 |     for(int i=0; i<26; i++){
      |                        ^
a.cc:19:5: error: expected unqualified-id before 'return'
   19 |     return 0;
      |     ^~~~~~
a.cc:21:1: error: expected declaration before '}' token
   21 | }
      | ^
Language: C++

#include<iostream>
#include<cstdio>
#include<cstring>
using namespace std;

int main(){
    char ch;
    int count[25];
    while( scanf("%c", &ch) != EOF ){
        if(isalpha(ch)){
            int num = ch - 'a';
            count[num]++;
        }
    }
    for(int i = 0; i < 25; i++){
        printf("%c : %d\n", i + 'a', count[i])
    }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:16:47: error: expected ';' before '}' token
   16 |         printf("%c : %d\n", i + 'a', count[i])
      |                                               ^
      |                                               ;
   17 |     }
      |     ~
Language: C++

#include<iostream>
#include<cctype>
using namespace std;

int main(){
  char counter[27]="abcdefghijklmnopqrstuvwxyz",ch;
  int num,dat[26],i,;

  for ( i =0 ; i< 26 ; i++){
    dat[i] = 0;
  }
  while( cin >> ch ){
    ch = tolower(ch);
    int num = ch -'a';
    dat[num]++;
    
  }

  for ( i = 0 ; i < 26 ; i++){
    cout << counter[i] << " : " <<dat[i]<<endl;
  }
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:21: error: expected unqualified-id before ';' token
    7 |   int num,dat[26],i,;
      |                     ^
Language: C++

#include <iostream>

using namespace std;

int main() {
    char ch;
    int num, count[26]
    while(cin >> ch){
        if (ischar(ch)){
            num = ch - 'a';
            count[num]++;
        }
    }
    for (i =0; i<26; i++)
        cout << i + 'a' << " : " << count[num] << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:5: error: expected initializer before 'while'
    8 |     while(cin >> ch){
      |     ^~~~~
a.cc:14:10: error: 'i' was not declared in this scope
   14 |     for (i =0; i<26; i++)
      |          ^
a.cc:15:37: error: 'count' was not declared in this scope
   15 |         cout << i + 'a' << " : " << count[num] << endl;
      |                                     ^~~~~
Language: C++

#include <iostream>
#include<cctype>
using namespace std;

int main() {
    char ch;
    int num, count[26] = {0}
    while(cin >> ch){
        if (ch>='a' && ch<= 'z' || ch>='A' && ch<= 'Z'){
            if(isupper(ch)) ch = tolower(ch);
            num = ch - 'a';
            count[num]++;
        }
    }
    for (i =0; i<26; i++)
        cout << i + 'a' << " : " << count[num] << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:5: error: expected ',' or ';' before 'while'
    8 |     while(cin >> ch){
      |     ^~~~~
a.cc:15:10: error: 'i' was not declared in this scope
   15 |     for (i =0; i<26; i++)
      |          ^
Language: C++

#include <iostream>
#include<cctype>
using namespace std;

int main() {
    char ch;
    int num, count[26] = {0};
    while(cin >> ch){
        if (ch>='a' && ch<= 'z' || ch>='A' && ch<= 'Z'){
            if(isupper(ch)) ch = tolower(ch);
            num = ch - 'a';
            count[num]++;
        }
    }
    for (i =0; i<26; i++)
        cout << i + 'a' << " : " << count[num] << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:15:10: error: 'i' was not declared in this scope
   15 |     for (i =0; i<26; i++)
      |          ^
Language: C++

#include <iostream>
#include<cctype>
using namespace std;

int main() {
    char ch;
    inti, num, count[26] = {0};
    while(cin >> ch){
        if (ch>='a' && ch<= 'z' || ch>='A' && ch<= 'Z'){
            if(isupper(ch)) ch = tolower(ch);
            num = ch - 'a';
            count[num]++;
        }
    }
    for (i =0; i<26; i++)
        cout << i + 'a' << " : " << count[num] << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:5: error: 'inti' was not declared in this scope; did you mean 'int'?
    7 |     inti, num, count[26] = {0};
      |     ^~~~
      |     int
a.cc:7:11: error: 'num' was not declared in this scope; did you mean 'enum'?
    7 |     inti, num, count[26] = {0};
      |           ^~~
      |           enum
a.cc:7:16: error: 'count' was not declared in this scope
    7 |     inti, num, count[26] = {0};
      |                ^~~~~
a.cc:15:10: error: 'i' was not declared in this scope
   15 |     for (i =0; i<26; i++)
      |          ^
Language: C++

#include <iostream>
#include <cstdio>
#include<cctype>
using namespace std;

int main() {
	char ch;
	int i, num, count[26] = { 0 };
	while (scanf_s("%c", &ch) !=EOF){
		if (ch >= 'a' && ch <= 'z' || ch >= 'A' && ch <= 'Z'){
			if (isupper(ch)) ch = tolower(ch);
			num = ch - 'a';
			count[num]++;
		}
	}
	for (i = 0; i<26; i++)
		cout << i + 'a' << " : " << count[num] << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:16: error: 'scanf_s' was not declared in this scope; did you mean 'scanf'?
    9 |         while (scanf_s("%c", &ch) !=EOF){
      |                ^~~~~~~
      |                scanf
Language: C++

#include<iostream>
#include<cctype>

using namespace std;

int main() {
    char ch;
    int cout [26];
    while(cin >> ch){
        if(cin.eof()) break;
        if(islower(ch))
            ch = ch - 'a'
            count[ch]++
        else(isupper(ch))
            ch = ch - 'A'
    }
    for(i=0;i<26;i++)
        cout << i + 'i' << " : " << count[i] << endl;
    
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:26: error: expected ';' before 'count'
   12 |             ch = ch - 'a'
      |                          ^
      |                          ;
   13 |             count[ch]++
      |             ~~~~~         
a.cc:17:9: error: 'i' was not declared in this scope
   17 |     for(i=0;i<26;i++)
      |         ^
a.cc:18:37: error: 'count' was not declared in this scope; did you mean 'cout'?
   18 |         cout << i + 'i' << " : " << count[i] << endl;
      |                                     ^~~~~
      |                                     cout
Language: C++

#include<iostream>
#include<cctype>

using namespace std;

int main() {
    char ch;
    int count [26], i;
    while(cin >> ch){
        if(cin.eof()) break;
        if(islower(ch))
            ch = ch - 'a';
            count[ch]++;
        else(isupper(ch))
            ch = ch - 'A';
    }
    for(i=0;i<26;i++)
        cout << i + 'i' << " : " << count[i] << endl;
    
}

Compiler output:
a.cc: In function 'int main()':
a.cc:14:9: error: 'else' without a previous 'if'
   14 |         else(isupper(ch))
      |         ^~~~
a.cc:14:26: error: expected ';' before 'ch'
   14 |         else(isupper(ch))
      |                          ^
      |                          ;
   15 |             ch = ch - 'A';
      |             ~~
Language: C++

#include <iostream>
#include <cctype>

using namespace std;

int main() {
	char ch
	int counter[26] = {};

	while(cin >> ch) {
		if (isalpha(ch)) counter[ch - 'a']++;
	}

	for (int i = 0; i < 26; i++) {
		cout << counter[i] << endl;
	}

	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:9: error: expected initializer before 'int'
    8 |         int counter[26] = {};
      |         ^~~
a.cc:10:22: error: 'ch' was not declared in this scope
   10 |         while(cin >> ch) {
      |                      ^~
a.cc:11:34: error: 'counter' was not declared in this scope
   11 |                 if (isalpha(ch)) counter[ch - 'a']++;
      |                                  ^~~~~~~
a.cc:15:25: error: 'counter' was not declared in this scope
   15 |                 cout << counter[i] << endl;
      |                         ^~~~~~~
Language: C++

/*#include<iostream>
#include<cstdio>
#include<vector>
#include<algorithm>
#include<string>
#include<cctype>
using namespace std;
int main(){
	string r;int c;char ny;
while(true){
	scanf("%c",&ny);
	if(ny==EOF)break;
	r+=ny;
	}
	char a='a';
	int count[26]={0};//aが0,zが25
	
	for(int i=0;i<r.size();i++){
		for(int j=0;j<26;j++){
		r[i]=tolower(r[i]);
		if(r[i]-'a'==j)count[j]++;
		}
	}
	for(int i=0;i<26;i++){
	printf("%c : %d\n",a,count[i]);
	a++;
	}
return 0;
}

Compiler output:
a.cc:1:1: error: unterminated comment
    1 | /*#include<iostream>
      | ^
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:6:3: error: 'strupr' was not declared in this scope; did you mean 'strstr'?
    6 |   strupr(data);
      |   ^~~~~~
      |   strstr
a.cc:7:3: error: 'gets' was not declared in this scope; did you mean 'getw'?
    7 |   gets(data);
      |   ^~~~
      |   getw
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:6:3: error: '_strupr' was not declared in this scope
    6 |   _strupr(data);
      |   ^~~~~~~
a.cc:7:3: error: 'gets' was not declared in this scope; did you mean 'getw'?
    7 |   gets(data);
      |   ^~~~
      |   getw
Language: C++

#include<stdio.h>
#include<algorithm>
#include<functional>
using namespace std;
int cnt[27];
int main(){
  char data[1210];
  gets(data);
  for_each(data,data+1200,toupper);
  char*p=data;
  while(*p!=0){
    if('A'<=*p&&*p<='Z')++cnt[*p-'A'];
    ++p;
  }
  for(int i=0;i<26;++i){
    printf("%c : %d\n", 'a'+i,cnt[i]);
  }
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:3: error: 'gets' was not declared in this scope; did you mean 'getw'?
    8 |   gets(data);
      |   ^~~~
      |   getw
a.cc:9:27: error: 'toupper' was not declared in this scope
    9 |   for_each(data,data+1200,toupper);
      |                           ^~~~~~~
Language: C++

#include <iostream>
#include <algorithm>
#include <vector>
#include <stack>
#include <queue>
#include <map>
#include <cmath>
#include <string>
#include <sstream>
#include <iomanip>
#include <complex>
using namespace std;

#define ll long long
#define vvi vector< vector<int> >
#define vi vector<int>
#define All(X) X.begin(),X.end()
#define FOR(i,a,b) for(int i=(int)(a);i<(int)(b);i++)
#define REP(i,n) for(int i=0;i<(int)(n);i++)
#define pb push_back
#define pii pair<int,int>
#define mp make_pair
ll gcd(ll a,ll b){return b?gcd(b,a%b):a;}
ll lcm(ll a,ll b){return a/gcd(a,b)*b;}

int main(){
	/*?????°????????????????????????????????±??? ????????§??????????????????????????????(EOF)?????§??\????????¨??£????????????*/
	int data[100];//???????????????????????§0-'a'?????§???????????¨
	REP(i,100) data[i]=0;
	string str;
	while(cin >> str){/*????????§EOF?????¨???????????????????????????????????§??¬?????? ?????????????????§??????k*/
		REP(i,str.size()){
			if('a'<=str[i]&&str[i]<='z') data[(int)str[i]]++;
			else if('A'<=str[i]&&str[i]<='Z') data[(int)str[i]+('a'-'A')]++;
		}
	}
	FOR(i,'a','z'){
		cout << (char)i M << " : " << data[i] << endl;
	}
}

Compiler output:
a.cc: In function 'int main()':
a.cc:38:32: error: expected ';' before 'M'
   38 |                 cout << (char)i M << " : " << data[i] << endl;
      |                                ^~
      |                                ;
Language: C++

x=input()

alpha=[chr(s) for s in range(ord("a"),ord("z")+1)]

cnt=[i*0 for i in range(ord("a"),ord("z")+1)]

for k in alpha :
  cnt[ord("k")-ord("k")]=x.count(k)
  print(k:cnt[ord("k")-ord("k")])

Compiler output:
a.cc:1:1: error: 'x' does not name a type
    1 | x=input()
      | ^
Language: C++

#include <iostream>
#include <cstring>
#include <stdio.h>
using namespace std;

int main(){
	char s[100], p[100];
	scanf("%s",s);
	scanf("%s",p);
	for (int i=0;i<strlen(s);i++){
		if (s[i] == p[0]){
			for (int j=0;j<strlen(p);j++){
				if (s[i+j] != p[j]) break;
				if (j == strlen(p)-1){
					cout << "Yes" << endl;
					return 0;
				}	
			}
		}
	}
	cout << "No" << endl;
	return 0;

Compiler output:
a.cc: In function 'int main()':
a.cc:22:18: error: expected '}' at end of input
   22 |         return 0;
      |                  ^
a.cc:6:11: note: to match this '{'
    6 | int main(){
      |           ^
Language: C++

#include <iostream>
using namespace std;

int main(){
	char str[1200]={0};
	char lc , uc;
	int sum=0;
	while(fgets(str , sizeof(str) , stdin)!=NULL){
		for(int i=0 , lc='a' , uc='A' ; i<'Z'-'A'+1 ;i++ , lc++ , uc++){
			for(int j=0 ; j<strlen(str);j++){
				if(str[j]==lc || str[j]==uc ){
					sum++;
				}
			}
			cout << char(lc) << " : " << sum << endl;
			sum=0;
			}
			for(int i=0 ; i<1200 ; i++){
			str[i]=0;
		}
	}
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:41: error: 'strlen' was not declared in this scope
   10 |                         for(int j=0 ; j<strlen(str);j++){
      |                                         ^~~~~~
a.cc:2:1: note: 'strlen' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>'
    1 | #include <iostream>
  +++ |+#include <cstring>
    2 | using namespace std;
Language: C++

#include <iostream>
#include <string>
using namespace std;

int main(){
	char str[1200];
	char lc , uc;
	int sum=0;
	cin.getline(str , sizeof(str));
		for(int i=0 , lc='a' , uc='A' ; i<'Z'-'A'+1 ;i++ , lc++ , uc++){
			for(int j=0 ; j<strlen(str);j++){
				if(str[j]==lc || str[j]==uc ){
					sum++;
				}
			}
			cout << char(lc) << " : " << sum << endl;
			sum=0;
			}
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:41: error: 'strlen' was not declared in this scope
   11 |                         for(int j=0 ; j<strlen(str);j++){
      |                                         ^~~~~~
a.cc:2:1: note: 'strlen' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>'
    1 | #include <iostream>
  +++ |+#include <cstring>
    2 | #include <string>
Language: C++

int main(){
	int Case[26]={0};
	char c , lc;
	while (cin>>c){
		if(isalpha(c)){
			if(c<='Z'){
				Case[c-'Z'+25]++;
			} else {
				Case[c-'z'+25]++;
			}
		}
	}
	for(int i=0 , lc='a' ; i<26 ; i++ , lc++){
			cout << (char)lc << " : " << Case[i] << endl;
		}
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:4:16: error: 'cin' was not declared in this scope
    4 |         while (cin>>c){
      |                ^~~
a.cc:5:20: error: 'isalpha' was not declared in this scope
    5 |                 if(isalpha(c)){
      |                    ^~~~~~~
a.cc:14:25: error: 'cout' was not declared in this scope
   14 |                         cout << (char)lc << " : " << Case[i] << endl;
      |                         ^~~~
a.cc:14:65: error: 'endl' was not declared in this scope
   14 |                         cout << (char)lc << " : " << Case[i] << endl;
      |                                                                 ^~~~
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:
a.cc: In function 'int main()':
a.cc:28:12: error: expected ';' before 'printf'
   28 | z = i + 'a'
      |            ^
      |            ;
   29 | printf("%c : %d\n", z, n[i])
      | ~~~~~~      
a.cc:33:2: error: expected '}' at end of input
   33 | }
      |  ^
a.cc:3:1: note: to match this '{'
    3 | {
      | ^