Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:4:1: error: expected primary-expression before '?' token
    4 | ??
      | ^
a.cc:4:2: error: expected primary-expression before '?' token
    4 | ??
      |  ^
a.cc:5:1: error: expected primary-expression before '?' token
    5 | ????char ch;
      | ^
a.cc:5:2: error: expected primary-expression before '?' token
    5 | ????char ch;
      |  ^
a.cc:5:3: error: expected primary-expression before '?' token
    5 | ????char ch;
      |   ^
a.cc:5:4: error: expected primary-expression before '?' token
    5 | ????char ch;
      |    ^
a.cc:5:5: error: expected primary-expression before 'char'
    5 | ????char ch;
      |     ^~~~
a.cc:5:5: error: expected ':' before 'char'
    5 | ????char ch;
      |     ^~~~
      |     :
a.cc:5:5: error: expected primary-expression before 'char'
    5 | ????char ch;
      |     ^~~~
a.cc:5:5: error: expected ':' before 'char'
    5 | ????char ch;
      |     ^~~~
      |     :
a.cc:5:5: error: expected primary-expression before 'char'
    5 | ????char ch;
      |     ^~~~
a.cc:5:5: error: expected ':' before 'char'
    5 | ????char ch;
      |     ^~~~
      |     :
a.cc:5:5: error: expected primary-expression before 'char'
    5 | ????char ch;
      |     ^~~~
a.cc:5:5: error: expected ':' before 'char'
    5 | ????char ch;
      |     ^~~~
      |     :
a.cc:5:5: error: expected primary-expression before 'char'
    5 | ????char ch;
      |     ^~~~
a.cc:5:5: error: expected ':' before 'char'
    5 | ????char ch;
      |     ^~~~
      |     :
a.cc:5:5: error: expected primary-expression before 'char'
    5 | ????char ch;
      |     ^~~~
a.cc:5:5: error: expected ':' before 'char'
    5 | ????char ch;
      |     ^~~~
      |     :
a.cc:5:5: error: expected primary-expression before 'char'
    5 | ????char ch;
      |     ^~~~
a.cc:6:1: error: expected primary-expression before '?' token
    6 | ????int moji[30]={0};
      | ^
a.cc:6:2: error: expected primary-expression before '?' token
    6 | ????int moji[30]={0};
      |  ^
a.cc:6:3: error: expected primary-expression before '?' token
    6 | ????int moji[30]={0};
      |   ^
a.cc:6:4: error: expected primary-expression before '?' token
    6 | ????int moji[30]={0};
      |    ^
a.cc:6:5: error: expected primary-expression before 'int'
    6 | ????int moji[30]={0};
      |     ^~~
a.cc:6:5: error: expected ':' before 'int'
    6 | ????int moji[30]={0};
      |     ^~~
      |     :
a.cc:6:5: error: expected primary-expression before 'int'
    6 | ????int moji[30]={0};
      |     ^~~
a.cc:6:5: error: expected ':' before 'int'
    6 | ????int moji[30]={0};
      |     ^~~
      |     :
a.cc:6:5: error: expected primary-expression before 'int'
    6 | ????int moji[30]={0};
      |     ^~~
a.cc:6:5: error: expected ':' before 'int'
    6 | ????int moji[30]={0};
      |     ^~~
      |     :
a.cc:6:5: error: expected primary-expression before 'int'
    6 | ????int moji[30]={0};
      |     ^~~
a.cc:6:5: error: expected ':' before 'int'
    6 | ????int moji[30]={0};
      |     ^~~
      |     :
a.cc:6:5: error: expected primary-expression before 'int'
    6 | ????int moji[30]={0};
      |     ^~~
a.cc:7:1: error: expected primary-expression before '?' token
    7 | ????int i;
      | ^
a.cc:7:2: error: expected primary-expression before '?' token
    7 | ????int i;
      |  ^
a.cc:7:3: error: expected primary-expression before '?' token
    7 | ????int i;
      |   ^
