Language: C++

#include <bits/stdc++.h>
typedef long long int ll;

using namespace std;
const double PI = 3.14159265358979323846;

int main()
{

    ll N, M;

    cin >> N;

    char moji;

    vector<char> jisho(26);

    int moji_count = 0;

    for (moji = 'a'; moji <= 'z'; moji++)
    {

        jisho[moji_count] = moji;

        moji_count++;
    }

    M = N - 1;

    ll unit = 26;

    vector<ll> kasu(0);

        while (1)
    {

        unit = unit * 26;

        M = M - unit;

        count++;

        if (M < 0)
        {

            M = M + unit;

            M = M - 1;

            int A = pow(26, count);

            while (1)
            {
                ll ny = M / A;

                kasu.push_back(ny);

                M = M - ny * A;

                A = A / 26;

                if (A == 0)
                {

                    break;
                }
            }
        }
    }

    int am = kasu.size();

    for (int i =0;  i<am; i++)
    {

        cout << jisho[kasu[i]];
    }

    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:41:14: error: no post-increment operator for type
   41 |         count++;
      |              ^~
a.cc:50:24: error: no matching function for call to 'pow(int, <unresolved overloaded function type>)'
   50 |             int A = pow(26, count);
      |                     ~~~^~~~~~~~~~~
In file included from /usr/include/c++/14/valarray:605,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:166,
                 from a.cc:1:
/usr/include/c++/14/bits/valarray_after.h:549:1: note: candidate: 'template<class _Tp> std::_Expr<std::__detail::_BinClos<std::_Pow, std::_Constant, std::_ValArray, _Tp, _Tp>, _Tp> std::pow(const typename valarray<_Tp>::value_type&, const valarray<_Tp>&)'
  549 | _DEFINE_EXPR_BINARY_FUNCTION(pow, struct std::_Pow)
      | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/14/bits/valarray_after.h:549:1: note:   template argument deduction/substitution failed:
a.cc:50:24: note:   couldn't deduce template parameter '_Tp'
   50 |             int A = pow(26, count);
      |                     ~~~^~~~~~~~~~~
/usr/include/c++/14/bits/valarray_after.h:549:1: note: candidate: 'template<class _Tp> std::_Expr<std::__detail::_BinClos<std::_Pow, std::_ValArray, std::_Constant, _Tp, _Tp>, _Tp> std::pow(const valarray<_Tp>&, const typename valarray<_Tp>::value_type&)'
  549 | _DEFINE_EXPR_BINARY_FUNCTION(pow, struct std::_Pow)
      | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/14/bits/valarray_after.h:549:1: note:   template argument deduction/substitution failed:
a.cc:50:24: note:   mismatched types 'const std::valarray<_Tp>' and 'int'
   50 |             int A = pow(26, count);
      |                     ~~~^~~~~~~~~~~
/usr/include/c++/14/bits/valarray_after.h:549:1: note: candidate: 'template<class _Tp> std::_Expr<std::__detail::_BinClos<std::_Pow, std::_ValArray, std::_ValArray, _Tp, _Tp>, _Tp> std::pow(const valarray<_Tp>&, const valarray<_Tp>&)'
  549 | _DEFINE_EXPR_BINARY_FUNCTION(pow, struct std::_Pow)
      | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/14/bits/valarray_after.h:549:1: note:   template argument deduction/substitution failed:
a.cc:50:24: note:   mismatched types 'const std::valarray<_Tp>' and 'int'
   50 |             int A = pow(26, count);
      |                     ~~~^~~~~~~~~~~
/usr/include/c++/14/bits/valarray_after.h:549:1: note: candidate: 'template<class _Dom> std::_Expr<std::__detail::_BinClos<std::_Pow, std::_Constant, std::_Expr, typename _Dom::value_type, _Dom>, typename _Dom::value_type> std::pow(const typename _Dom::value_type&, const _Expr<_Dom1, typename _Dom1::value_type>&)'
  549 | _DEFINE_EXPR_BINARY_FUNCTION(pow, struct std::_Pow)
      | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/14/bits/valarray_after.h:549:1: note:   template argument deduction/substitution failed:
a.cc:50:24: note:   couldn't deduce template parameter '_Dom'
   50 |             int A = pow(26, count);
      |                     ~~~^~~~~~~~~~~
/usr/include/c++/14/bits/valarray_after.h:549:1: note: candidate: 'template<class _Dom> std::_Expr<std::__detail::_BinClos<std::_Pow, std::_Expr, std::_Constant, _Dom, typename _Dom::value_type>, typename _Dom::value_type> std::pow(const _Expr<_Dom1, typename _Dom1::value_type>&, const typename _Dom::value_type&)'
  549 | _DEFINE_EXPR_BINARY_FUNCTION(pow, struct std::_Pow)
      | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/14/bits/valarray_after.h:549:1: note:   template argument deduction/substitution failed:
a.cc:50:24: note:   mismatched types 'const std::_Expr<_Dom1, typename _Dom1::value_type>' and 'int'
   50 |             int A = pow(26, count);
      |                     ~~~^~~~~~~~~~~
/usr/include/c++/14/bits/valarray_after.h:549:1: note: candidate: 'template<class _Dom> std::_Expr<std::__detail::_BinClos<std::_Pow, std::_ValArray, std::_Expr, typename _Dom::value_type, _Dom>, typename _Dom::value_type> std::pow(const valarray<typename _Dom::valarray>&, const _Expr<_Dom1, typename _Dom1::value_type>&)'
  549 | _DEFINE_EXPR_BINARY_FUNCTION(pow, struct std::_Pow)
      | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/14/bits/valarray_after.h:549:1: note:   template argument deduction/substitution failed:
a.cc:50:24: note:   couldn't deduce template parameter '_Dom'
   50 |             int A = pow(26, count);
      |                     ~~~^~~~~~~~~~~
/usr/include/c++/14/bits/valarray_after.h:549:1: note: candidate: 'template<class _Dom> std::_Expr<std::__detail::_BinClos<std::_Pow, std::_Expr, std::_ValArray, _Dom, typename _Dom::value_type>, typename _Dom::value_type> std::pow(const _Expr<_Dom1, typename _Dom1::value_type>&, const valarray<typename _Dom::value_type>&)'
  549 | _DEFINE_EXPR_BINARY_FUNCTION(pow, struct std::_Pow)
      | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/14/bits/valarray_after.h:549:1: note:   template argument deduction/substitution failed:
a.cc:50:24: note:   mismatched types 'const std::_Expr<_Dom1, typename _Dom1::value_type>' and 'int'
   50 |             int A = pow(26, count);
      |                     ~~~^~~~~~~~~~~
/usr/include/c++/14/bits/valarray_after.h:549:1: note: candidate: 'template<class _Dom1, class _Dom2> std::_Expr<std::__detail::_BinClos<std::_Pow, std::_Expr, std::_Expr, _Dom1, _Dom2>, typename _Dom1::value_type> std::pow(const _Expr<_Dom1, typename _Dom1::value_type>&, const _Expr<_Dom2, typename _Dom2::value_type>&)'
  549 | _DEFINE_EXPR_BINARY_FUNCTION(pow, struct std::_Pow)
      | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/14/bits/valarray_after.h:549:1: note:   template argument deduction/substitution failed:
a.cc:50:24: note:   mismatched types 'const std::_Expr<_Dom1, typename _Dom1::value_type>' and 'int'
   50 |             int A = pow(26, count);
      |                     ~~~^~~~~~~~~~~
In file included from /usr/include/c++/14/ccomplex:39,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:127:
/usr/include/c++/14/complex:2482:5: note: candidate: 'template<class _Tp, class _Up> std::complex<typename __gnu_cxx::__promote<decltype (((typename __gnu_cxx::__promote<_Tp, std::__is_integer<_Tp>::__value>::__type)(0) + (typename __gnu_cxx::__promote<_Up, std::__is_integer<_Up>::__value>::__type)(0)))>::__type> std::pow(const complex<_Tp>&, const complex<_Up>&)'
 2482 |     pow(const std::complex<_Tp>& __x, const std::complex<_Up>& __y)
      |     ^~~
/usr/include/c++/14/complex:2482:5: note:   template argument deduction/substitution failed:
a.cc:50:24: note:   mismatched types 'const std::complex<_Tp>' and 'int'
   50 |             int A = pow(26, count);
      |                     ~~~^~~~~~~~~~~
/usr/include/c++/14/complex:2474:5: note: candidate: 'template<class _Tp, class _Up> std::complex<typename __gnu_cxx::__promote<decltype (((typename __gnu_cxx::__promote<_Tp, std::__is_integer<_Tp>::__value>::__type)(0) + (typename __gnu_cxx::__promote<_Up, std::__is_integer<_Up>::__value>::__type)(0)))>::__type> std::pow(const _Tp&, const complex<_Up>&)'
 2474 |     pow(const _Tp& __x, const std::complex<_Up>& __y)
      |     ^~~
/usr/include/c++/14/complex:2474:5: note:   template argument deduction/substitution failed:
a.cc:50:24: note:   couldn't deduce template parameter '_Up'
   50 |             int A = pow(26, count);
      |                     ~~~^~~~~~~~~~~
/usr/include/c++/14/complex:2466:5: note: candidate: 'template<class _Tp, class _Up> std::complex<typename __gnu_cxx::__promote<decltype (((typename __gnu_cxx::__promote<_Tp, std::__is_integer<_Tp>::__value>::__type)(0) + (typename __gnu_cxx::__promote<_Up, std::__is_integer<_Up>::__value>::__type)(0)))>::__type> std::pow(const complex<_Tp>&, const _Up&)'
 2466 |     pow(const std::complex<_Tp>& __x, const _Up& __y)
      |     ^~~
/usr/include/c++/14/complex:2466:5: note:   template argument deduction/substitution failed:
a.cc:50:24: note:   mismatched types 'const std::complex<_Tp>' and 'int'
   50 |             int A = pow(26, count);
      |                     ~~~^~~~~~~~~~~
/usr/include/c++/14/complex:1339:5: note: candidate: 'std::complex<_Tp> std::pow(const _Tp&, const complex<_Tp>&) [with _Tp = int]'
 1339 |     pow(const _Tp& __x, const complex<_Tp>& __y)
      |     ^~~
/usr/include/c++/14/complex:1339:45: note:   no known conversion for argument 2 from '<unresolved overloaded function type>' to 'const std::complex<int>&'
 1339 |     pow(const _Tp& __x, const complex<_Tp>& __y)
      |                         ~~~~~~~~~~~~~~~~~~~~^~~
/usr/include/c++/14/complex:1328:5: note: candidate: 'template<class _Tp> std::complex<_Tp> std::pow(const complex<_Tp>&, const complex<_Tp>&)'
 1328 |     pow(const complex<_Tp>& __x, const complex<_Tp>& __y)
      |     ^~~
/usr/include/c++/14/complex:1328:5: note:   template argument deduction/substitution failed:
a.cc:50:24: note:   mismatched types 'const std::complex<_Tp>' and 'int'
   50 |             int A = pow(26, count);
      |                     ~~~^~~~~~~~~~~
/usr/include/c++/14/complex:1294:5: note: candidate: 'template<class _Tp> std::complex<_Tp> std::pow(const complex<_Tp>&, const _Tp&)'
 1294 |     pow(const complex<_Tp>& __x, const _Tp& __y)
      |     ^~~
/usr/include/c++/14/complex:1294:5: note:   template argument deduction/substitution failed:
a.cc:50:24: note:   mismatched types 'const std::complex<_Tp>' and 'int'
   50 |             int A = pow(26, count);
      |                     ~~~^~~~~~~~~~~
/usr/include/c++/14/complex:1285:5: note: candidate: 'template<class _Tp> std::complex<_Tp> std::pow(const complex<_Tp>&, int)'
 1285 |     pow(const complex<_Tp>& __z, int __n)
      |     ^~~
/usr/include/c++/14/complex:1285:5: note:   template argument deduction/substitution failed:
a.cc:50:24: note:   mismatched types 'const std::complex<_Tp>' and 'int'
   50 |             int A = pow(26, count);
      |                     ~~~^~~~~~~~~~~
In file included from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:114:
/usr/include/c++/14/cmath:1074:5: note: candidate: 'template<class _Tp, class _Up> constexpr typename __gnu_cxx::__promote_2<_Tp, _Up>::__type std::pow(_Tp, _Up)'
 1074 |     pow(_Tp __x, _Up __y)
      |     ^~~
/usr/include/c++/14/cmath:1074:5: note:   template argument deduction/substitution