Language: C++

#include <bits/stdc++.h>
using namespace std;
int main(){
 int N;
 string S;
 cin>>N>>S;
 vector<string>ABC(26);
 ABC={
A,B,C,D,E,F,G,H,I,J,K,L,M,N,O,P,Q,R,S,T,U,V,W,Z,Y,Z
 };
 int a=S.size();
vector<int>answer(a);
for(int  i=0; i<a; i++){
for(int j=0; i<25;){
if(S.at(i)==ABC.at(j{
answer.at(i)==j;
continue;
}
}
}
for(int i=0; i<a; i++){
answer.at(i)+=N;
if(answer.at(i)>26){
answer.at(i)-=26;
}
cout<<ABC.at(answer.at(i));
}
cout<<""<<endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:9:1: error: 'A' was not declared in this scope
    9 | A,B,C,D,E,F,G,H,I,J,K,L,M,N,O,P,Q,R,S,T,U,V,W,Z,Y,Z
      | ^
a.cc:9:3: error: 'B' was not declared in this scope
    9 | A,B,C,D,E,F,G,H,I,J,K,L,M,N,O,P,Q,R,S,T,U,V,W,Z,Y,Z
      |   ^
a.cc:9:5: error: 'C' was not declared in this scope
    9 | A,B,C,D,E,F,G,H,I,J,K,L,M,N,O,P,Q,R,S,T,U,V,W,Z,Y,Z
      |     ^
a.cc:9:7: error: 'D' was not declared in this scope
    9 | A,B,C,D,E,F,G,H,I,J,K,L,M,N,O,P,Q,R,S,T,U,V,W,Z,Y,Z
      |       ^
a.cc:9:9: error: 'E' was not declared in this scope
    9 | A,B,C,D,E,F,G,H,I,J,K,L,M,N,O,P,Q,R,S,T,U,V,W,Z,Y,Z
      |         ^
a.cc:9:11: error: 'F' was not declared in this scope
    9 | A,B,C,D,E,F,G,H,I,J,K,L,M,N,O,P,Q,R,S,T,U,V,W,Z,Y,Z
      |           ^
a.cc:9:13: error: 'G' was not declared in this scope
    9 | A,B,C,D,E,F,G,H,I,J,K,L,M,N,O,P,Q,R,S,T,U,V,W,Z,Y,Z
      |             ^
a.cc:9:15: error: 'H' was not declared in this scope
    9 | A,B,C,D,E,F,G,H,I,J,K,L,M,N,O,P,Q,R,S,T,U,V,W,Z,Y,Z
      |               ^
a.cc:9:17: error: 'I' was not declared in this scope
    9 | A,B,C,D,E,F,G,H,I,J,K,L,M,N,O,P,Q,R,S,T,U,V,W,Z,Y,Z
      |                 ^
a.cc:9:19: error: 'J' was not declared in this scope
    9 | A,B,C,D,E,F,G,H,I,J,K,L,M,N,O,P,Q,R,S,T,U,V,W,Z,Y,Z
      |                   ^
a.cc:9:21: error: 'K' was not declared in this scope
    9 | A,B,C,D,E,F,G,H,I,J,K,L,M,N,O,P,Q,R,S,T,U,V,W,Z,Y,Z
      |                     ^
a.cc:9:23: error: 'L' was not declared in this scope
    9 | A,B,C,D,E,F,G,H,I,J,K,L,M,N,O,P,Q,R,S,T,U,V,W,Z,Y,Z
      |                       ^
a.cc:9:25: error: 'M' was not declared in this scope
    9 | A,B,C,D,E,F,G,H,I,J,K,L,M,N,O,P,Q,R,S,T,U,V,W,Z,Y,Z
      |                         ^
a.cc:9:29: error: 'O' was not declared in this scope
    9 | A,B,C,D,E,F,G,H,I,J,K,L,M,N,O,P,Q,R,S,T,U,V,W,Z,Y,Z
      |                             ^
a.cc:9:31: error: 'P' was not declared in this scope
    9 | A,B,C,D,E,F,G,H,I,J,K,L,M,N,O,P,Q,R,S,T,U,V,W,Z,Y,Z
      |                               ^
a.cc:9:33: error: 'Q' was not declared in this scope
    9 | A,B,C,D,E,F,G,H,I,J,K,L,M,N,O,P,Q,R,S,T,U,V,W,Z,Y,Z
      |                                 ^
a.cc:9:35: error: 'R' was not declared in this scope
    9 | A,B,C,D,E,F,G,H,I,J,K,L,M,N,O,P,Q,R,S,T,U,V,W,Z,Y,Z
      |                                   ^
a.cc:9:39: error: 'T' was not declared in this scope
    9 | A,B,C,D,E,F,G,H,I,J,K,L,M,N,O,P,Q,R,S,T,U,V,W,Z,Y,Z
      |                                       ^
a.cc:9:41: error: 'U' was not declared in this scope
    9 | A,B,C,D,E,F,G,H,I,J,K,L,M,N,O,P,Q,R,S,T,U,V,W,Z,Y,Z
      |                                         ^
a.cc:9:43: error: 'V' was not declared in this scope
    9 | A,B,C,D,E,F,G,H,I,J,K,L,M,N,O,P,Q,R,S,T,U,V,W,Z,Y,Z
      |                                           ^
a.cc:9:45: error: 'W' was not declared in this scope
    9 | A,B,C,D,E,F,G,H,I,J,K,L,M,N,O,P,Q,R,S,T,U,V,W,Z,Y,Z
      |                                             ^
a.cc:9:47: error: 'Z' was not declared in this scope
    9 | A,B,C,D,E,F,G,H,I,J,K,L,M,N,O,P,Q,R,S,T,U,V,W,Z,Y,Z
      |                                               ^
a.cc:9:49: error: 'Y' was not declared in this scope
    9 | A,B,C,D,E,F,G,H,I,J,K,L,M,N,O,P,Q,R,S,T,U,V,W,Z,Y,Z
      |                                                 ^
a.cc:10:2: error: no match for 'operator=' (operand types are 'std::vector<std::__cxx11::basic_string<char> >' and '<brace-enclosed initializer list>')
   10 |  };
      |  ^
In file included from /usr/include/c++/14/vector:72,
                 from /usr/include/c++/14/functional:64,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:53,
                 from a.cc:1:
/usr/include/c++/14/bits/vector.tcc:210:5: note: candidate: 'std::vector<_Tp, _Alloc>& std::vector<_Tp, _Alloc>::operator=(const std::vector<_Tp, _Alloc>&) [with _Tp = std::__cxx11::basic_string<char>; _Alloc = std::allocator<std::__cxx11::basic_string<char> >]'
  210 |     vector<_Tp, _Alloc>::
      |     ^~~~~~~~~~~~~~~~~~~
/usr/include/c++/14/bits/vector.tcc:211:42: note:   no known conversion for argument 1 from '<brace-enclosed initializer list>' to 'const std::vector<std::__cxx11::basic_string<char> >&'
  211 |     operator=(const vector<_Tp, _Alloc>& __x)
      |               ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
In file included from /usr/include/c++/14/vector:66:
/usr/include/c++/14/bits/stl_vector.h:766:7: note: candidate: 'std::vector<_Tp, _Alloc>& std::vector<_Tp, _Alloc>::operator=(std::vector<_Tp, _Alloc>&&) [with _Tp = std::__cxx11::basic_string<char>; _Alloc = std::allocator<std::__cxx11::basic_string<char> >]'
  766 |       operator=(vector&& __x) noexcept(_Alloc_traits::_S_nothrow_move())
      |       ^~~~~~~~
/usr/include/c++/14/bits/stl_vector.h:766:26: note:   no known conversion for argument 1 from '<brace-enclosed initializer list>' to 'std::vector<std::__cxx11::basic_string<char> >&&'
  766 |       operator=(vector&& __x) noexcept(_Alloc_traits::_S_nothrow_move())
      |                 ~~~~~~~~~^~~
/usr/include/c++/14/bits/stl_vector.h:788:7: note: candidate: 'std::vector<_Tp, _Alloc>& std::vector<_Tp, _Alloc>::operator=(std::initializer_list<_Tp>) [with _Tp = std::__cxx11::basic_string<char>; _Alloc = std::allocator<std::__cxx11::basic_string<char> >]'
  788 |       operator=(initializer_list<value_type> __l)
      |       ^~~~~~~~
/usr/include/c++/14/bits/stl_vector.h:788:46: note:   no known conversion for argument 1 from '<brace-enclosed initializer list>' to 'std::initializer_list<std::__cxx11::basic_string<char> >'
  788 |       operator=(initializer_list<value_type> __l)
      |                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
a.cc:15:21: error: expected ')' before '{' token
   15 | if(S.at(i)==ABC.at(j{
      |                   ~ ^
      |                     )
a.cc:18:2: error: expected ')' before '}' token
   18 | }
      |  ^
      |  )
   19 | }
      | ~ 
a.cc:15:3: note: to match this '('
   15 | if(S.at(i)==ABC.at(j{
      |   ^
a.cc:19:1: error: expected primary-expression before '}' token
   19 | }
      | ^