a.cc:7:4: error: expected primary-expression before '?' token
    7 | ????int i;
      |    ^
a.cc:7:5: error: expected primary-expression before 'int'
    7 | ????int i;
      |     ^~~
a.cc:7:5: error: expected ':' before 'int'
    7 | ????int i;
      |     ^~~
      |     :
a.cc:7:5: error: expected primary-expression before 'int'
    7 | ????int i;
      |     ^~~
a.cc:7:5: error: expected ':' before 'int'
    7 | ????int i;
      |     ^~~
      |     :
a.cc:7:5: error: expected primary-expression before 'int'
    7 | ????int i;
      |     ^~~
a.cc:7:5: error: expected ':' before 'int'
    7 | ????int i;
      |     ^~~
      |     :
a.cc:7:5: error: expected primary-expression before 'int'
    7 | ????int i;
      |     ^~~
a.cc:7:5: error: expected ':' before 'int'
    7 | ????int i;
      |     ^~~
      |     :
a.cc:7:5: error: expected primary-expression before 'int'
    7 | ????int i;
      |     ^~~
a.cc:8:1: error: expected primary-expression before '?' token
    8 | ????char word = 97;
      | ^
a.cc:8:2: error: expected primary-expression before '?' token
    8 | ????char word = 97;
      |  ^
a.cc:8:3: error: expected primary-expression before '?' token
    8 | ????char word = 97;
      |   ^
a.cc:8:4: error: expected primary-expression before '?' token
    8 | ????char word = 97;
      |    ^
a.cc:8:5: error: expected primary-expression before 'char'
    8 | ????char word = 97;
      |     ^~~~
a.cc:8:5: error: expected ':' before 'char'
    8 | ????char word = 97;
      |     ^~~~
      |     :
a.cc:8:5: error: expected primary-expression before 'char'
    8 | ????char word = 97;
      |     ^~~~
a.cc:8:5: error: expected ':' before 'char'
    8 | ????char word = 97;
      |     ^~~~
      |     :
a.cc:8:5: error: expected primary-expression before 'char'
    8 | ????char word = 97;
      |     ^~~~
a.cc:8:5: error: expected ':' before 'char'
    8 | ????char word = 97;
      |     ^~~~
      |     :
a.cc:8:5: error: expected primary-expression before 'char'
    8 | ????char word = 97;
      |     ^~~~
a.cc:8:5: error: expected ':' before 'char'
    8 | ????char word = 97;
      |     ^~~~
      |     :
a.cc:8:5: error: expected primary-expression before 'char'
    8 | ????char word = 97;
      |     ^~~~
a.cc:9:1: error: expected primary-expression before '?' token
    9 | ??
      | ^
a.cc:9:2: error: expected primary-expression before '?' token
    9 | ??
      |  ^
a.cc:10:1: error: expected primary-expression before '?' token
   10 | ??
      | ^
a.cc:10:2: error: expected primary-expression before '?' token
   10 | ??
      |  ^
a.cc:11:1: error: expected primary-expression before '?' token
   11 | ??
      | ^
a.cc:11:2: error: expected primary-expression before '?' token
   11 | ??
      |  ^
