criyle/codenet-compile-errors huggingface dataset:
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 = 1;

    ll = total_unit = 0;

    ll count = 0;

    string kasu;

    while (1)
    {
        unit = unit * 26;
        count++;

        total_unit += unit;

        if (total_unit >= N)
        {

            ll M = N - (total_unit - unit) - 1;

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

                ll b = M % 26;

                kasu.push_back('a' +b);
                M = M / 26;
            }

            break;
        }
    }

    reverse(kasu.begin(), kasu.end());

    cout << kasu << endl;

    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:32:8: error: expected unqualified-id before '=' token
   32 |     ll = total_unit = 0;
      |        ^
a.cc:43:9: error: 'total_unit' was not declared in this scope
   43 |         total_unit += unit;
      |         ^~~~~~~~~~
Language: Java

mport java.util.*;
import java.io.*;
public class Main{
	public static void main(String[] args) throws Exception
	{
		InputStreamReader ib=new InputStreamReader(System.in);
		BufferedReader br=new BufferedReader(ib);
		int n=Integer.parseInt(br.readLine());
		List<Long> li=new ArrayList<Long>();
		Quadrillion(n);
		
		
	}
	public static void Quadrillion(int n)
	{
		StringBuffer sb=new StringBuffer();
		while(n>0)
		{
			int x=n%26;
			if(x==0)
			{
				sb.append('z');
				n=n/26-1;
			}
			else
			{
				sb.append((char)((x-1)+'a'));
				n=n/26;
			}
		}
		System.out.println(sb.reverse());
	}

}


Compiler output:
Main.java:1: error: class, interface, enum, or record expected
mport java.util.*;
^
Main.java:2: error: class, interface, enum, or record expected
import java.io.*;
^
2 errors
Language: C++

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

int main()
{
  long long N;cin >> N;
  int num[10];

  for(int i = 9; i >= 0; --i){
    long long tmp = N;
    int cnt=0;
    int r;
    tmp /= pow(26, i);
    r = tmp % pow(26, i);
    while(tmp != 0){
      cnt++;
      tmp /= pow(26, i);

    }
    num[i] = cnt;
    tmp = r;
  }
  int j=9;
  while(num[j] != 0){
    j--;
  }
  for(int i = j; i >= 0; i--){
    printf("%c", 'a' + num[i]); 
  }
  
      
  return 0; 
}


Compiler output:
a.cc: In function 'int main()':
a.cc:14:13: error: invalid operands of types 'long long int' and '__gnu_cxx::__promote<double>::__type' {aka 'double'} to binary 'operator%'
   14 |     r = tmp % pow(26, i);
      |         ~~~ ^ ~~~~~~~~~~
      |         |        |
      |         |        __gnu_cxx::__promote<double>::__type {aka double}
      |         long long int
Language: C++

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

int main()
{
  long long N;cin >> N;
  int num[10];

  for(int i = 9; i >= 0; --i){
    long long tmp = N;
    int cnt=0;
    int r;
    tmp /= pow(26, i);
    r = tmp % pow(26,i);
    while(tmp != 0){
      cnt++;
      tmp /= pow(26, i);

    }
    num[i] = cnt;
    tmp = r;
  }
  int j=9;
  while(num[j] != 0){
    j--;
  }
  for(int i = j; i >= 0; i--){
    printf("", 'a' + num[i]); 
  }
  
      
  return 0; 
}


Compiler output:
a.cc: In function 'int main()':
a.cc:14:13: error: invalid operands of types 'long long int' and '__gnu_cxx::__promote<double>::__type' {aka 'double'} to binary 'operator%'
   14 |     r = tmp % pow(26,i);
      |         ~~~ ^ ~~~~~~~~~
      |         |        |
      |         |        __gnu_cxx::__promote<double>::__type {aka double}
      |         long long int
Language: C++

#include <vector>
#include <cmath>
#include <algorithm>
#include <string>

using namespace std;

