Language: C++

#include <bits/stdc++.h>
#include <iostream>
#include <algorithm>
#include <cmath>
using namespace std;
 
char check_abc(int num){
  if(num == 1){
    return 'a';
  } else if(num == 2){
    return 'b';
  } else if(num == 3){
    return 'c';
  } else if(num == 4){
    return 'd';
  } else if(num == 5){
    return 'e';
  } else if(num == 6){
    return 'f';
  } else if(num == 7){
    return 'g';
  } else if(num == 8){
    return 'h';
  } else if(num == 9){
    return 'i';
  } else if(num == 10){
    return 'j';
  } else if(num == 11){
    return 'k';
  } else if(num == 12){
    return 'l';
  } else if(num == 13){
    return 'm';
  } else if(num == 14){
    return 'n';
  } else if(num == 15){
    return 'o';
  } else if(num == 16){
    return 'p';
  } else if(num == 17){
    return 'q';
  } else if(num == 18){
    return 'r';
  } else if(num == 19){
    return 's';
  } else if(num == 20){
    return 't';
  } else if(num == 21){
    return 'u';
  } else if(num == 22){
    return 'v';
  } else if(num == 23){
    return 'w';
  } else if(num == 24){
    return 'x';
  } else if(num == 25){
    return 'y';
  } else if(num == 0){
    return 'z';
  }
}
int main() {
  int num;
  cin >> num;
  char result;
  
  while(num / 26 != 0){
  if(num / 26 >= (26*26*26*26*26*26*26*26*26*26*26*26*26)){
      result = result + check_abc(num /(26*26*26*26*26*26*26*26*26*26*26*26*26*26*26));         
  } else if(num / 26 >= (26*26*26*26*26*26*26*26*26*26*26*26)){
      result = result + check_abc(num /(26*26*26*26*26*26*26*26*26*26*26*26*26*26));
  } else if(num / 26 >= (26*26*26*26*26*26*26*26*26*26*26)){
      result = result + check_abc(num /(26*26*26*26*26*26*26*26*26*26*26*26*26));
  } else if(num / 26 >= (26*26*26*26*26*26*26*26*26*26*26)){
      result = result + check_abc(num /(26*26*26*26*26*26*26*26*26*26*26*26));
  } else if(num / 26 >= (26*26*26*26*26*26*26*26*26*26)){
      result = result + check_abc(num /(26*26*26*26*26*26*26*26*26*26*26));
  } else if(num / 26 >= (26*26*26*26*26*26*26*26*26)){
      result = result + check_abc(num /(26*26*26*26*26*26*26*26*26*26));
  } else if(num / 26 >= (26*26*26*26*26*26*26*26)){
      result = result + check_abc(num /(26*26*26*26*26*26*26*26*26));
  } else if(num / 26 >= (26*26*26*26*26*26*26)){
      result = result + check_abc(num /(26*26*26*26*26*26*26*26));    
  } else if(num / 26 >= (26*26*26*26*26*26)){
      result = result + check_abc(num /(26*26*26*26*26*26*26));    
  } else if (num / 26 >= (26*26*26*26*26)){
      result = result + check_abc(num /(26*26*26*26*26*26));     
    cout << result << endl;
    }else if(num / 26 >= (26*26*26*26)){
      result = result * check_abc(num / (26*26*26*26*26));   
    cout << result << endl;
    } else if(num / 26 >= (26 * 26* 26)){
      result = result + check_abc(num / (26*26*26*26));
    cout << result << endl;
    } else if(num / 26 >= (26 * 26)) {
      result = result + check_abc(num / (26*26*26));
    cout << result << endl;
    } else if(num / 26 >= 26){
      result = result + check_abc(num / (26*26));
    } else if(num / 26 <= 26){
      result = result + check_abc(num / 26);
    }
    cout << result << endl;
    }
    cout << num << endl;
    num = num / 26;
  }
  cout << result;
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:68:36: warning: integer overflow in expression of type 'int' results in '-558124416' [-Woverflow]
   68 |   if(num / 26 >= (26*26*26*26*26*26*26*26*26*26*26*26*26)){
      |                   ~~~~~~~~~~~~~~~~~^~~
a.cc:69:58: warning: integer overflow in expression of type 'int' results in '-558124416' [-Woverflow]
   69 |       result = result + check_abc(num /(26*26*26*26*26*26*26*26*26*26*26*26*26*26*26));
      |                                         ~~~~~~~~~~~~~~~~~^~~
a.cc:70:43: warning: integer overflow in expression of type 'int' results in '-558124416' [-Woverflow]
   70 |   } else if(num / 26 >= (26*26*26*26*26*26*26*26*26*26*26*26)){
      |                          ~~~~~~~~~~~~~~~~~^~~
a.cc:71:58: warning: integer overflow in expression of type 'int' results in '-558124416' [-Woverflow]
   71 |       result = result + check_abc(num /(26*26*26*26*26*26*26*26*26*26*26*26*26*26));
      |                                         ~~~~~~~~~~~~~~~~~^~~
a.cc:72:43: warning: integer overflow in expression of type 'int' results in '-558124416' [-Woverflow]
   72 |   } else if(num / 26 >= (26*26*26*26*26*26*26*26*26*26*26)){
      |                          ~~~~~~~~~~~~~~~~~^~~
a.cc:73:58: warning: integer overflow in expression of type 'int' results in '-558124416' [-Woverflow]
   73 |       result = result + check_abc(num /(26*26*26*26*26*26*26*26*26*26*26*26*26));
      |                                         ~~~~~~~~~~~~~~~~~^~~
a.cc:74:43: warning: integer overflow in expression of type 'int' results in '-558124416' [-Woverflow]
   74 |   } else if(num / 26 >= (26*26*26*26*26*26*26*26*26*26*26)){
      |                          ~~~~~~~~~~~~~~~~~^~~
a.cc:75:58: warning: integer overflow in expression of type 'int' results in '-558124416' [-Woverflow]
   75 |       result = result + check_abc(num /(26*26*26*26*26*26*26*26*26*26*26*26));
      |                                         ~~~~~~~~~~~~~~~~~^~~
a.cc:76:43: warning: integer overflow in expression of type 'int' results in '-558124416' [-Woverflow]
   76 |   } else if(num / 26 >= (26*26*26*26*26*26*26*26*26*26)){
      |                          ~~~~~~~~~~~~~~~~~^~~
a.cc:77:58: warning: integer overflow in expression of type 'int' results in '-558124416' [-Woverflow]
   77 |       result = result + check_abc(num /(26*26*26*26*26*26*26*26*26*26*26));
      |                                         ~~~~~~~~~~~~~~~~~^~~
a.cc:78:43: warning: integer overflow in expression of type 'int' results in '-558124416' [-Woverflow]
   78 |   } else if(num / 26 >= (26*26*26*26*26*26*26*26*26)){
      |                          ~~~~~~~~~~~~~~~~~^~~
a.cc:79:58: warning: integer overflow in expression of type 'int' results in '-558124416' [-Woverflow]
   79 |       result = result + check_abc(num /(26*26*26*26*26*26*26*26*26*26));
      |                                         ~~~~~~~~~~~~~~~~~^~~
a.cc:80:43: warning: integer overflow in expression of type 'int' results in '-558124416' [-Woverflow]
   80 |   } else if(num / 26 >= (26*26*26*26*26*26*26*26)){
      |                          ~~~~~~~~~~~~~~~~~^~~
a.cc:81:58: warning: integer overflow in expression of type 'int' results in '-558124416' [-Woverflow]
   81 |       result = result + check_abc(num /(26*26*26*26*26*26*26*26*26));
      |                                         ~~~~~~~~~~~~~~~~~^~~
a.cc:82:43: warning: integer overflow in expression of type 'int' results in '-558124416' [-Woverflow]
   82 |   } else if(num / 26 >= (26*26*26*26*26*26*26)){
      |                          ~~~~~~~~~~~~~~~~~^~~
a.cc:83:58: warning: integer overflow in expression of type 'int' results in '-558124416' [-Woverflow]
   83 |       result = result + check_abc(num /(26*26*26*26*26*26*26*26));
      |                                         ~~~~~~~~~~~~~~~~~^~~
a.cc:85:58: warning: integer overflow in expression of type 'int' results in '-558124416' [-Woverflow]
   85 |       result = result + check_abc(num /(26*26*26*26*26*26*26));
      |                                         ~~~~~~~~~~~~~~~~~^~~
a.cc: At global scope:
a.cc:108:3: error: 'cout' does not name a type
  108 |   cout << result;
      |   ^~~~
a.cc:109:5: error: expected unqualified-id before 'return'
  109 |     return 0;
      |     ^~~~~~
a.cc:110:1: error: expected declaration before '}' token
  110 | }
      | ^
a.cc: In function 'char check_abc(int)':
a.cc:61:1: warning: control reaches end of non-void function [-Wreturn-type]
   61 | }
      | ^