a.cc:12:1: error: expected primary-expression before '?' token
   12 | ????while( scanf("%c", &ch) != EOF ){
      | ^
a.cc:12:2: error: expected primary-expression before '?' token
   12 | ????while( scanf("%c", &ch) != EOF ){
      |  ^
a.cc:12:3: error: expected primary-expression before '?' token
   12 | ????while( scanf("%c", &ch) != EOF ){
      |   ^
a.cc:12:4: error: expected primary-expression before '?' token
   12 | ????while( scanf("%c", &ch) != EOF ){
      |    ^
a.cc:12:5: error: expected primary-expression before 'while'
   12 | ????while( scanf("%c", &ch) != EOF ){
      |     ^~~~~
a.cc:12:5: error: expected ':' before 'while'
   12 | ????while( scanf("%c", &ch) != EOF ){
      |     ^~~~~
      |     :
a.cc:12:5: error: expected primary-expression before 'while'
   12 | ????while( scanf("%c", &ch) != EOF ){
      |     ^~~~~
a.cc:12:5: error: expected ':' before 'while'
   12 | ????while( scanf("%c", &ch) != EOF ){
      |     ^~~~~
      |     :
a.cc:12:5: error: expected primary-expression before 'while'
   12 | ????while( scanf("%c", &ch) != EOF ){
      |     ^~~~~
a.cc:12:5: error: expected ':' before 'while'
   12 | ????while( scanf("%c", &ch) != EOF ){
      |     ^~~~~
      |     :
a.cc:12:5: error: expected primary-expression before 'while'
   12 | ????while( scanf("%c", &ch) != EOF ){
      |     ^~~~~
a.cc:12:5: error: expected ':' before 'while'
   12 | ????while( scanf("%c", &ch) != EOF ){
      |     ^~~~~
      |     :
a.cc:12:5: error: expected primary-expression before 'while'
   12 | ????while( scanf("%c", &ch) != EOF ){
      |     ^~~~~
a.cc:12:5: error: expected ':' before 'while'
   12 | ????while( scanf("%c", &ch) != EOF ){
      |     ^~~~~
      |     :
a.cc:12:5: error: expected primary-expression before 'while'
   12 | ????while( scanf("%c", &ch) != EOF ){
      |     ^~~~~
a.cc:12:5: error: expected ':' before 'while'
   12 | ????while( scanf("%c", &ch) != EOF ){
      |     ^~~~~
      |     :
a.cc:12:5: error: expected primary-expression before 'while'
   12 | ????while( scanf("%c", &ch) != EOF ){
      |     ^~~~~
a.cc:12:5: error: expected ':' before 'while'
   12 | ????while( scanf("%c", &ch) != EOF ){
      |     ^~~~~
      |     :
a.cc:12:5: error: expected primary-expression before 'while'
   12 | ????while( scanf("%c", &ch) != EOF ){
      |     ^~~~~
a.cc:12:5: error: expected ':' before 'while'
   12 | ????while( scanf("%c", &ch) != EOF ){
      |     ^~~~~
      |     :
a.cc:12:5: error: expected primary-expression before 'while'
   12 | ????while( scanf("%c", &ch) != EOF ){
      |     ^~~~~
a.cc:12:5: error: expected ':' before 'while'
   12 | ????while( scanf("%c", &ch) != EOF ){
      |     ^~~~~
      |     :
a.cc:12:5: error: expected primary-expression before 'while'
   12 | ????while( scanf("%c", &ch) != EOF ){
      |     ^~~~~
a.cc:12:5: error: expected ':' before 'while'
   12 | ????while( scanf("%c", &ch) != EOF ){
      |     ^~~~~
      |     :
a.cc:12:5: error: expected primary-expression before 'while'
   12 | ????while( scanf("%c", &ch) != EOF ){
      |     ^~~~~
a.cc:20:1: error: expected primary-expression before '?' token
   20 | ??
      | ^
a.cc:20:2: error: expected primary-expression before '?' token
   20 | ??
      |  ^
a.cc:21:1: error: expected primary-expression before '?' token
   21 | ??
      | ^
a.cc:21:2: error: expected primary-expression before '?' token
   21 | ??
      |  ^
a.cc:22:1: error: expected primary-expression before '?' token
   22 | ????for(i = 0;i < 26;i++){
      | ^
a.cc:22:2: error: expected primary-expression before '?' token
   22 | ????for(i = 0;i < 26;i++){
      |  ^
a.cc:22:3: error: expected primary-expression before '?' token
   22 | ????for(i = 0;i < 26;i++){
      |   ^
a.cc:22:4: error: expected primary-expression before '?' token
   22 | ????for(i = 0;i < 26;i++){
      |    ^
a.cc:22:5: error: expected primary-expression before 'for'
   22 | ????for(i = 0;i < 26;i++){
      |     ^~~
a.cc:22:5: error: expected ':' bef