Language: C++

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

int main() {
  vector<string> alp(25);
    alp = {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};
  
  	char C;
  	cin >> C;
  
  	for(int i=0; i < 25; i++){
      if(C == 'alp.at(i)'){
        cout << 'alp.at(i+1)' << endl;
      }
    }
  
	return 0;
}


Compiler output:
a.cc:12:15: warning: multi-character literal with 9 characters exceeds 'int' size of 4 bytes
   12 |       if(C == 'alp.at(i)'){
      |               ^~~~~~~~~~~
a.cc:13:17: warning: multi-character literal with 11 characters exceeds 'int' size of 4 bytes
   13 |         cout << 'alp.at(i+1)' << endl;
      |                 ^~~~~~~~~~~~~
a.cc: In function 'int main()':
a.cc:6:12: error: 'a' was not declared in this scope
    6 |     alp = {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};
      |            ^
a.cc:6:14: error: 'b' was not declared in this scope
    6 |     alp = {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};
      |              ^
a.cc:6:16: error: 'c' was not declared in this scope
    6 |     alp = {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};
      |                ^
a.cc:6:18: error: 'd' was not declared in this scope
    6 |     alp = {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};
      |                  ^
a.cc:6:20: error: 'e' was not declared in this scope
    6 |     alp = {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};
      |                    ^
a.cc:6:22: error: 'f' was not declared in this scope
    6 |     alp = {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};
      |                      ^
a.cc:6:24: error: 'g' was not declared in this scope
    6 |     alp = {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};
      |                        ^
a.cc:6:26: error: 'h' was not declared in this scope
    6 |     alp = {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};
      |                          ^
a.cc:6:28: error: 'i' was not declared in this scope
    6 |     alp = {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};
      |                            ^
a.cc:6:30: error: 'j' was not declared in this scope; did you mean 'jn'?
    6 |     alp = {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};
      |                              ^
      |                              jn
a.cc:6:32: error: 'k' was not declared in this scope
    6 |     alp = {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};
      |                                ^
a.cc:6:34: error: 'l' was not declared in this scope
    6 |     alp = {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};
      |                                  ^
a.cc:6:36: error: 'm' was not declared in this scope; did you mean 'tm'?
    6 |     alp = {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};
      |                                    ^
      |                                    tm
a.cc:6:38: error: 'n' was not declared in this scope; did you mean 'yn'?
    6 |     alp = {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};
      |                                      ^
      |                                      yn
a.cc:6:40: error: 'o' was not declared in this scope
    6 |     alp = {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};
      |                                        ^
a.cc:6:42: error: 'p' was not declared in this scope
    6 |     alp = {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};
      |                                          ^
a.cc:6:44: error: 'q' was not declared in this scope
    6 |     alp = {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};
      |                                            ^
a.cc:6:46: error: 'r' was not declared in this scope
    6 |     alp = {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};
      |                                              ^
a.cc:6:48: error: 's' was not declared in this scope
    6 |     alp = {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};
      |                                                ^
a.cc:6:50: error: 't' was not declared in this scope; did you mean 'tm'?
    6 |     alp = {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};
      |                                                  ^
      |                                                  tm
a.cc:6:52: error: 'u' was not declared in this scope
    6 |     alp = {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};
      |                                                    ^
a.cc:6:54: error: 'v' was not declared in this scope
    6 |     alp = {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};
      |                                                      ^
a.cc:6:56: error: 'w' was not declared in this scope
    6 |     alp = {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};
      |                                                        ^
a.cc:6:58: error: 'x' was not declared in this scope
    6 |     alp = {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};
      |                                                          ^
a.cc:6:60: error: 'y' was not declared in this scope; did you mean 'yn'?
    6 |     alp = {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};
      |                                                            ^
      |                                                            yn
a.cc:6:61: error: no match for 'operator=' (operand types are 'std::vector<std::__cxx11::basic_string<char> >' and '<brace-enclosed initializer list>')
    6 |     alp = {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};
      |                                                             ^
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)
      |                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~