int main(){
    int N;
    cin >> N;
    string res="";
    int i=0;
    while(N){
        --N;
        res+=(char)('a'+(N%26));
        N/=26;
    }
    reverse(res.begin(),res.end());
    cout<<res;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:5: error: 'cin' was not declared in this scope
   10 |     cin >> N;
      |     ^~~
a.cc:5:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
    4 | #include <string>
  +++ |+#include <iostream>
    5 | 
a.cc:19:5: error: 'cout' was not declared in this scope
   19 |     cout<<res;
      |     ^~~~
a.cc:19:5: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
Language: Java

import java.util.*;
public class Main11{
  public static void main(String[] args)
  {
    Scanner sc=new Scanner(System.in);
long n=sc.nextLong();
     String s="abcdefghijklmnopqrstuvwxyz";
     char[] c=s.toCharArray();
   StringBuilder s1=new StringBuilder();
     while(n>0)
     {
       int x=(int)n%26;
    //System.out.println(n);
       if(x!=0)
       {
           s1.append(c[x-1]);
         
         n=n/26;
        
       }
       else
      {
         s1.append(c[25]);
          n=n/26;
	 n=n-1;
      }
       
      
     }
 s1.reverse();
   System.out.println(s1);
  }
}
            

Compiler output:
Main.java:2: error: class Main11 is public, should be declared in a file named Main11.java
public class Main11{
       ^
1 error
Language: C++


#include<iostream>
#include <string.h>
#include<stdio.h>
#include <vector>
#include <math.h>

using namespace std;
#define rep(i,n) for (int i = 0; i < (n); ++i)


int main(){
	long long int N;
	cin >> N;
	string ans;
	while (N) {
		N--;
		ans += 'a' + N % 26;
		N /= 26;

	}
	reverse(ans.begin(), ans.end());
	cout << ans << endl;

return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:22:9: error: 'reverse' was not declared in this scope
   22 |         reverse(ans.begin(), ans.end());
      |         ^~~~~~~
Language: Java

import java.util.*;

  
public class D{
    public static void main(final String[] args){
       
        final Scanner sc = new Scanner(System.in);

        String abc = "abcdefghijklmnopqrstuvwxyz";
        Long alf = 26l;
        Long N = sc.nextLong();
        String ans = "";

        for(;N>0;){
            Long Num = N-1;
            int tStr = (int)(Num%alf);
            ans = abc.substring(tStr,tStr+1)+ans;
            N =  Num/alf;
        }
        System.out.println(ans);
    }
}

Compiler output:
Main.java:4: error: class D is public, should be declared in a file named D.java
public class D{
       ^
1 error
Language: C++

int main()
{
    long long int n;
    cin>>n;
    int t;
    string ans="";
     n--;
    while(n>=26)
    {
        t=n%26;
       
        
      
        n=n/26;
        ans+=('a'+t);
      n--;
    }
   
    ans+=('a'+n);
    long long int len=ans.length();
    string res="";
    for(long long int i=len-1;i>=0;i--)
    {
        res=res+ans[i];
    }
    cout<<res;
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:4:5: error: 'cin' was not declared in this scope
    4 |     cin>>n;
      |     ^~~
a.cc:6:5: error: 'string' was not declared in this scope
    6 |     string ans="";
      |     ^~~~~~
a.cc:15:9: error: 'ans' was not declared in this scope
   15 |         ans+=('a'+t);
      |         ^~~
a.cc:19:5: error: 'ans' was not declared in this scope
   19 |     ans+=('a'+n);
      |     ^~~
a.cc:21:11: error: expected ';' before 'res'
   21 |     string res="";
      |           ^~~~
      |           ;
a.cc:24:9: error: 'res' was not declared in this scope
   24 |         res=res+ans[i];
      |         ^~~
a.cc:26:5: error: 'cout' was not declared in this scope
   26 |     cout<<res;
      |     ^~~~
a.cc:26:11: error: 'res' was not declared in this scope
   26 |     cout<<res;
      |           ^~~
Language: C++

#include <bits/stdc++.h>
#include<iostream>
#include <ctype.h>
#include <sstream>
using namespace std;
using Graph = vector<vector<int>>;
#define  itn int
using ll=int64_t;
#define rep(i,n) for (int i = 0; i < (int) (n); i++)
using vi = vector<int>;
using vll = vector<ll>;
//GCD
long long gcd(long long a, long long b)
{if(a<b) swap(a,b);
   if (a%b == 0){return(b);}
   else{return(gcd(b, a%b));}
}
//lcm
long long lcm(long long a, long long b)
{return a * b / gcd(a, b);}

long long bikkuri(long long k){
    long long sum = 1;
    for (long long i = 1; i <= k; ++i)
    {
        sum *= i;
    }
    return sum;
}
int main() {
ll n;
cin>>n;
string ans = "";
while(n>0){n--;ans+=char('a'+n%26);n/=26;}
reverse.ans;
cout<<ans;

}


Compiler output:
a.cc: In function 'int main()':
a.cc:35:9: error: overloaded function with no contextual type information
   35 | reverse.ans;
      |         ^~~
Language: C++

#include <iostream>
#include <vector>
#include <deque>
#include <algorithm>
#include <numeric>
#include <string>
#include <cstring>
#include <list>
#include <unordered_set>
#include <tuple>
#include <cmath>
#include <limits>
#include <type_traits>
#include <iomanip>
#include <map>
#include <unordered_map>
#include <queue>
#include <stack>
#include <set>
#include <bitset>
#include <regex>
#include <random>
#include<bits/stdc++.h>
using namespace std;

typedef long long ll;
#define rep(i,n)for(ll i=0;i<n;++i)
#define exout(x) printf("%.10f\n", x)
const double pi = acos(-1.0);
const ll MOD = 1000000007;
const ll INF = 1e16;
const ll MAX_N = 1010;

//最大公約数
ll gcd(ll x, ll y) {
	return y ? gcd(y, x % y) : x;
}

ll lcm(ll x, ll y) {
	if (x == 0 || y == 0)return 0;
	return (x / gcd(x, y) * y);
}

//組み合わせの余りを求める
ll fac[MAX_N], finv[MAX_N], inv[MAX_N];
void COMinit() {
	fac[0] = fac[1] = 1;
	finv[0] = finv[1] = 1;
	inv[1] = 1;
	for (int i = 2; i < MAX_N; i++) {
		fac[i] = fac[i - 1] * i % MOD;
		inv[i] = MOD - inv[MOD % i] * (MOD / i) % MOD;
		finv[i] = finv[i - 1] * inv[i] % MOD;
	}
}

// 二項係数計算
long long COM(ll n, ll k) {
	if (n < k) return 0;
	if (n < 0 || k < 0) return 0;
	return fac[n] * (finv[k] * finv[n - k] % MOD) % MOD;
}

ll dx[4] = { 0,0,-1,1 };
ll dy[4] = { -1,1,0,0 };
ll dp[101010];

//long longしか使わない
//素数は1より大きい
int main() {
	ll n;
	cin >> n;
	string ans;
	while (n) {
		n--;
		ans += 'a' + n % 26;
		n /= 26;
	}
	reverse(ans.begin, ans.end());
	cout << ans << endl;
	return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:79:16: error: no matching function for call to 'reverse(<unresolved overloaded function type>, std::__cxx11::basic_string<char>::iterator)'
   79 |         reverse(ans.begin, ans.end());
      |         ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/c++/14/algorithm:61,
                 from a.cc:4:
/usr/include/c++/14/bits/stl_algo.h:1083:5: note: candidate: 'void std::reverse(_BIter, _BIter) [with _BIter = __gnu_cxx::__normal_iterator<char*, __cxx11::basic_string<char> >]'
 1083 |     reverse(_BidirectionalIterator __first, _BidirectionalIterator __last)
      |     ^~~~~~~
/usr/include/c++/14/bits/stl_algo.h:1083:36: note:   no known conversion for argument 1 from '<unresolved overloaded function type>' to '__gnu_cxx::__normal_iterator<char*, std::__cxx11::basic_string<char> >'
 1083 |     reverse(_BidirectionalIterator __first, _BidirectionalIterator __last)
      |             ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~
In file included from /usr/include/c++/14/algorithm:86:
/usr/include/c++/14/pstl/glue_algorithm_defs.h:249:1: note: candidate: 'template<class _ExecutionPolicy, class _BidirectionalIterator> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, void> std::reverse(_ExecutionPolicy&&, _BidirectionalIterator, _BidirectionalIterator)'
  249 | reverse(_ExecutionPolicy&& __exec, _BidirectionalIterator __first, _BidirectionalIterator __last);
      | ^~~~~~~
/usr/include/c++/14/pstl/glue_algorithm_defs.h:249:1: note:   candidate expects 3 arguments, 2 provided
Language: C++


#include <bits/stdc++.h>
#include<iostream>
#include <ctype.h>
#include <sstream>
using namespace std;
using Graph = vector<vector<int>>;
#define  itn int
using ll=int64_t;
#define rep(i,n) for (int i = 0; i < (int) (n); i++)
using vi = vector<int>;
using vll = vector<ll>;
//GCD
long long gcd(long long a, long long b)
{if(a<b) swap(a,b);
   if (a%b == 0){return(b);}
   else{return(gcd(b, a%b));}
}
//lcm
long long lcm(long long a, long long b)
{return a * b / gcd(a, b);}

long long bikkuri(long long k){
    long long sum = 1;
    for (long long i = 1; i <= k; ++i)
    {
        sum *= i;
    }
    return sum;
}
int main() {
ll n;
cin>>n;
string ans = "";
while(n>0){n--;ans+=char('a'+n%26);n/=26;}
reverse ans;
cout<<ans;

}

Compiler output:
a.cc: In function 'int main()':
a.cc:36:8: error: expected ';' before 'ans'
   36 | reverse ans;
      |        ^~~~
      |        ;
a.cc:36:12: error: statement cannot resolve address of overloaded function
   36 | reverse ans;
      |            ^
Language: Java

long n = in.nextLong();

StringBuilder answer = new StringBuilder();
while (n > 0) {
    n--;
    answer.append((char) ('a' + n % 26));
    n /= 26;
}

out.println(answer.reverse());

Compiler output:
Main.java:1: error: unnamed classes are a preview feature and are disabled by default.
long n = in.nextLong();
^
  (use --enable-preview to enable unnamed classes)
Main.java:4: error: class, interface, enum, or record expected
while (n > 0) {
^
Main.java:6: error: class, interface, enum, or record expected
    answer.append((char) ('a' + n % 26));
    ^
Main.java:7: error: class, interface, enum, or record expected
    n /= 26;
    ^
Main.java:8: error: class, interface, enum, or record expected
}
^
5 errors
Language: Java

import java.util.Scanner;
public class onesevenonec{
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        Long n = sc.nextLong();
StringBuilder sb = new StringBuilder();

while(n-->0){
    sb.append((char)('a'+n%26));
    n/=26;
}sb.reverse();
System.out.println(sb.toString());

        sc.close();
    }
}

Compiler output:
Main.java:2: error: class onesevenonec is public, should be declared in a file named onesevenonec.java
public class onesevenonec{
       ^
1 error
Language: C++

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

string generate(int i) {
	return (i < 0 ? "" : solveUtil((i / 26) - 1) + (char)(65 + i % 26)) ;
}
 
void solve() {
	int n ;
	cin >> n ;
	string ans = generate(n - 1) ;
	for(char &ch : ans) {
        cout << tolower(ch) ;
    }
}

int main () {
   ios_base::sync_with_stdio(false) ;
   cin.tie(NULL) ;
   cout.tie(NULL) ;
   int tc = 1 ;
   //cin >> tc ;
   for (int i = 1 ; i <= tc ; ++i) {
      solve(i) ;
   }
}


Compiler output:
a.cc: In function 'std::string generate(int)':
a.cc:5:30: error: 'solveUtil' was not declared in this scope
    5 |         return (i < 0 ? "" : solveUtil((i / 26) - 1) + (char)(65 + i % 26)) ;
      |                              ^~~~~~~~~
a.cc: In function 'int main()':
a.cc:24:12: error: too many arguments to function 'void solve()'
   24 |       solve(i) ;
      |       ~~~~~^~~
a.cc:8:6: note: declared here
    8 | void solve() {
      |      ^~~~~
Language: C++


int main()
{
    long long int n;
    cin>>n;
    int t;
    string ans="";
     n--;
    while(n>=26)
    {
        t=n%26;
       
        
      
        n=n/26;
        ans+=('a'+t);
      n--;
    }
   
    ans+=('a'+n);
    long long int len=ans.length();
    string res;
    for(long long int i=len-1;i>=0;i--)
    {
        res.push_back(ans[i]);
    }
    cout<<res;
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:5: error: 'cin' was not declared in this scope
    5 |     cin>>n;
      |     ^~~
a.cc:7:5: error: 'string' was not declared in this scope
    7 |     string ans="";
      |     ^~~~~~
a.cc:16:9: error: 'ans' was not declared in this scope
   16 |         ans+=('a'+t);
      |         ^~~
a.cc:20:5: error: 'ans' was not declared in this scope
   20 |     ans+=('a'+n);
      |     ^~~
a.cc:22:11: error: expected ';' before 'res'
   22 |     string res;
      |           ^~~~
      |           ;
a.cc:25:9: error: 'res' was not declared in this scope
   25 |         res.push_back(ans[i]);
      |         ^~~
a.cc:27:5: error: 'cout' was not declared in this scope
   27 |     cout<<res;
      |     ^~~~
a.cc:27:11: error: 'res' was not declared in this scope
   27 |     cout<<res;
      |           ^~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
#define ll long long
#define double long double
#define rep(i, n) for (int i = 0; i < n; i++)
#include <math.h> /* M_PI */
#define INF 2147483647
int main()
{
    ll n;
    cin >> n;
    string s;
    vector<char> data(26);
    vector<double> ruiseki;
    rep(i, 26)
    {
        data[i] = 'a' + i;
    }
    //vector<double> ruiseki2;
    ll h = 1;
    ll f = 0;
    while (h < n)
    {
        h *= 26; //格納する最大値
        ruiseki.push_back(h + f);
        f = h + f;
    }
    ll k = ruiseki.size();

    /*ruiseki2.resize(k);
    ruiseki2[0] = ruiseki[0];
    rep(i, k - 1)
    {
        ruiseki2[i + 1] += ruiseki[i + 1] + ruiseki2[i];
    }*/
    //nがk-1番目にある。
    //k-2番目までには何個の数が入っているかはruiseki2[k-2]
    ll N = n;
    if (k != 1)
    {
        N = n - ruiseki[k - 2];
    }

   
    while (N != 0)
    {

        ll g = N % 26;
        g -= 1;
        if (i == 0)
        {
            s = data[g] + s;
        }
        else
        {
            s = data[g + 1] + s;
        }
        i++;
        N /= 26;
    }

    rep(i, k - s.size())
    {
        s = 'a' + s;

    } //k桁まであるということを忘れないでほしい

    cout << s << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:50:13: error: 'i' was not declared in this scope
   50 |         if (i == 0)
      |             ^
a.cc:58:9: error: 'i' was not declared in this scope
   58 |         i++;
      |         ^
Language: C++

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

ll func(ll n){
  ll cnt=1;
  ll c = 26,cc = 26;
  while(c < n){
    cc *= 26;
    c += cc;
    cnt++;
  }
  
  return ans;
}

int main(){
  ll n;
  cin >> n;
  int keta = func(n);
  vector<int> v(keta);
  n--;
  
  for(int i=0;i<keta;i++){
    v.at(i) = n%26;
    n -= a.at(i);
    n /= 26;
    v.at(i)++;
  }
  
  for(int i= keta-1;i>=0;i--){
    if(v.at(i) == 1) cout << 'a';
    else if(v.at(i) == 2) cout << 'b';
    else if(v.at(i) == 3) cout << 'c';
    else if(v.at(i) == 4) cout << 'd';
    else if(v.at(i) == 5) cout << 'e';
    else if(v.at(i) == 6) cout << 'f';
    else if(v.at(i) == 7) cout << 'g';
    else if(v.at(i) == 8) cout << 'h';
    else if(v.at(i) == 9) cout << 'i';
    else if(v.at(i) == 10) cout << 'j';
    else if(v.at(i) == 11) cout << 'k';
    else if(v.at(i) == 12) cout << 'l';
    else if(v.at(i) == 13) cout << 'm';
    else if(v.at(i) == 14) cout << 'n';
    else if(v.at(i) == 15) cout << 'o';
    else if(v.at(i) == 16) cout << 'p';
    else if(v.at(i) == 17) cout << 'q';
    else if(v.at(i) == 18) cout << 'r';
    else if(v.at(i) == 19) cout << 's';
    else if(v.at(i) == 20) cout << 't';
    else if(v.at(i) == 21) cout << 'u';
    else if(v.at(i) == 22) cout << 'v';
    else if(v.at(i) == 23) cout << 'w';
    else if(v.at(i) == 24) cout << 'x';
    else if(v.at(i) == 25) cout << 'y';
    else if(v.at(i) == 26) cout << 'z';
  }
  cout << endl;
     
  return 0;
}


Compiler output:
a.cc: In function 'll func(ll)':
a.cc:14:10: error: 'ans' was not declared in this scope; did you mean 'abs'?
   14 |   return ans;
      |          ^~~
      |          abs
a.cc: In function 'int main()':
a.cc:26:10: error: 'a' was not declared in this scope
   26 |     n -= a.at(i);
      |          ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(){
int n ;
cin >> n;
vector <int>num(0);

while(n>26){
//cout << n<<endl;
num.push_back(n%26);
n /= 26;

}
num.push_back(n);

int numl =num.size();
int i =numl -1;
//cout << "numのサイズ"<<numl<<endl;
  

while(i>=0){
char k = num.at(i)+96;
cout << k;
i--;
}



Compiler output:
a.cc: In function 'int main()':
a.cc:25:2: error: expected '}' at end of input
   25 | }
      |  ^
a.cc:3:11: note: to match this '{'
    3 | int main(){
      |           ^
Language: C++

#include <iostream>
#include <cmath>
#include <string>
#include <vector>
#include <algorithm>
#include <cstdio>
#include <math.h>
#include <iomanip>
#include <bitset>
#include <cstring>
#include <stdlib.h>
#include <utility>
#include <set>
#include <map>
#include <string.h>
#include <cstring>
#include <queue>
#include <stack>
 

using namespace std;

char nth_letter(long long n)
{
    assert(n >= 1 && n <= 26);
    return "abcdefghijklmnopqrstuvwxyz"[n-1];
}

int main() {
    
    long long n;
    cin >> n;
    
    stack<char> s;
    long long ans=0;
    while(n>0){
        ans=n%26;
        if(ans==0){
            ans=+26;
        }
        s.push(nth_letter(ans));
        if(n%26==0){
            n=n/26;
            n=n-1;
        }
        else{
            n=n/26;
        }
    }
    while(!s.empty()){
        cout << s.top();
        s.pop();
    }
    return 0;
 }


Compiler output:
a.cc: In function 'char nth_letter(long long int)':
a.cc:25:5: error: 'assert' was not declared in this scope
   25 |     assert(n >= 1 && n <= 26);
      |     ^~~~~~
a.cc:19:1: note: 'assert' is defined in header '<cassert>'; this is probably fixable by adding '#include <cassert>'
   18 | #include <stack>
  +++ |+#include <cassert>
   19 |
Language: C

#include<stdio.h>
int main()
{
  long int N,com=0;
  char ans[100];
  int i,j;
 
  scanf("%ld",&N);
  for(i=0;i<100&&com<=N;i++){
    com+=26^i;
  }
  i=i-1;
com=com-26^i
N=N-com;
  for(j=0;j<i;j++){
    com=N/(26^(i-1-j));
	N=N%(26^(i-1-j));

    
   ans[j]=com+97; 
  }
  ans[i]='\0';
  printf("%s",ans);
    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:13:13: error: expected ';' before 'N'
   13 | com=com-26^i
      |             ^
      |             ;
   14 | N=N-com;
      | ~
Language: C++

#include <bits/stdc++.h>
#include<iostream>
#include <ctype.h>
#include <sstream>
using namespace std;
using Graph = vector<vector<int>>;
#define  itn int
using ll=int64_t;
#define rep(i,n) for (int i = 0; i < (int) (n); i++)
using vi = vector<int>;
using vll = vector<ll>;
//GCD
long long gcd(long long a, long long b)
{if(a<b) swap(a,b);
   if (a%b == 0){return(b);}
   else{return(gcd(b, a%b));}
}
//lcm
long long lcm(long long a, long long b)
{return a * b / gcd(a, b);}

long long bikkuri(long long k){
    long long sum = 1;
    for (long long i = 1; i <= k; ++i)
    {
        sum *= i;
    }
    return sum;
}
int main() {
ll n;
cin>>n;
string ans = '';
while(n>0){n--;ans+=char('a'+n%26);n/=26;}
reverse ans;
cout<<ans;

}


Compiler output:
a.cc:33:14: error: empty character constant
   33 | string ans = '';
      |              ^~
a.cc: In function 'int main()':
a.cc:33:14: error: conversion from 'char' to non-scalar type 'std::string' {aka 'std::__cxx11::basic_string<char>'} requested
a.cc:35:8: error: expected ';' before 'ans'
   35 | reverse ans;
      |        ^~~~
      |        ;
a.cc:35:12: error: statement cannot resolve address of overloaded function
   35 | reverse ans;
      |            ^
Language: C++

#include <bits/stdc++.h>
#define rep(i,n) for(int i = 0;i < (n);i++)
using namespace std;
using ll = long long;
using pii = pair<int,int>;

const int INF = 2e9;

int main(){
    ll n;
    cin >> n;
    string ans = "";
    while(n>0){
        n--;
        ans += char('a' + n%26);
        n /= 26;
    }
    reverse(a.begin(),a.end());
    cout << ans << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:18:13: error: 'a' was not declared in this scope
   18 |     reverse(a.begin(),a.end());
      |             ^
Language: C++

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

int main(){
  int N;cin>>N;
  string S;
  while(n--){
    S = char('a' + N % 26) + S;
    N /= 26 ;
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:9: error: 'n' was not declared in this scope
    7 |   while(n--){
      |         ^
Language: C++

#include<iostream>
#include<vector>
#include<algorithm>
#include<cmath>
#include<string>
using namespace std;
using ll = long long;

int main(){
    ll N;
    cin>>N;
    string s = "abcdefghijklmnopqrstuvwxyz";
    int i = 0;
    int t = 0;
    while(i<20){
        if(N<pow(26,i)){
            t=i-1;
            break;
        }
        i++;
    }
    string ans="";
    int number = N;
    int i2;
    for (int i=1; i<t; i++){
        i2 = number%pow(26,i);
        char c=s[i2-1];
      	ans+=c;
        number = number/pow(26,i);
    }
    reverse(ans.begin(),ans.end());
    cout<<ans<<endl;
    return 0;
}
    

Compiler output:
a.cc: In function 'int main()':
a.cc:26:20: error: invalid operands of types 'int' and '__gnu_cxx::__promote<double>::__type' {aka 'double'} to binary 'operator%'
   26 |         i2 = number%pow(26,i);
      |              ~~~~~~^~~~~~~~~~
      |              |         |
      |              int       __gnu_cxx::__promote<double>::__type {aka double}
Language: C++

#include<iostream>
#include<vector>
#include<algorithm>
#include<cmath>
#include<string>
using namespace std;
using ll = long long;

int main(){
    ll N;
    cin>>N;
    string s = "abcdefghijklmnopqrstuvwxyz";
    int i = 0;
    int t = 0;
    while(i<20){
        if(N<pow(26,i)){
            t=i-1;
            break;
        }
        i++;
    }
    string ans="";
    int number = N;
    int i2;
    for (int i=1; i<t; i--){
        i2 = number%pow(26,i);
        char c=s[i2-1];
      	ans+=c;
        number = number - pow(26,i)*i2;
    }
    reverse(ans.begin(),ans.end());
    cout<<ans<<endl;
    return 0;
}
    

Compiler output:
a.cc: In function 'int main()':
a.cc:26:20: error: invalid operands of types 'int' and '__gnu_cxx::__promote<double>::__type' {aka 'double'} to binary 'operator%'
   26 |         i2 = number%pow(26,i);
      |              ~~~~~~^~~~~~~~~~
      |              |         |
      |              int       __gnu_cxx::__promote<double>::__type {aka double}
Language: C++

n = int(input())

ans = ''

while n > 0:
    n -= 1
    ans += chr(ord('a') + n % 26)
    n //= 26

print(ans[::-1])


Compiler output:
a.cc:3:7: error: empty character constant
    3 | ans = ''
      |       ^~
a.cc:1:1: error: 'n' does not name a type
    1 | n = int(input())
      | ^
Language: C++

// Author: pankaj_m05 
// Problem: c 
// Created: 21.06.2020 17:36:08

#include<bits/stdc++.h>
#define fast ios_base::sync_with_stdio(0); cin.tie(0);
#define f_in(file) freopen(file, "r", stdin)
#define f_out(file) freopen(file, "w", stdout)
#define sz(a) int((a).size())
#define fi first
#define se second
#define mp make_pair
#define pb push_back
#define all(c) c.begin(), c.end()
#define tr(c,i) for(typeof(c).begin() i = c.begin(); i != c.end(); i++)
#define present(c,x) (c.find(x) != c.end())  // Set and Maps
#define cpresent(c,x) (find(allc,x) != c.end()) // Vectors
using namespace std;

typedef vector< int > vi;
typedef vector< vi > vvi;
typedef pair< int, int > ii;
typedef long long ll;

const int mod = 1e9 + 7;       

void testcase() {
	ll n;
	cin >> n;
	string s;
	while (n) {
		--n;
		s += (char) ((n % 2 + 'a'));
		n /= a;
	}
	reverse(s.begin(), s.end());
	cout << s;
}

int main(void) { 
	fast
	int t = 1; 
	// cin >> t;
	while (t--) {
		testcase();
	}
	return 0;
}                                          

Compiler output:
a.cc: In function 'void testcase()':
a.cc:34:22: error: 'a' was not declared in this scope
   34 |                 n /= a;
      |                      ^
Language: Java

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.lang.reflect.Array;
import java.util.ArrayList;
import java.util.Collections;
import java.util.Comparator;
import java.util.List;

public class Main {

    private static Scanner sc;

    public static void main(String[] args) {
        Main instance = new Main();
        sc = instance.new Scanner();
        instance.solve();
    }

    private void solve() {
        try {
            int n = sc.nextInt();
            // nを27で何回割れる？
            List<Integer> list = new ArrayList<>();
            while(true){
                int ans = n / 27;
                int amr = n % 27;
                if(ans == 0){
                    if(amr != 0){
                        list.add(amr)
                    }
                    break;
                }else{
                    list.add(ans);
                    n = amr;
                }
            }
            StringBuilder sb = new StringBuilder();
            for(Integer i : list){
                sb.append((char)(i+96));
            }
            System.out.println(new String(sb));
        } catch (Exception e) {
            e.printStackTrace();
        }
    }

    private class Scanner {
        String[] s;
        int i;
        BufferedReader br;
        String regex = " ";

        public Scanner() {
            s = new String[0];
            i = 0;
            br = new BufferedReader(new InputStreamReader(System.in));
        }

        @Override
        protected void finalize() throws Throwable {
            try {
                super.finalize();
            } finally {
                destruction();
            }
        }

        private void destruction() throws IOException {
            if (br != null) br.close();
        }

        public String next() throws IOException {
            if (i < s.length) return s[i++];
            String st = br.readLine();
            while (st == "") st = br.readLine();
            s = st.split(regex, 0);
            i = 0;
            return s[i++];
        }

        public int nextInt() throws NumberFormatException, IOException {
            return Integer.parseInt(next());
        }

        public Long nextLong() throws NumberFormatException, IOException {
            return Long.parseLong(next());
        }

        public Double nextDouble() throws NumberFormatException, IOException {
            return Double.parseDouble(next());
        }
    }
}

Compiler output:
Main.java:30: error: ';' expected
                        list.add(amr)
                                     ^
1 error
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:79:14: error: 'N$26' was not declared in this scope
   79 |     }else if(N$26==24)
      |              ^~~~
Language: C++

#include<bits/stdc++.h>
using namespace std;
#define int long long int
 
int main()
{	
	int n;
	cin>>n;
	string s;
	while(n>0)
	{
		int t1=n%26;
		char c='a'+t1-1;
		if(t1==0)
		{
			s+='z';
			n-=26;
		}
		else
			s+=c;
		n/=26;
	}
	reverse(s.begin(),s.end());
	cout<<s<<endl;
	return 0;
}

Compiler output:
a.cc:3:23: error: '::main' must return 'int'
    3 | #define int long long int
      |                       ^~~
a.cc:5:1: note: in expansion of macro 'int'
    5 | int main()
      | ^~~
Language: C++

#include <bits/stdc++.h>

#define rep(i, n) for (int i = 0; i < (int)(n); i++)
#define FAST() ios_base::sync_with_stdio(false);cin.tie(NULL);cout.tie(NULL)

using namespace std;
using ll = long long;

int main() {
  FAST();
  ll n;
  cin >> n;
  string ans = "";
  while(n > 0) {
    x = (n - 1) % 26;
    ans += (char)(x + 'a');
    n = (n - x - 1) % 26;
  }
  reverse(ans.begin(), ans.end());
  cout << ans << endl;
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:15:5: error: 'x' was not declared in this scope
   15 |     x = (n - 1) % 26;
      |     ^
Language: C++

#include <iostream>
#include <vector>
#include <algorithm>
using namespace std;
int main(){
  	unsigned long long n;
  	cin>>n;
  	
  	vector<unsigned long long> name;
  	unsigned long long nameNumber;
  	char nameChar;
  	if(n<3){
      	nameChar='a'+n-1;
      	cout<<nameChar<<endl;
      	return 0;
    }
  	unsigned long long base = n;
  	unsigned long long minus = 1;
  	while(base/26=>1){
      	base/=26;
      	minus*=26;
      	n-=minus;
    }
      	
  	n--;
  	while(n>0){
      	nameNumber = n%26;
      	name.push_back(nameNumber);
      	n/=26;
    }
  	if(*(name.end()-1)==1){
      	*(name.end()-1)=0;
    }
  	
  	
  	while(!name.empty()){
      	nameChar='a';
      	nameChar+=*(name.end()-1);
      	cout<<nameChar;
      	name.pop_back();
    }
  	
  	cout<<endl;
  	return 0;
      	
}


Compiler output:
a.cc: In function 'int main()':
a.cc:19:23: error: expected primary-expression before '>' token
   19 |         while(base/26=>1){
      |                       ^
Language: C++

#pragma GCC optimize("Ofast")
#include <bits/stdc++.h>

#define ll long long
#define ull unsigned long long

using namespace std;

int main() {
	ll N;
	cin >> N;
    string ans;
    while (N) {
        ll r = n % 26;
        if (!r) r = 26;
        ans.push_back('a' + r - 1);
        N -= r;
        N /= 26;
    }
    reverse(ans);
    cout << ans << '\n';

	return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:14:16: error: 'n' was not declared in this scope
   14 |         ll r = n % 26;
      |                ^
a.cc:20:12: error: no matching function for call to 'reverse(std::string&)'
   20 |     reverse(ans);
      |     ~~~~~~~^~~~~
In file included from /usr/include/c++/14/algorithm:61,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:51,
                 from a.cc:2:
/usr/include/c++/14/bits/stl_algo.h:1083:5: note: candidate: 'template<class _BIter> void std::reverse(_BIter, _BIter)'
 1083 |     reverse(_BidirectionalIterator __first, _BidirectionalIterator __last)
      |     ^~~~~~~
/usr/include/c++/14/bits/stl_algo.h:1083:5: note:   candidate expects 2 arguments, 1 provided
In file included from /usr/include/c++/14/algorithm:86:
/usr/include/c++/14/pstl/glue_algorithm_defs.h:249:1: note: candidate: 'template<class _ExecutionPolicy, class _BidirectionalIterator> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, void> std::reverse(_ExecutionPolicy&&, _BidirectionalIterator, _BidirectionalIterator)'
  249 | reverse(_ExecutionPolicy&& __exec, _BidirectionalIterator __first, _BidirectionalIterator __last);
      | ^~~~~~~
/usr/include/c++/14/pstl/glue_algorithm_defs.h:249:1: note:   candidate expects 3 arguments, 1 provided
Language: C

#include<stdio.h>
#include<stdlib.h>

int main(){
  int i;
  char a[100];
  
  long long int n;
  scanf("%lld",&n);
  
  long long int p;
  int q;
  for(i=0;i<=10;i++){
    p=n/26;
    q=n%26;
    itoa(q+64,a[i],10);
    if(p==0) break;
    n=p;
  }
  
  while(i>=0){
    printf("%c",a[i]);
    i--;
  }
  
return 0;
}


Compiler output:
main.c: In function 'main':
main.c:16:5: error: implicit declaration of function 'itoa' [-Wimplicit-function-declaration]
   16 |     itoa(q+64,a[i],10);
      |     ^~~~
Language: C++

#include <bits/stdc++.h> 
#define MAX 50 
#define int long long
using namespace std; 
  
void printString(int n) 
{ 
    char str[MAX];
    int i = 0;
  	while (n > 0) 
    { 
         int rem = n % 26; 
  		if (rem == 0) 
        { 
            str[i++] = 'z'; 
            n = (n / 26) - 1; 
        } 
        else 
        { 
            str[i++] = (rem - 1) + 'a'; 
            n = n / 26; 
        } 
    } 
    str[i] = '\0'; 
  	reverse(str, str + strlen(str)); 
    cout << str << endl; 
  	return; 
} 
  
 
int main() 
{ 
	int N;
	cin>>N;
    printString(N); 
    return 0; 
}

Compiler output:
cc1plus: error: '::main' must return 'int'
Language: C++

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

int main(){
  ll N;
  cin>>N;
  
  string ans="";
  while(N){
    N-=1;
    a.push_back('a'+N%26);
    N/=26;
  }
  reverse(ans.begin(),ans.end());
  cout<<ans<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:5: error: 'a' was not declared in this scope
   12 |     a.push_back('a'+N%26);
      |     ^
Language: C

#include<stdio.h>
#include<stdlib.h>

int main(){
  int i;
  char a[100];
  
  long long int n;
  scanf("%lld",&n);
  
  long long int p;
  int q;
  for(i=0;i<=10;i++){
    p=n/26;
    q=n%26;
    a[i]=itoa(q+64);
    if(p==0) break;
    n=p;
  }
  
  while(i>=0){
    printf("%c",a[i]);
    i--;
  }
  
return 0;
}


Compiler output:
main.c: In function 'main':
main.c:16:10: error: implicit declaration of function 'itoa' [-Wimplicit-function-declaration]
   16 |     a[i]=itoa(q+64);
      |          ^~~~
Language: C++

void f(ll n){
	if(n == 0)return;
	n--;
	f(n/26);
	putchar('a'+(n%26));
}
 
int main(){
	char a[] = {'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'};
	ll n;
	cin>>n;
	f(n);
	return 0;
}

Compiler output:
a.cc:1:6: error: variable or field 'f' declared void
    1 | void f(ll n){
      |      ^
a.cc:1:8: error: 'll' was not declared in this scope
    1 | void f(ll n){
      |        ^~
a.cc: In function 'int main()':
a.cc:10:9: error: 'll' was not declared in this scope
   10 |         ll n;
      |         ^~
a.cc:11:9: error: 'cin' was not declared in this scope
   11 |         cin>>n;
      |         ^~~
a.cc:11:14: error: 'n' was not declared in this scope
   11 |         cin>>n;
      |              ^
a.cc:12:9: error: 'f' was not declared in this scope
   12 |         f(n);
      |         ^
Language: C

#include<stdio.h>
#include<stdlib.h>

int main(){
  int i;
  int a[100];
  
  long long int n;
  scanf("%lld",&n);
  
  long long int p;
  int q;
  for(i=0;i<=10;i++){
    p=n/26;
    q=n%26;
    a[i]=itoa(q+64);
    if(p==0) break;
    n=p;
  }
  
  while(i>=0){
    printf("%c",a[i]);
    i--;
  }
  
return 0;
}

Compiler output:
main.c: In function 'main':
main.c:16:10: error: implicit declaration of function 'itoa' [-Wimplicit-function-declaration]
   16 |     a[i]=itoa(q+64);
      |          ^~~~
Language: C

#include<stdio.h>

int main(){
  int i;
  int a[100];
  
  long long int n;
  scanf("%lld",&n);
  
  long long int p;
  int q;
  for(i=0;i<=10;i++){
    p=n/26;
    q=n%26;
    a[i]=itoa(q+64);
    if(p==0) break;
    n=p;
  }
  
  while(i>=0){
    printf("%c",a[i]);
    i--;
  }
  
return 0;
}

Compiler output:
main.c: In function 'main':
main.c:15:10: error: implicit declaration of function 'itoa' [-Wimplicit-function-declaration]
   15 |     a[i]=itoa(q+64);
      |          ^~~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main() {
  int64_t n;
  cin>>n;
  int num=1;
  while((pow(26,num+1)-26)/25<n){
    num++;
  }	//num桁
  int n2=n-(pow(26,num)-26)/25;
  vector<int> v(num);
  for(int i=0;i<num;i++){
    v.at(i)=n2/pow(26,num-1-i);
    n2=n2%pow(26,num-1);
    if(i!=n2-1){v.at(i)++;}
  }//0桁目が1文字目、1桁目が2文字目…と入る。1ならa,2ならb…
  cout<<n;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:15:10: error: invalid operands of types 'int' and '__gnu_cxx::__promote<double>::__type' {aka 'double'} to binary 'operator%'
   15 |     n2=n2%pow(26,num-1);
      |        ~~^~~~~~~~~~~~~~
      |        |     |
      |        int   __gnu_cxx::__promote<double>::__type {aka double}
Language: C++

#include <iostream>
#include <string>
using namespace std;
using L = long long int;
L fast_pow(L,L);
int keta(L,L);
int ketasuu(L);
int main(){
	L N;
	string str = "";
	int num_keta;
	cin >> N;
	num_keta = ketasuu(N);
	int flag = 0;
	for(int i = 1;i <= num_keta;i++){
		int buf = keta(N,i);
		if (flag == 1){
			buf -=1;
		}
		if(buf < 0){
			buf += 26;
		}
		if(buf == 1){
			str = 'a' + str;
			flag = 0;
		}else if(buf == 2){
			str = 'b' + str;
		flag = 0;
		}else if(buf == 3){
			str = 'c' + str;
		flag = 0;
		}else if(buf == 4){
			str = 'd' + str;
		flag = 0;
		}else if(buf == 5){
			str = 'e' + str;
		flag = 0;
		}else if(buf == 6){
			str = 'f' + str;
		flag = 0;
		}else if(buf == 7){
			str = 'g' + str;
		flag = 0;
		}else if(buf == 8){
			str = 'h' + str;
		flag = 0;
		}else if(buf == 9){
			str = 'i' + str;
		flag = 0;
		}else if(buf == 10){
			str = 'j' + str;
		flag = 0;
		}else if(buf == 11){
			str = 'k' + str;
		flag = 0;
		}else if(buf == 12){
			str = 'l' + str;
		flag = 0;
		}else if(buf == 13){
			str = 'm' + str;
		flag = 0;
		}else if(buf == 14){
			str = 'n' + str;
		flag = 0;
		}else if(buf == 15){
			str = 'o' + str;
		flag = 0;
		}else if(buf == 16){
			str = 'p' + str;
		flag = 0;
		}else if(buf == 17){
			str = 'q' + str;
		flag = 0;
		}else if(buf == 18){
			str = 'r' + str;
		flag = 0;
		}else if(buf == 19){
			str = 's' + str;
		flag = 0;
		}else if(buf == 20){
			str = 't' + str;
		flag = 0;
		}else if(buf == 21){
			str = 'u' + str;
		flag = 0;
		}else if(buf == 22){
			str = 'v' + str;
		flag = 0;
		}else if(buf == 23){
			str = 'w' + str;
		flag = 0;
		}else if(buf == 24){
			str = 'x' + str;
		flag = 0;
		}else if(buf == 25){
			str = 'y' + str;
			flag = 0;
		}else if(buf == 0){
			str = 'z' + str;
			flag = 1
		}
		
	}
	cout << str;
	return 0;
}
/**xのy乗を返す**/
L fast_pow(L x,L y){
	if(y == 1){
		return x;
	}
	if(y % 2){
		return x * fast_pow(x,y - 1);
	}
	L buf = fast_pow(x ,y / 2);
	return buf * buf;
}

/**xのn桁目を返す**/
/**fast_powも必要**/
int keta(L x,L n){
	if(n == 1){
		return x % 26;
	}
	L num = fast_pow(26,n-1);
	return (x / num) % 26;
}

/**xの桁数を返す**/
int ketasuu(L x){
	L num = 26;
	for(L i = 1;1;i++){
		if(x < num){
			return i;
		}
		num *= 26;
	}
}


Compiler output:
a.cc: In function 'int main()':
a.cc:100:33: error: expected ';' before '}' token
  100 |                         flag = 1
      |                                 ^
      |                                 ;
  101 |                 }
      |                 ~
Language: C++

#include<bits/stdc++.h>

using namespace std;

#define FAST() ios_base::sync_with_stdio(false);cin.tie(NULL);cout.tie(NULL)

int main()
{
    FAST();
    char c;
    LL n,x=26,y;
    int i,j,cnt=0;
    string ans="";
    cin >> n;
    while(n > x)
    {
        ++cnt;
        x*=26LL;
    }
    y=x/26LL;
    for(i=cnt;i>-1;i--)
    {
        for(c='a';c<='z';c++)
        {
            x=(LL)(c-'a'+1)*y;
            if(x > n)
            {
                ans+=c-1;
                n-=x-y;
                break;
            }
        }
        if(c > 'z')
        {
            ans+='z';
            n-=x;
        }
        y/=26LL;
    }
    cout << ans;
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:11:5: error: 'LL' was not declared in this scope
   11 |     LL n,x=26,y;
      |     ^~
a.cc:14:12: error: 'n' was not declared in this scope
   14 |     cin >> n;
      |            ^
a.cc:15:15: error: 'x' was not declared in this scope
   15 |     while(n > x)
      |               ^
a.cc:20:5: error: 'y' was not declared in this scope
   20 |     y=x/26LL;
      |     ^
a.cc:20:7: error: 'x' was not declared in this scope
   20 |     y=x/26LL;
      |       ^
Language: C++

#include<iostream>
#include<string>
#include<vector>
#include<algorithm>

using namespace std;

int main()
{
  //27進数
  long long a;
  cin>>a;
  long long ans=0;
  vector<char>alpha={'a','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(a=<26)
  {
    cout<<alpha.at(a);
  }
  long long answer=0;
  long long count=0;
  for(long long i=0;i<a;i++)
  {
    if(a<27)
    {
      break;
    }
    a-=27;
    count++;
  }
  long long b=count*27;
  else
  {
    while(true)
    {
      if(b==0)
      {
        break;
      }
      b/=27;
      answer++;
    }
    while(true)
    {
      if()
      {
        break;
      }
//わからん、記録用
    }

  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:15:8: error: expected primary-expression before '<' token
   15 |   if(a=<26)
      |        ^
a.cc:31:3: error: 'else' without a previous 'if'
   31 |   else
      |   ^~~~
a.cc:44:10: error: expected primary-expression before ')' token
   44 |       if()
      |          ^
Language: C++

#include"bits/stdc++.h"
#include<math.h>
#include<vector>
#include<algorithm>
using namespace std;
int64_t i,j,k;//preparation for
int main(){
    int n,l,a[20];
    cin>>n;
    string t,s[20];
    l=log(n)/log(26);
    for(i=l;i>=0;i--){
        a[l]=n/pow(26,l);
        n-=a[l]*pow(26,l);
        switch(a[l]){
        case 0:
        s[l]="a";
        break;
        case 1:
        s[l]="b";
        break;
        case 2:
        s[l]="c";
        break;
        case 3:
        s[l]="d";
        break;
        case 4:
        s[l]="e";
        break;
        case 5:
        s[l]="f";
        break;
        case 6:
        s[l]="g";
        break;
        case 7:
        s[l]="h";
        break;
        case 8:
        s[l]="i";
        break;
        case 9:
        s[l]="j";
        break;
        case 10:
        s[l]="k";
        break;
        case 11:
        s[l]="l";
        break;
        case 12 :
        s[l]="m";
        break;
        case 13:
        s[l]="n";
        break;
        case 14:
        s[l]="o";
        break;
        case 15:
        s[l]="p";
        break;
        case 16:
        s[l]="q";
        break;
        case 17:
        s[l]="r";
        break;
        case 18:
        s[l]="s";
        break;
        case 19:
        s[l]="t";
        break;
        case 20:
        s[l]="u";
        break;
        case 21:
        s[l]="v";
        break;
        case 22:
        s[l]="w";
        break;
        case 23:
        s[l]="x";
        break;
        case 24:
        s[l]="y";
        break;
        default:
        s[l]="z";
        break;
    }
    t="";
    for(i=l;i>=0;i--){
        t+=s[i];
    }
    cout<<t;


    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:103:2: error: expected '}' at end of input
  103 | }
      |  ^
a.cc:7:11: note: to match this '{'
    7 | int main(){
      |           ^
Language: C++

#define _GLIBCXX_DEBUG
#include<algorithm>
#include<cmath>
#include<cstring>
#include<cstdio>
#include<iostream>
#include<vector>
#include<queue>
#include<deque>
#include<stack>
#include<set>
#include<map>
#include<string>
#include <bits/stdc++.h>
#define rep(i, n) for(int i = 0; i < (int)n; i++)
#define rep2(i,s,n) for(int i=s;i< (int)n; i++)
#define ll long long 
#define all(v) v.begin(),v.end()
using namespace std;
int main(){
  ll N; cin >>N;
  ll n=26;
  ll sum=0;
  ll t=0;
  while(sum<N){
    sum+=n;
    n*=26;
    t++;
  //N-=sum-pow(26,t);
  string s="";
  while(N>0){
    char c;
    ll a=1;
    rep(i,t-1)a*=26;
    if(N/a==27){
      c='a'+N/a-2;
    }else {
      c='a'+N/a-1;
    }
    s=s+c;
    N-=a*(N/a);
    t--;
  }
  cout <<s<<endl;
}
    

Compiler output:
a.cc: In function 'int main()':
a.cc:45:2: error: expected '}' at end of input
   45 | }
      |  ^
a.cc:20:11: note: to match this '{'
   20 | int main(){
      |           ^