Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(){
  long long N;
  cin >> N;
  int i = 0, j = 0;
  vector<char> ans;
  char a;
  while(N > 0){
    j = N % 26;
    N = N / 26;
    switch(j){
      case 0:
        a = 'z';
        ans.push_back(a);
        break;
      case 1:
        a = 'a';
        ans.push_back(a);
        break;
      case 2:
        a = 'b';
        ans.push_back(a);
        break;
      case 3:
        a = 'c';
        ans.push_back(a);
        break;
      case 4:
        a = 'd';
        ans.push_back(a);
        break;
      case 5:
        a = 'e';
        ans.push_back(a);
        break;
      case 6:
        a = 'f';
        ans.push_back(a);
        break;
      case 7:
        a = 'g';
        ans.push_back(a);
        break;
      case 8:
        a = 'h';
        ans.push_back(a);
        break;
      case 9:
        a = 'i';
        ans.push_back(a);
        break;
      case 10:
        a = 'j';
        ans.push_back(a);
        break;
      case 11:
        a = 'k';
        ans.push_back(a);
        break;
      case 12:
        a = 'l';
        ans.push_back(a);
        break;
      case 13:
        a = 'm';
        ans.push_back(a);
        break;
      case 14:
        a = 'n';
        ans.push_back(a);
        break;
      case 15:
        a = 'o';
        ans.push_back(a);
        break;
      case 16:
        a = 'p';
        ans.push_back(a);
        break;
      case 17:
        a = 'q';
        ans.push_back(a);
        break;
      case 18:
        a = 'r';
        ans.push_back(a);
        break;
      case 19:
        a = 's';
        ans.push_back(a);
        break;
      case 20:
        a = 't';
        ans.push_back(a);
        break;
      case 21:
        a = 'u';
        ans.push_back(a);
        break;
      case 22:
        a = 'v';
        ans.push_back(a);
        break;
      case 23:
        a = 'w';
        ans.push_back(a);
        break;
      case 24:
        a = 'x';
        ans.push_back(a);
        break;
      case 25:
        a = 'y';
        ans.push_back(a);
        break;
      default:
        break;
    }
    i++;
  }
  switch(N){
      case 0:
        a = 'z';
        ans.push_back(a);
        break;
      case 1:
        a = 'a';
        ans.push_back(a);
        break;
      case 2:
        a = 'b';
        ans.push_back(a);
        break;
      case 3:
        a = 'c';
        ans.push_back(a);
        break;
      case 4:
        a = 'd';
        ans.push_back(a);
        break;
      case 5:
        a = 'e';
        ans.push_back(a);
        break;
      case 6:
        a = 'f';
        ans.push_back(a);
        break;
      case 7:
        a = 'g';
        ans.push_back(a);
        break;
      case 8:
        a = 'h';
        ans.push_back(a);
        break;
      case 9:
        a = 'i';
        ans.push_back(a);
        break;
      case 10:
        a = 'j';
        ans.push_back(a);
        break;
      case 11:
        a = 'k';
        ans.push_back(a);
        break;
      case 12:
        a = 'l';
        ans.push_back(a);
        break;
      case 13:
        a = 'm';
        ans.push_back(a);
        break;
      case 14:
        a = 'n';
        ans.push_back(a);
        break;
      case 15:
        a = 'o';
        ans.push_back(a);
        break;
      case 16:
        a = 'p';
        ans.push_back(a);
        break;
      case 17:
        a = 'q';
        ans.push_back(a);
        break;
      case 18:
        a = 'r';
        ans.push_back(a);
        break;
      case 19:
        a = 's';
        ans.push_back(a);
        break;
      case 20:
        a = 't';
        ans.push_back(a);
        break;
      case 21:
        a = 'u';
        ans.push_back(a);
        break;
      case 22:
        a = 'v';
        ans.push_back(a);
        break;
      case 23:
        a = 'w';
        ans.push_back(a);
        break;
      case 24:
        a = 'x';
        ans.push_back(a);
        break;
      case 25:
        a = 'y';
        ans.push_back(a);
        break;
      default:
        break;
    }
  reverse(ans.begin(), ans.end());
  fot(i = 0; i < ans.size(); i++){
    cout << ans[i];
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:231:12: error: expected ')' before ';' token
  231 |   fot(i = 0; i < ans.size(); i++){
      |      ~     ^
      |            )
a.cc:231:33: error: expected ';' before ')' token
  231 |   fot(i = 0; i < ans.size(); i++){
      |                                 ^
      |                                 ;