Language: C++

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

int main() {
 int64_t N, p;
  string ans;
  ans="";
  vector<string> q = {"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**10) {
    for (int i = 0; i <11; i++) {
      p=(N-(N%(27**(10-i))))/(27**(10-i));
      ans = ans + q.at(p-1);
    }
  }
   if ((N>=27**9)&&(N<27**10)) {
    for (int i = 0; i <10; i++) {
      p=(N-(N%(27**(9-i))))/(27**(9-i));
      ans = ans + q.at(p-1);
    }
  }
  if ((N>=27**8)&&(N<27**9)) {
    for (int i = 0; i <9; i++) {
      p=(N-(N%(27**(8-i))))/(27**(8-i));
      ans = ans + q.at(p-1);
    }
  }
  if ((N>=27**7)&&(N<27**8)) {
    for (int i = 0; i <8; i++) {
      p=(N-(N%(27**(7-i))))/(27**(7-i));
      ans = ans + q.at(p-1);
    }
  }
  if ((N>=27**6)&&(N<27**7)) {
    for (int i = 0; i <7; i++) {
      p=(N-(N%(27**(6-i))))/(27**(6-i));
      ans = ans + q.at(p-1);
    }
  }
  if ((N>=27**5)&&(N<27**6)) {
    for (int i = 0; i <6; i++) {
      p=(N-(N%(27**(5-i))))/(27**(5-i));
      ans = ans + q.at(p-1);
    }
  }
  if ((N>=27**4)&&(N<27**5)) {
    for (int i = 0; i <5; i++) {
      p=(N-(N%(27**(4-i))))/(27**(4-i));
      ans = ans + q.at(p-1);
    }
  }
 if ((N>=27**3)&&(N<27**4)) {
    for (int i = 0; i <4; i++) {
      p=(N-(N%(27**(3-i))))/(27**(3-i));
      ans = ans + q.at(p-1);
    }
  }
  if ((N>=27**2)&&(N<27**3)) {
    for (int i = 0; i <3; i++) {
      p=(N-(N%(27**(2-i))))/(27**(2-i));
      ans = ans + q.at(p-1);
    }
  }
  if ((N>=27)&&(N<27**2)) {
    for (int i = 0; i <2; i++) {
      p=(N-(N%(27**(1-i))))/(27**(1-i));
      ans = ans + q.at(p-1);
    }
  }
  if ((N>=1)&&(N<27)) {
    ans = q.at(N-1)
  }
  cout << ans << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:9:13: error: invalid type argument of unary '*' (have 'int')
    9 |   if (N>=27**10) {
      |             ^~~
a.cc:11:19: error: invalid type argument of unary '*' (have 'int')
   11 |       p=(N-(N%(27**(10-i))))/(27**(10-i));
      |                   ^~~~~~~
a.cc:11:34: error: invalid type argument of unary '*' (have 'int')
   11 |       p=(N-(N%(27**(10-i))))/(27**(10-i));
      |                                  ^~~~~~~
a.cc:15:15: error: invalid type argument of unary '*' (have 'int')
   15 |    if ((N>=27**9)&&(N<27**10)) {
      |               ^~
a.cc:15:26: error: invalid type argument of unary '*' (have 'int')
   15 |    if ((N>=27**9)&&(N<27**10)) {
      |                          ^~~
a.cc:17:19: error: invalid type argument of unary '*' (have 'int')
   17 |       p=(N-(N%(27**(9-i))))/(27**(9-i));
      |                   ^~~~~~
a.cc:17:33: error: invalid type argument of unary '*' (have 'int')
   17 |       p=(N-(N%(27**(9-i))))/(27**(9-i));
      |                                 ^~~~~~
a.cc:21:14: error: invalid type argument of unary '*' (have 'int')
   21 |   if ((N>=27**8)&&(N<27**9)) {
      |              ^~
a.cc:21:25: error: invalid type argument of unary '*' (have 'int')
   21 |   if ((N>=27**8)&&(N<27**9)) {
      |                         ^~
a.cc:23:19: error: invalid type argument of unary '*' (have 'int')
   23 |       p=(N-(N%(27**(8-i))))/(27**(8-i));
      |                   ^~~~~~
a.cc:23:33: error: invalid type argument of unary '*' (have 'int')
   23 |       p=(N-(N%(27**(8-i))))/(27**(8-i));
      |                                 ^~~~~~
a.cc:27:14: error: invalid type argument of unary '*' (have 'int')
   27 |   if ((N>=27**7)&&(N<27**8)) {
      |              ^~
a.cc:27:25: error: invalid type argument of unary '*' (have 'int')
   27 |   if ((N>=27**7)&&(N<27**8)) {
      |                         ^~
a.cc:29:19: error: invalid type argument of unary '*' (have 'int')
   29 |       p=(N-(N%(27**(7-i))))/(27**(7-i));
      |                   ^~~~~~
a.cc:29:33: error: invalid type argument of unary '*' (have 'int')
   29 |       p=(N-(N%(27**(7-i))))/(27**(7-i));
      |                                 ^~~~~~
a.cc:33:14: error: invalid type argument of unary '*' (have 'int')
   33 |   if ((N>=27**6)&&(N<27**7)) {
      |              ^~
a.cc:33:25: error: invalid type argument of unary '*' (have 'int')
   33 |   if ((N>=27**6)&&(N<27**7)) {
      |                         ^~
a.cc:35:19: error: invalid type argument of unary '*' (have 'int')
   35 |       p=(N-(N%(27**(6-i))))/(27**(6-i));
      |                   ^~~~~~
a.cc:35:33: error: invalid type argument of unary '*' (have 'int')
   35 |       p=(N-(N%(27**(6-i))))/(27**(6-i));
      |                                 ^~~~~~
a.cc:39:14: error: invalid type argument of unary '*' (have 'int')
   39 |   if ((N>=27**5)&&(N<27**6)) {
      |              ^~
a.cc:39:25: error: invalid type argument of unary '*' (have 'int')
   39 |   if ((N>=27**5)&&(N<27**6)) {
      |                         ^~
a.cc:41:19: error: invalid type argument of unary '*' (have 'int')
   41 |       p=(N-(N%(27**(5-i))))/(27**(5-i));
      |                   ^~~~~~
a.cc:41:33: error: invalid type argument of unary '*' (have 'int')
   41 |       p=(N-(N%(27**(5-i))))/(27**(5-i));
      |                                 ^~~~~~
a.cc:45:14: error: invalid type argument of unary '*' (have 'int')
   45 |   if ((N>=27**4)&&(N<27**5)) {
      |              ^~
a.cc:45:25: error: invalid type argument of unary '*' (have 'int')
   45 |   if ((N>=27**4)&&(N<27**5)) {
      |                         ^~
a.cc:47:19: error: invalid type argument of unary '*' (have 'int')
   47 |       p=(N-(N%(27**(4-i))))/(27**(4-i));
      |                   ^~~~~~
a.cc:47:33: error: invalid type argument of unary '*' (have 'int')
   47 |       p=(N-(N%(27**(4-i))))/(27**(4-i));
      |                                 ^~~~~~
a.cc:51:13: error: invalid type argument of unary '*' (have 'int')
   51 |  if ((N>=27**3)&&(N<27**4)) {
      |             ^~
a.cc:51:24: error: invalid type argument of unary '*' (have 'int')
   51 |  if ((N>=27**3)&&(N<27**4)) {
      |                        ^~
a.cc:53:19: error: invalid type argument of unary '*' (have 'int')
   53 |       p=(N-(N%(27**(3-i))))/(27**(3-i));
      |                   ^~~~~~
a.cc:53:33: error: invalid type argument of unary '*' (have 'int')
   53 |       p=(N-(N%(27**(3-i))))/(27**(3-i));
      |                                 ^~~~~~
a.cc:57:14: error: invalid type argument of unary '*' (have 'int')
   57 |   if ((N>=27**2)&&(N<27**3)) {
      |              ^~
a.cc:57:25: error: invalid type argument of unary '*' (have 'int')
   57 |   if ((N>=27**2)&&(N<27**3)) {
      |                         ^~
a.cc:59:19: error: invalid type argument of unary '*' (have 'int')
   59 |       p=(N-(N%(27**(2-i))))/(27**(2-i));
      |                   ^~~~~~
a.cc:59:33: error: invalid type argument of unary '*' (have 'int')
   59 |       p=(N-(N%(27**(2-i))))/(27**(2-i));
      |                                 ^~~~~~
a.cc:63:22: error: invalid type argument of unary '*' (have 'int')
   63 |   if ((N>=27)&&(N<27**2)) {
      |                      ^~
a.cc:65:19: error: invalid type argument of unary '*' (have 'int')
   65 |       p=(N-(N%(27**(1-i))))/(27**(1-i));
      |                   ^~~~~~
a.cc:65:33: error: invalid type argument of unary '*' (have 'int')
   65 |       p=(N-(N%(27**(1-i))))/(27**(1-i));
      |                                 ^~~~~~
a.cc:70:20: error: expected ';' before '}' token
   70 |     ans = q.at(N-1)
      |                    ^
      |                    ;
   71 |   }
      |   ~