Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main() {
  int N;
  cin>>N;
  vector<char> vec={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};
  if(N<27){
    cout<<vec[N];
  }
  else if(N<703){
    cout<<vec[N/26/26]<<vec[N%26];
  }
  else if(N<18279){
    cout<<vec[N/26/26/26]<<vec[(N-26*26)/26]<<vec[N%26];
  }
  else if(N<475254){
    cout<<vec[N/26/26/26/26]<<vec[(N-26*26*26)/26]<<vec[(N-26*26)/26/26]<<vec[N%26];
  }
  else if(N<12356631){
    cout<<vec[N/26/26/26/26/26]<<vec[(N-26*26*26*26)/26]<<vec[(N-26*26*26)/26/26]<<vec[(N-26*26)/26/26/26]<<vec[N%26];
  }
}
                                                                              
    

Compiler output:
a.cc: In function 'int main()':
a.cc:7:21: error: 'a' was not declared in this scope
    7 |   vector<char> vec={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:23: error: 'b' was not declared in this scope
    7 |   vector<char> vec={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:25: error: 'c' was not declared in this scope
    7 |   vector<char> vec={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:27: error: 'd' was not declared in this scope
    7 |   vector<char> vec={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:29: error: 'e' was not declared in this scope
    7 |   vector<char> vec={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:31: error: 'f' was not declared in this scope
    7 |   vector<char> vec={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:33: error: 'g' was not declared in this scope
    7 |   vector<char> vec={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:35: error: 'h' was not declared in this scope
    7 |   vector<char> vec={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:37: error: 'i' was not declared in this scope
    7 |   vector<char> vec={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:39: error: 'j' was not declared in this scope
    7 |   vector<char> vec={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:41: error: 'k' was not declared in this scope
    7 |   vector<char> vec={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:43: error: 'l' was not declared in this scope
    7 |   vector<char> vec={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:45: error: 'm' was not declared in this scope
    7 |   vector<char> vec={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:47: error: 'n' was not declared in this scope
    7 |   vector<char> vec={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:49: error: 'o' was not declared in this scope
    7 |   vector<char> vec={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:51: error: 'p' was not declared in this scope
    7 |   vector<char> vec={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:53: error: 'q' was not declared in this scope
    7 |   vector<char> vec={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:55: error: 'r' was not declared in this scope
    7 |   vector<char> vec={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:57: error: 's' was not declared in this scope
    7 |   vector<char> vec={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:59: error: 't' was not declared in this scope
    7 |   vector<char> vec={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:61: error: 'u' was not declared in this scope
    7 |   vector<char> vec={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:63: error: 'v' was not declared in this scope
    7 |   vector<char> vec={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:65: error: 'w' was not declared in this scope
    7 |   vector<char> vec={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:67: error: 'x' was not declared in this scope
    7 |   vector<char> vec={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:69: error: 'y' was not declared in this scope
    7 |   vector<char> vec={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:71: error: 'z' was not declared in this scope
    7 |   vector<char> vec={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:72: error: could not convert '{<expression error>, <expression error>, <expression error>, <expression error>, <expression error>, <expression error>, <expression error>, <expression error>, <expression error>, <expression error>, <expression error>, <expression error>, <expression error>, <expression error>, <expression error>, <expression error>, <expression error>, <expression error>, <expression error>, <expression error>, <expression error>, <expression error>, <expression error>, <expression error>, <expression error>, <expression error>}' from '<brace-enclosed initializer list>' to 'std::vector<char>'
    7 |   vector<char> vec={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};
      |                                                                        ^
      |                                                                        |
      |                                                                        <brace-enclosed initializer list>