Language: C++

#include <bits/stdc++.h>
using namespace std;

int main(){
  int N;
  string abc = [A,B,C,D,E,F,G,H,I,J,K,L,M,N,O,P,Q,R,S,T,U,V,W,X,Y,Z]
  string S;
  int x;
  cin>>N>>S;
  
  for (int i;i<abc.size();i++){
    if (S[i])

Compiler output:
a.cc: In function 'int main()':
a.cc:6:17: error: 'A' was not declared in this scope
    6 |   string abc = [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]
      |                 ^
a.cc:6:19: error: 'B' was not declared in this scope
    6 |   string abc = [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]
      |                   ^
a.cc:6:21: error: 'C' was not declared in this scope
    6 |   string abc = [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]
      |                     ^
a.cc:6:23: error: 'D' was not declared in this scope
    6 |   string abc = [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]
      |                       ^
a.cc:6:25: error: 'E' was not declared in this scope
    6 |   string abc = [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]
      |                         ^
a.cc:6:27: error: 'F' was not declared in this scope
    6 |   string abc = [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]
      |                           ^
a.cc:6:29: error: 'G' was not declared in this scope
    6 |   string abc = [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]
      |                             ^
a.cc:6:31: error: 'H' was not declared in this scope
    6 |   string abc = [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]
      |                               ^
a.cc:6:33: error: 'I' was not declared in this scope
    6 |   string abc = [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]
      |                                 ^
a.cc:6:35: error: 'J' was not declared in this scope
    6 |   string abc = [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]
      |                                   ^
a.cc:6:37: error: 'K' was not declared in this scope
    6 |   string abc = [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]
      |                                     ^
a.cc:6:39: error: 'L' was not declared in this scope
    6 |   string abc = [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]
      |                                       ^
a.cc:6:41: error: 'M' was not declared in this scope
    6 |   string abc = [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]
      |                                         ^
a.cc:6:45: error: 'O' was not declared in this scope
    6 |   string abc = [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]
      |                                             ^
a.cc:6:47: error: 'P' was not declared in this scope
    6 |   string abc = [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]
      |                                               ^
a.cc:6:49: error: 'Q' was not declared in this scope
    6 |   string abc = [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]
      |                                                 ^
a.cc:6:51: error: 'R' was not declared in this scope
    6 |   string abc = [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]
      |                                                   ^
a.cc:6:53: error: 'S' was not declared in this scope
    6 |   string abc = [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]
      |                                                     ^
a.cc:6:55: error: 'T' was not declared in this scope
    6 |   string abc = [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]
      |                                                       ^
a.cc:6:57: error: 'U' was not declared in this scope
    6 |   string abc = [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]
      |                                                         ^
a.cc:6:59: error: 'V' was not declared in this scope
    6 |   string abc = [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]
      |                                                           ^
a.cc:6:61: error: 'W' was not declared in this scope
    6 |   string abc = [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]
      |                                                             ^
a.cc:6:63: error: 'X' was not declared in this scope
    6 |   string abc = [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]
      |                                                               ^
a.cc:6:65: error: 'Y' was not declared in this scope
    6 |   string abc = [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]
      |                                                                 ^
a.cc:6:67: error: 'Z' was not declared in this scope
    6 |   string abc = [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]
      |                                                                   ^
a.cc: In lambda function:
a.cc:7:3: error: expected '{' before 'string'
    7 |   string S;
      |   ^~~~~~
a.cc: In function 'int main()':
a.cc:6:16: error: conversion from 'main()::<lambda()>' to non-scalar type 'std::string' {aka 'std::__cxx11::basic_string<char>'} requested
    6 |   string abc = [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]
      |                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
a.cc:7:3: error: expected ',' or ';' before 'string'
    7 |   string S;
      |   ^~~~~~
a.cc:12:14: error: expected statement at end of input
   12 |     if (S[i])
      |              ^
a.cc:12:14: error: expected '}' at end of input
a.cc:11:31: note: to match this '{'
   11 |   for (int i;i<abc.size();i++){
      |                               ^
a.cc:12:14: error: expected '}' at end of input
   12 |     if (S[i])
      |              ^
a.cc:4:11: note: to match this '{'
    4 | int main(){
      |           ^