Language: C++

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

int main() {
 int64_t N, p;
  string ans;
  ans=""
  vector<string> q;
  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:7:9: error: expected ';' before 'vector'
    7 |   ans=""
      |         ^
      |         ;
    8 |   vector<string> q;
      |   ~~~~~~ 
a.cc:9:3: error: 'q' was not declared in this scope
    9 |   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"};
      |   ^
a.cc:10:13: error: invalid type argument of unary '*' (have 'int')
   10 |   if (N>=27**10) {
      |             ^~~
a.cc:12:19: error: invalid type argument of unary '*' (have 'int')
   12 |       p=(N-(N%(27**(10-i))))/(27**(10-i));
      |                   ^~~~~~~
a.cc:12:34: error: invalid type argument of unary '*' (have 'int')
   12 |       p=(N-(N%(27**(10-i))))/(27**(10-i));
      |                                  ^~~~~~~
a.cc:16:15: error: invalid type argument of unary '*' (have 'int')
   16 |    if ((N>=27**9)&&(N<27**10)) {
      |               ^~
a.cc:16:26: error: invalid type argument of unary '*' (have 'int')
   16 |    if ((N>=27**9)&&(N<27**10)) {
      |                          ^~~
a.cc:18:19: error: invalid type argument of unary '*' (have 'int')
   18 |       p=(N-(N%(27**(9-i))))/(27**(9-i));
      |                   ^~~~~~
a.cc:18:33: error: invalid type argument of unary '*' (have 'int')
   18 |       p=(N-(N%(27**(9-i))))/(27**(9-i));
      |                                 ^~~~~~
a.cc:22:14: error: invalid type argument of unary '*' (have 'int')
   22 |   if ((N>=27**8)&&(N<27**9)) {
      |              ^~
a.cc:22:25: error: invalid type argument of unary '*' (have 'int')
   22 |   if ((N>=27**8)&&(N<27**9)) {
      |                         ^~
a.cc:24:19: error: invalid type argument of unary '*' (have 'int')
   24 |       p=(N-(N%(27**(8-i))))/(27**(8-i));
      |                   ^~~~~~
a.cc:24:33: error: invalid type argument of unary '*' (have 'int')
   24 |       p=(N-(N%(27**(8-i))))/(27**(8-i));
      |                                 ^~~~~~
a.cc:28:14: error: invalid type argument of unary '*' (have 'int')
   28 |   if ((N>=27**7)&&(N<27**8)) {
      |              ^~
a.cc:28:25: error: invalid type argument of unary '*' (have 'int')
   28 |   if ((N>=27**7)&&(N<27**8)) {
      |                         ^~
a.cc:30:19: error: invalid type argument of unary '*' (have 'int')
   30 |       p=(N-(N%(27**(7-i))))/(27**(7-i));
      |                   ^~~~~~
a.cc:30:33: error: invalid type argument of unary '*' (have 'int')
   30 |       p=(N-(N%(27**(7-i))))/(27**(7-i));
      |                                 ^~~~~~
a.cc:34:14: error: invalid type argument of unary '*' (have 'int')
   34 |   if ((N>=27**6)&&(N<27**7)) {
      |              ^~
a.cc:34:25: error: invalid type argument of unary '*' (have 'int')
   34 |   if ((N>=27**6)&&(N<27**7)) {
      |                         ^~
a.cc:36:19: error: invalid type argument of unary '*' (have 'int')
   36 |       p=(N-(N%(27**(6-i))))/(27**(6-i));
      |                   ^~~~~~
a.cc:36:33: error: invalid type argument of unary '*' (have 'int')
   36 |       p=(N-(N%(27**(6-i))))/(27**(6-i));
      |                                 ^~~~~~
a.cc:40:14: error: invalid type argument of unary '*' (have 'int')
   40 |   if ((N>=27**5)&&(N<27**6)) {
      |              ^~
a.cc:40:25: error: invalid type argument of unary '*' (have 'int')
   40 |   if ((N>=27**5)&&(N<27**6)) {
      |                         ^~
a.cc:42:19: error: invalid type argument of unary '*' (have 'int')
   42 |       p=(N-(N%(27**(5-i))))/(27**(5-i));
      |                   ^~~~~~
a.cc:42:33: error: invalid type argument of unary '*' (have 'int')
   42 |       p=(N-(N%(27**(5-i))))/(27**(5-i));
      |                                 ^~~~~~
a.cc:46:14: error: invalid type argument of unary '*' (have 'int')
   46 |   if ((N>=27**4)&&(N<27**5)) {
      |              ^~
a.cc:46:25: error: invalid type argument of unary '*' (have 'int')
   46 |   if ((N>=27**4)&&(N<27**5)) {
      |                         ^~
a.cc:48:19: error: invalid type argument of unary '*' (have 'int')
   48 |       p=(N-(N%(27**(4-i))))/(27**(4-i));
      |                   ^~~~~~
a.cc:48:33: error: invalid type argument of unary '*' (have 'int')
   48 |       p=(N-(N%(27**(4-i))))/(27**(4-i));
      |                                 ^~~~~~
a.cc:52:13: error: invalid type argument of unary '*' (have 'int')
   52 |  if ((N>=27**3)&&(N<27**4)) {
      |             ^~
a.cc:52:24: error: invalid type argument of unary '*' (have 'int')
   52 |  if ((N>=27**3)&&(N<27**4)) {
      |                        ^~
a.cc:54:19: error: invalid type argument of unary '*' (have 'int')
   54 |       p=(N-(N%(27**(3-i))))/(27**(3-i));
      |                   ^~~~~~
a.cc:54:33: error: invalid type argument of unary '*' (have 'int')
   54 |       p=(N-(N%(27**(3-i))))/(27**(3-i));
      |                                 ^~~~~~
a.cc:58:14: error: invalid type argument of unary '*' (have 'int')
   58 |   if ((N>=27**2)&&(N<27**3)) {
      |              ^~
a.cc:58:25: error: invalid type argument of unary '*' (have 'int')
   58 |   if ((N>=27**2)&&(N<27**3)) {
      |                         ^~
a.cc:60:19: error: invalid type argument of unary '*' (have 'int')
   60 |       p=(N-(N%(27**(2-i))))/(27**(2-i));
      |                   ^~~~~~
a.cc:60:33: error: invalid type argument of unary '*' (have 'int')
   60 |       p=(N-(N%(27**(2-i))))/(27**(2-i));
      |                                 ^~~~~~
a.cc:64:22: error: invalid type argument of unary '*' (have 'int')
   64 |   if ((N>=27)&&(N<27**2)) {
      |                      ^~
a.cc:66:19: error: invalid type argument of unary '*' (have 'int')
   66 |       p=(N-(N%(27**(1-i))))/(27**(1-i));
      |                   ^~~~~~
a.cc:66:33: error: invalid type argument of unary '*' (have 'int')
   66 |       p=(N-(N%(27**(1-i))))/(27**(1-i));
      |                                 ^~~~~~