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

#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:43:2: error: expected '}' at end of input
   43 | }
      |  ^
a.cc:20:11: note: to match this '{'
   20 | int main(){
      |           ^
Language: Java

/*package whatever //do not write package name here */
import java.util.*;
import java.lang.*;
import java.io.*;

class Main {
	public static void main (String[] args) {
// 		System.out.println("GfG!");
        Scanner input=new Scanner(System.in);
      long n=input.nextLong();
       long[] a=new long[n];
       long sum=0;
       for(long i=0;i<n;i++)
       {
            a[i]=input.nextLong();
            sum+=a[i];
        }
        Map<Long,Long> map=new HashMap<Long,Long>();
        for(long i=0;i<n;i++)
        {
            if(map.containsKey(a[i]))
            {
                long x=map.get(a[i]);
                x++;
                map.put(a[i],x);
            }
            else
            {
                map.put(a[i],1);
            }
        }
        long q=input.nextInt();
        while(q-->0)
        {
            long b=input.nextInt();
            long c=input.nextInt();
            // int x=map.get(b);
            if(map.containsKey(b))
            {
                long x=map.get(b);
            sum=sum-(x*b);
            sum=sum+(x*c);
            System.out.println(sum);
            if(map.containsKey(c))
            {
                long y=map.get(c);
                map.put(c,(x+y));
            }
            else
            {
                map.put(c,x);
            }
            }
            else{
                System.out.println(sum);
            }
        }
        input.close();
	}
}

Compiler output:
Main.java:11: error: incompatible types: possible lossy conversion from long to int
       long[] a=new long[n];
                         ^
Main.java:15: error: incompatible types: possible lossy conversion from long to int
            a[i]=input.nextLong();
              ^
Main.java:16: error: incompatible types: possible lossy conversion from long to int
            sum+=a[i];
                   ^
Main.java:21: error: incompatible types: possible lossy conversion from long to int
            if(map.containsKey(a[i]))
                                 ^
Main.java:23: error: incompatible types: possible lossy conversion from long to int
                long x=map.get(a[i]);
                                 ^
Main.java:25: error: incompatible types: possible lossy conversion from long to int
                map.put(a[i],x);
                          ^
Main.java:29: error: incompatible types: possible lossy conversion from long to int
                map.put(a[i],1);
                          ^
Main.java:29: error: incompatible types: int cannot be converted to Long
                map.put(a[i],1);
                             ^
Note: Some messages have been simplified; recompile with -Xdiags:verbose to get full output
8 errors
Language: C++

#include <bits/stdc++.h>
using namespace std;
  int main( ) {
    int N;
    cin >> N;
    
    string str = "abcdefghijklmnopqrstuvwxyz";
    
    if((N >= 1) && (N <= 26)){
    cout << str.at(N - 1) << endl;
    }
    
    if((N >= 27) && (N <= 702)){
    cout << str.at(N / 26 - 1) << str.at(N % 26 - 1) << endl;
    }
    
    if((N >= 703) && (N <= 18278)){
    cout << str.at(N / 26 - 27) << str.at(N / 26 - 27)<< str.at(N % 26 + 25) << endl;
  }
    
    if((N >= 18279) && (N <= 475254)){
    cout << str.at(N / 26 - 703) << str.at(N / 26 - 703)<< str.at(N / 26 - 703) << str.at(N % 26 + 1) << endl;
  }
    
    if else{
    cout << str.at(N / 26 - 18279) << str.at(N / 26 - 18279)<< str.at(N / 26 - 18279) << str.at(N % 26 + 1) << endl;
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:25:8: error: expected '(' before 'else'
   25 |     if else{
      |        ^~~~
      |        (
Language: Java

import java.util.Scanner;

public class DogsNames {

	public static void main(String[] args) {
		// TODO Auto-generated method stub
		Scanner scn = new Scanner(System.in);
		long N = scn.nextLong();
		String ans = getAlpha(N);
		System.out.println(ans);
	}

	public static String getAlpha(long n) {

		String result = "";
		while (n > 0) {
			n--; // 1 => a, not 0 => a
			long remainder = n % 26;
			char digit = (char) (remainder + 97);
			result = digit + result;
			n = (n - remainder) / 26;
		}

		return result;
	}

}


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

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


int main()
{
  char ar[27] ;

  for(int i=1 ; i<=26 ; ++i)
  {
    ar[i]=(char)('a'+i-1);
  }
  
  double n ;
  cin>>n ;

  while(n!=0)
  {
    cout<<ar[n%26];
    n=n/26 ;
  }
  
  return 0 ; 
}


Compiler output:
a.cc: In function 'int main()':
a.cc:19:15: error: invalid operands of types 'double' and 'int' to binary 'operator%'
   19 |     cout<<ar[n%26];
      |              ~^~~
      |              | |
      |              | int
      |              double
Language: Java

import java. util.Scanner;
public class  {

	public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ
		Scanner scan = new Scanner(System.in);

		long n = scan.nextLong();
		char[] c = {'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<=26) {
			System.out.println(c[(int) (n-1)]);
		}else {
			fact(n);
		}

	}

	public static void fact(long a) {
		char[] c = {'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-1)/26<=26) {
			System.out.print(c[(int) (((a-1)/26)-1)]);
			System.out.print(c[(int) (((a-1)&26)-1)]);
		}else {
			fact((a-1)/26);
			System.out.print(c[(int) (((a-1)&26))]);
		}

	}

}
	

Compiler output:
Main.java:2: error: <identifier> expected
public class  {
            ^
1 error
Language: C++

#include <iostream>
#include <vector>
using namespace std;

int xmulti(long n) {
  int output = 0;
  long temp = (n / 27);
  while(temp > 0) {
    output++;
    temp /= 27;
  }
  return output;
}

int main() {
  long N;
  vector<char> output;
  cin >> N;
  if(N < 27) {
    char c = 'a' + (N - 1);
    cout << c << endl;
  } else {
    long next = N;
    long div = N / 26;
    output.push_back('\0');
    auto it = a.begin();
    while(next > 0) {
      char c = 'a' + (next - (div * 26)) - 1;
      output.insert(it, c);
      next = div;
      div = next / 26;
    }
    string str(output.begin(), output.end());
    cout << str << endl;
  }
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:26:15: error: 'a' was not declared in this scope
   26 |     auto it = a.begin();
      |               ^
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:42:2: error: expected '}' at end of input
   42 | }
      |  ^
a.cc:20:11: note: to match this '{'
   20 | int main(){
      |           ^
Language: C++

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

string alphabet(int n){
  if(n == 0){
    return "z";
  }
  if(n == 1){
    return "a";
  }
  if(n == 2){
    return "b";
  }
  if(n == 3){
    return "c";
  }
  if(n == 4){
    return "d";
  }
  if(n == 5){
    return "e";
  }
  if(n == 6){
    return "f";
  }
  if(n == 7){
    return "g";
  }
  if(n == 8){
    return "h";
  }
  if(n == 9){
    return "i";
  }
  if(n == 10){
    return "j";
  }
  if(n == 11){
    return "k";
  }
  if(n == 12){
    return "l";
  }
  if(n == 13){
    return "m";
  }
  if(n == 14){
    return "n";
  }
  if(n == 15){
    return "o";
  }
  if(n == 16){
    return "p";
  }
  if(n == 17){
    return "q";
  }
  if(n == 18){
    return "r";
  }
  if(n == 19){
    return "s";
  }
  if(n == 20){
    return "t";
  }
  if(n == 21){
    return "u";
  }
  if(n == 22){
    return "v";
  }
  if(n == 23){
    return "w";
  }
  if(n == 24){
    return "x";
  }
  if(n == 25){
    return "y";
  }  
  return "a";
}

int main() {
  int64_t N;
  int count = 0;
  vector<int> vec(0);
  string X;
  cin >> N;
  
  bool checker = true;
  
  while(checker){
    if(N > 26LL){
      vec.push_back(N % 26LL);
      N = N / 26LL;
      count++;
    }else{
      vec.push_back(N % 26LL);
      checker = false;
    }
  }
  
  reverse(begin(vec), end(vec));
  int t = vec.size()
  for(int i=0; i< t; i++){
    string temp = alphabet(vec.at(i)) ;
    X += temp;
  }
  
  cout << X << endl;
   
}


Compiler output:
a.cc: In function 'int main()':
a.cc:108:3: error: expected ',' or ';' before 'for'
  108 |   for(int i=0; i< t; i++){
      |   ^~~
a.cc:108:16: error: 'i' was not declared in this scope
  108 |   for(int i=0; i< t; i++){
      |                ^
Language: C++

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

//----------------------------------------------------------------------------------
#define pb insert//                                                                 |
#define eb emplace_back//                                                           |
#define ff first//                                                                  |
#define ss second//                                                                 |
typedef long long int ll;//                                                         |
typedef long double ld;//                                                           |
#define all(a) a.begin(), a.end()//                                                 |
#define show(x) cerr << #x << " is " << x << "\n"//                                 |
#define show2(x, y) cerr << #x << " " << #y << " " << x << " " << y << "\n"//       |
typedef vector<ll> vl;//                                                            |
typedef vector<vl> vvl;//                                                           |
typedef pair<ll, ll> pp;//                                                          |
typedef vector<pp> vp;//                                                            |
typedef map<pp, ll> ipi;//                                                          |
typedef map<pp, char> ipc;//                                                        |
typedef map<ll, ll> ii;//                                                           |
typedef set<ll> sl;//                                                               |
typedef multiset<ll> msl;//                                                         |
typedef map<char, ll> ci;//                                                         |
typedef set<pair<ll, ll>> sp;//                                                     |
const ll mod = 1e9 + 7;//                                                           |
const ll N = 2e4 + 1;//                                                             |
//----------------------------------------------------------------------------------

ll fast_expo(ll x, ll y){
    
    ll res=1;
    while(y>0){
        if(y&1){
            res*=x;
        }
        x*=x;
        y>>=1;
    }
    return res;
}


//main func
int main()
{
	ios_base::sync_with_stdio(false);
	cin.tie(0);
	cout.tie(0);
    
    ll t;cin>>t;
    string s="abcdefghijklmnopqrstuvwxyz";
    ll i=0;
    //cout<<pow(26,i)<<"\n";
    string ans="";
    while(fast_expo(26,i)<t){
        i++;
    }
    int f=0;
    if(fast_expo(26,i)==t){
        i--;
        f=1
    }
    
    while(i>-1){
        
        ll tmp=t/fast_expo(26,i);
        ans+=s[(tmp-1)%26];
        t-=tmp*fast_expo(26,i);
        i--;
    }
    if (f )cout<<ans<<"\n";
    else
    for(int i=1;i<ans.size();i++) cout<<ans[i];
    
    
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:61:12: error: expected ';' before '}' token
   61 |         f=1
      |            ^
      |            ;
   62 |     }
      |     ~
Language: C++

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

int is_pow26(long long n)
{
    long long i = 0,ii = 1;
    while (n > ii)
    {
        ii*=26;
        i++;
    }
    if(n == ii)return i;
    return -1;
}

int main()
{
    long long n;
    cin >> n;
    n--;

    string ans = "";
    
    if(n == 0)
    {
        ans = "a";
    }
    else if(is_pow26(n) != -1 && is_pow26(n) != 0)
    {
        for (int i = 0; i <= is_pow26(n); i++)
        {
            ans += "a";
        }
    }
    else
    {
        string aans = "";
        n++;
        while (n)
        {
            aans.push_back((char)('a' + (n - 1) % 26));
            n /= 26;
        }

        for (int i = 0; i < aans.size(); i++)
        {
            ans[i] = aa[aans.size() - 1 - i];
        }
        
    }
    cout << ans << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:47:22: error: 'aa' was not declared in this scope
   47 |             ans[i] = aa[aans.size() - 1 - i];
      |                      ^~
Language: C++

    #include <bits/stdc++.h>
    using namespace std;
     
    #define pb push_back
    #define ll long long
    #define mp make_pair

    int main()
    {
        ios_base::sync_with_stdio(false);
        cin.tie(NULL);
        ll n;
        cin >> n;
        vector<char> v;
        if(n % 26 == 0){    
            while(n > 27){    
            ll a = n % 26;
            if(a==0)a = (122 -96);
            n = n / 26;
            int k = (int)a + 96;
            v.pb((char)k);
            }
            int p = n/26;
            p--;
            if(p == 0)p = (122- 96);
            int k = p + 96;
            v.pb((char)k)
            reverse(v.begin(), v.end());
            for(int i = 0; i < (int)v.size(); ++i){ 
                cout << v[i];
            }
            return 0;
        }
        while(n >= 27){    
            ll a = n % 26;
            if(a==0)a = (122 -96);
            n = n / 26;
            int k = (int)a + 96;
            v.pb((char)k);
        }
        int b = n % 26;
        if(b==0)b = (122 - 96);
        int k = b + 96;
        v.pb((char)k);
        reverse(v.begin(), v.end());
        for(int i = 0; i < (int)v.size(); ++i){ 
            cout << v[i];
        }
        return 0;
    }

Compiler output:
a.cc: In function 'int main()':
a.cc:27:26: error: expected ';' before 'reverse'
   27 |             v.pb((char)k)
      |                          ^
      |                          ;
   28 |             reverse(v.begin(), v.end());
      |             ~~~~~~~
Language: C++

#include <bits/stdc++.h>
typedef long long ll;
using namespace std;
const int INF = 1e9;
const int MOD = 1e9+7;
const ll LINF = 1e18;

#define FOR(i,a,b) for(int i=(a);i<(b);++i)
#define REP(i,n) for(int i=0;i<(n);++i)
#define COUT(x) cout<<(x)<<"\n"

int main(){
    ll n;cin >> n;
    vector<int> vec;
    while(n>0){
        ll num = (n+25)%26; 
        vec.push_back(num);
        (n-1)/=26;
    }
    string str = "";
    REP(i,vec.size()){
        str +=  char(vec[i]+97);
    }
    reverse(str.begin(),str.end());
    COUT(str);
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:18:11: error: lvalue required as left operand of assignment
   18 |         (n-1)/=26;
      |         ~~^~~
Language: C++

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

int main() {
    string result="",alpha[] = {"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"};
    unsigned long N;
    int temp=0,temp2=0;
    cin >> N;

    while(true) {
        temp = N % 26;
        if (temp == 0) {
            temp = 25;
        } else {
            temp -= 1;
        }
        // cout << temp  << endl;

        result += alpha[temp];
        if (N==26 && temp2 == 25) {
            break;
        }
        N = N / 26;
        if ((N <= 0) ) {
            break;
        }
        temp2 = temp;
    }


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

    cout << result << endl;
    

  	return 0;
}



Compiler output:
a.cc:21:19: error: stray '\16' in program
   21 |             break;<U+000E>
      |                   ^~~~~~~~
Language: C++

#include <iostream>
#include <vector>
#include <algorithm>
#include <cmath>
#include <string>
#include <numeric>
#include <cstdint>
#include <iomanip>
#include <set>
#include <map>
#include <unordered_map>
using ll = long long;
#define fast_io(); std::ios_base::sync_with_stdio(0); std::cin.tie(0); std::cout.tie(0);

int main(){
    ll n; std::cin >> n;

    std::vector<ll> v;
    while(n>0){
        int a = n%26;
        n/=26;
        v.push_back(a);
    }

    //1引く
    v[0]--;
    for(int i=1; i<v.size(); i++){
        if(v[i-1]<0){
            v[i-1] = 25;
            v[i]--;
        }
    }

    std::reverse(v.begin(), v.end());

    if(v[0]==0) std::remove(v,0);
    for(int i=1; i<v.size(); i++){
        char c = 'a' + v[i];
        std::cout << c;
    }

    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:36:28: error: no matching function for call to 'remove(std::vector<long long int>&, int)'
   36 |     if(v[0]==0) std::remove(v,0);
      |                 ~~~~~~~~~~~^~~~~
In file included from /usr/include/c++/14/algorithm:61,
                 from a.cc:3:
/usr/include/c++/14/bits/stl_algo.h:788:5: note: candidate: 'template<class _FIter, class _Tp> _FIter std::remove(_FIter, _FIter, const _Tp&)'
  788 |     remove(_ForwardIterator __first, _ForwardIterator __last,
      |     ^~~~~~
/usr/include/c++/14/bits/stl_algo.h:788:5: note:   candidate expects 3 arguments, 2 provided
In file included from /usr/include/c++/14/algorithm:86:
/usr/include/c++/14/pstl/glue_algorithm_defs.h:224:1: note: candidate: 'template<class _ExecutionPolicy, class _ForwardIterator, class _Tp> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator> std::remove(_ExecutionPolicy&&, _ForwardIterator, _ForwardIterator, const _Tp&)'
  224 | remove(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last, const _Tp& __value);
      | ^~~~~~
/usr/include/c++/14/pstl/glue_algorithm_defs.h:224:1: note:   candidate expects 4 arguments, 2 provided
In file included from /usr/include/c++/14/cstdio:42,
                 from /usr/include/c++/14/ext/string_conversions.h:45,
                 from /usr/include/c++/14/bits/basic_string.h:4154,
                 from /usr/include/c++/14/string:54,
                 from /usr/include/c++/14/bits/locale_classes.h:40,
                 from /usr/include/c++/14/bits/ios_base.h:41,
                 from /usr/include/c++/14/ios:44,
                 from /usr/include/c++/14/ostream:40,
                 from /usr/include/c++/14/iostream:41,
                 from a.cc:1:
/usr/include/stdio.h:158:12: note: candidate: 'int remove(const char*)'
  158 | extern int remove (const char *__filename) __THROW;
      |            ^~~~~~
/usr/include/stdio.h:158:12: note:   candidate expects 1 argument, 2 provided
Language: C++

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

#define ll long long
#define ull unsigned long long

using namespace std;

int main() {
	ull N;
	cin >> N;

	ull cnt = 0;
	ull step = 1;
	ull base = 1;
	while (true) {
		base *= 26;
		cnt += base;
		if (N <= cnt){
			break;
		}
		step++;
	}

	ull div = 26;
	vector <char> s;
	for (int ii = 0; ii < step; ++ii){
		ull rem = N % div;
		char moji = 96 + rem;
		if (rem == 0) moji = 'z'
		s.push_back(moji);
		cout << moji << endl;

		N -= rem;
		N /= div;
	}

	for (int ii = s.size() - 1; ii >= 0; --ii){
		cout << s[ii];
	}
	cout << "\n";

	return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:30:41: error: expected ';' before 's'
   30 |                 if (rem == 0) moji = 'z'
      |                                         ^
      |                                         ;
   31 |                 s.push_back(moji);
      |                 ~
Language: Java

import java.util.*;
public class Main  {
   public static void main(String[] args) {
      Scanner sc = new Scanner(System.in);

      long n = sc.nextLong();
      result(n);   
   }
   
   public static void result(long n) {
      if (n <= 26) {
         print(n);
      } else if (n < 702) {
         print(n/26);
         print(n%26);
      } else if (n == 702) {
         System.out.print("zz");
      } else if (n < 18278) {
         result(n/26);
         print(n%26);
      } else if (n == 18278) {
         System.out.print("zzz");
      } else if (n < 475254) {
         result(n/26);
         print(n%26);
      } else if (n == 475254) {
         System.out.print("zzzz");
      } else {
         result(n/26);
         print(n%26);
      } else if (n == 12356630){
         System.out.print("zzzzz");
      } else {
         result(n/26);
         result(n%26);
       } else if (n == 321272406){
         System.out.print("zzzzzz");
      } else {
         result(n/26);
         result(n%26);
      } else if (n == 8353082582){
         System.out.print("zzzzzzz");
      } else {
         result(n/26);
         result(n%26);
      }
   }
   
   
   public static void print(long n) {
      int s = (int)n;
      char[] a = {'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'};
      System.out.print(a[s]);
   }
}

Compiler output:
Main.java:31: error: 'else' without 'if'
      } else if (n == 12356630){
        ^
Main.java:36: error: 'else' without 'if'
       } else if (n == 321272406){
         ^
Main.java:41: error: integer number too large
      } else if (n == 8353082582){
                      ^
Main.java:41: error: 'else' without 'if'
      } else if (n == 8353082582){
        ^
4 errors
Language: C++

#include <iostream>
#include <vector>
#include <utility>
#include <string>
#include <map>
#include <algorithm>
#include <stdio.h>
#include <set>
#include <cmath>

typedef long long ll;

using namespace std;


int main(){
   ll n;
   cin >> n;
   n -= 1;
   char a = 'a';
   char b = 'z';
   char ch;
   if(n < 26) {
       ch = (int)a + n;
       cout << ch << endl;
       return 0;
   }
   
   ll len = 2;
   n -= 26;

   while(n >= pow(26, len)){
       len += 1;
   }

   string ans = "";
   ll ch = n;
   for(int i = 0; i < len; i++){
       string ans_char {char((int)'a' + ch / pow(26, len - i))}
       ans += ans_char;
       ch = ch % pow(26, len - i));
   }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:37:7: error: conflicting declaration 'll ch'
   37 |    ll ch = n;
      |       ^~
a.cc:22:9: note: previous declaration as 'char ch'
   22 |    char ch;
      |         ^~
a.cc:40:8: error: expected ',' or ';' before 'ans'
   40 |        ans += ans_char;
      |        ^~~
a.cc:41:16: error: invalid operands of types 'char' and '__gnu_cxx::__promote<double>::__type' {aka 'double'} to binary 'operator%'
   41 |        ch = ch % pow(26, len - i));
      |             ~~ ^ ~~~~~~~~~~~~~~~~
      |             |       |
      |             char    __gnu_cxx::__promote<double>::__type {aka double}
Language: C++

n = int(input())
N = 1000000000000001
x = 26
flag = True
i = 1
alp = ['z', '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']
ans = []
while flag:
    if n <= x:
        if n > 26:
            n -= 26**(i-1)
        m = 26
        k = 0
        ans = ['a' for j in range(i)]
        while n != 0:
            a = n % 26
            ans[i-1-k] = alp[a]
            n //= 26
            k += 1
        flag = False
    else:
        x += 26**(i+1)
        i += 1
for j, a_i in enumerate(ans):
    print(a_i, end='')
print()

Compiler output:
a.cc:25:20: error: empty character constant
   25 |     print(a_i, end='')
      |                    ^~
a.cc:1:1: error: 'n' does not name a type
    1 | n = int(input())
      | ^
Language: C++

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

int ww='a'-1;
int64_t ppa,ppb;

int main(){
  int64_t N;
  scanf("%lld",&N);
  int64_t S=26;
  int i=1;
  while(true){
    if(N<S){
      int64_t K;
      K=N-S/26;
      int S[i];
      int qqq=0;
      while(K!=0){
        ppa=K%26;
        K/=26;
        S[qqq]=ppa;
        qqq++;
      }
      for(int g=0;g<i;g++){if(g!=0){printf(" ");}
        printf("%c",(char)S[i-g]);}
      printf("\n");
      return 0;
    }
    else{i++;S=26*S+26);}
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:29:23: error: expected ';' before ')' token
   29 |     else{i++;S=26*S+26);}
      |                       ^
      |                       ;
Language: C++

#include <iostream>
#include <vector>
#include <algorithm>
#include <cmath>
#include <string>
#include <numeric>
#include <cstdint>
#include <iomanip>
#include <set>
#include <map>
#include <unordered_map>
using ll = long long;
#define fast_io(); std::ios_base::sync_with_stdio(0); std::cin.tie(0); std::cout.tie(0);

int main(){
    ll n; std::cin >> n;

    std::vector<ll> v;
    while(n>0){
        int a = n%26;
        n/=26;
        v.push_back(a);
    }

    //1引く
    v[0]--;
    for(int i=1; i<v.size(); i++){
        if(v[i-1]<0){
            v[i-1] = 25;
            v[i]--;
        }
    }

    std::reverse(v.begin(), v.end());

    if(v[0]==0) std::remove(v,0)
    for(int i=1; i<v.size(); i++){
        char c = 'a' + v[i];
        std::cout << c;
    }

    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:36:28: error: no matching function for call to 'remove(std::vector<long long int>&, int)'
   36 |     if(v[0]==0) std::remove(v,0)
      |                 ~~~~~~~~~~~^~~~~
In file included from /usr/include/c++/14/algorithm:61,
                 from a.cc:3:
/usr/include/c++/14/bits/stl_algo.h:788:5: note: candidate: 'template<class _FIter, class _Tp> _FIter std::remove(_FIter, _FIter, const _Tp&)'
  788 |     remove(_ForwardIterator __first, _ForwardIterator __last,
      |     ^~~~~~
/usr/include/c++/14/bits/stl_algo.h:788:5: note:   candidate expects 3 arguments, 2 provided
In file included from /usr/include/c++/14/algorithm:86:
/usr/include/c++/14/pstl/glue_algorithm_defs.h:224:1: note: candidate: 'template<class _ExecutionPolicy, class _ForwardIterator, class _Tp> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator> std::remove(_ExecutionPolicy&&, _ForwardIterator, _ForwardIterator, const _Tp&)'
  224 | remove(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last, const _Tp& __value);
      | ^~~~~~
/usr/include/c++/14/pstl/glue_algorithm_defs.h:224:1: note:   candidate expects 4 arguments, 2 provided
In file included from /usr/include/c++/14/cstdio:42,
                 from /usr/include/c++/14/ext/string_conversions.h:45,
                 from /usr/include/c++/14/bits/basic_string.h:4154,
                 from /usr/include/c++/14/string:54,
                 from /usr/include/c++/14/bits/locale_classes.h:40,
                 from /usr/include/c++/14/bits/ios_base.h:41,
                 from /usr/include/c++/14/ios:44,
                 from /usr/include/c++/14/ostream:40,
                 from /usr/include/c++/14/iostream:41,
                 from a.cc:1:
/usr/include/stdio.h:158:12: note: candidate: 'int remove(const char*)'
  158 | extern int remove (const char *__filename) __THROW;
      |            ^~~~~~
/usr/include/stdio.h:158:12: note:   candidate expects 1 argument, 2 provided
a.cc:37:18: error: 'i' was not declared in this scope
   37 |     for(int i=1; i<v.size(); i++){
      |                  ^
Language: C

#include <stdio.h>

int main(void){
  
    long long int input;
    int cnt, name[100];
    //int memo;
  
    scanf("%lld", &input);
        //memo = input;
  
    //--;
    /*for(int j = 1; j <= memo; j++){  
        input = j;
        cnt = 0;*/
        
    for(int i = 0; ; i++){
        if(input == 0){
            break;
        } else {
	        name[i] = input % 26;
	        input = input / 26;
	        printf("%d %lld\n", name[i], input);
	        cnt++;
        }
    }
    
    for(int i = 0; i < cnt; i++){
        if(name[i] == 0){
            name[i] = 26;
            name[i + 1]--;
            if(name[cnt - 1] == 0){
                cnt--;
            }
        }
    }
    
    //name[0];
    cnt--;
    
    printf("%d: ", j);                                 
    for(int i = 0; i <= cnt; i++){
        //printf("%lld", name[cnt - i]);
        printf("%c", name[cnt - i] + 'a' - 1);
    }
    printf("\n\n");
    
    //}
  
    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:41:20: error: 'j' undeclared (first use in this function)
   41 |     printf("%d: ", j);
      |                    ^
main.c:41:20: note: each undeclared identifier is reported only once for each function it appears in
Language: C++

#include"bits/stdc++.h"
#include<math.h>
#include<vector>
#include<algorithm>
using namespace std;
int64_t i,j,k,l;//preparation for
int main(){
    int n,l,a[20];
    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:102:2: error: expected '}' at end of input
  102 | }
      |  ^
a.cc:7:11: note: to match this '{'
    7 | int main(){
      |           ^
Language: C++

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

template <typename T> T gcd(T x, T y) { return( y ? gcd(y, x % y) : x); }
template <typename T> T lcm(T x, T y) { return( x / gcd(x, y) * y); }
template <typename T> void printVec(vector<T> &vec) {
  cout << "";
  for (auto it = vec.begin(); it != vec.end(); ++it) {
    cout << *it << " ";
  }
  cout << endl;
}
string data = "abcdefghijklmnopqrstuvwxyz";
// 1000000000000001
int main() {
  int n;

  cin >> n;
  int x1, x2;
  vector <int> d(16);
  int counter = 0;
  while (true) {
    x1 = n / 26;
    if (x1 > 26) {
      d[counter] = n % 26;
      counter = counter + 1;
      n = x1;
    } else {
      d[counter] = n % 26;
      d[counter + 1] = n / 26;
      break;
    }
  }
  printVec(d);
  for (int i = counter + 1; i >= 0; i--) {
    cout << data[d[i] - 1];
  }
  cout << endl;
	return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:38:13: error: reference to 'data' is ambiguous
   38 |     cout << data[d[i] - 1];
      |             ^~~~
In file included from /usr/include/c++/14/string:53,
                 from /usr/include/c++/14/bitset:52,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:52,
                 from a.cc:1:
/usr/include/c++/14/bits/range_access.h:344:5: note: candidates are: 'template<class _Tp> constexpr const _Tp* std::data(initializer_list<_Tp>)'
  344 |     data(initializer_list<_Tp> __il) noexcept
      |     ^~~~
/usr/include/c++/14/bits/range_access.h:334:5: note:                 'template<class _Tp, long unsigned int _Nm> constexpr _Tp* std::data(_Tp (&)[_Nm])'
  334 |     data(_Tp (&__array)[_Nm]) noexcept
      |     ^~~~
/usr/include/c++/14/bits/range_access.h:323:5: note:                 'template<class _Container> constexpr decltype (__cont.data()) std::data(const _Container&)'
  323 |     data(const _Container& __cont) noexcept(noexcept(__cont.data()))
      |     ^~~~
/usr/include/c++/14/bits/range_access.h:312:5: note:                 'template<class _Container> constexpr decltype (__cont.data()) std::data(_Container&)'
  312 |     data(_Container& __cont) noexcept(noexcept(__cont.data()))
      |     ^~~~
a.cc:15:8: note:                 'std::string data'
   15 | string data = "abcdefghijklmnopqrstuvwxyz";
      |        ^~~~
Language: C++

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

int main() {
  int n, j= 0;
  cin >> n;
  vector<char> alp(26);
  alp = {'z','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' };
  vector<char> ans(10,'0');
  
  while (n > 0)
  {
     ans[j]= alp[n% pow(26,j+1)];
     
     j++;
  }
  for (int i = 10; i > 0; i--)
  {
     if (ans[i] == '0')
     {
        ans.pop_back();
     }
     
  }
  reverse(ans.begin(), ans.end());
  for (int i = 0; i < ans.size(); i++)
  {
     cout << ans[i];
  }
  

  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:19: error: invalid operands of types 'int' and '__gnu_cxx::__promote<double>::__type' {aka 'double'} to binary 'operator%'
   13 |      ans[j]= alp[n% pow(26,j+1)];
      |                  ~^ ~~~~~~~~~~~
      |                  |     |
      |                  int   __gnu_cxx::__promote<double>::__type {aka double}
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main(){
long long int n;
  cin>>n;
  char str[100]; 
    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;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:28:5: error: return-statement with no value, in function returning 'int' [-fpermissive]
   28 |     return;
      |     ^~~~~~
Language: C++

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

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

using namespace std;

void func(int64_t n){
	int64_t m;
	string s ="";

	while(true){
		m = n%26;
		if(m == 0){
			m =26;
			n = (n-1)/26;
		}else{
			n = n/ 26;
		}
		s.push_back('a'+m-1);
		if(n==0 || (n==1&&m==26))break;
		
	}
	reverse(s.begin(),s.end());
	cout << s;
}

int main() {

	int64_t n;
	cin >> n;
	string s ="";

	if(n == 52)cout << "az";
	else{
	while(true){
		m = n%26;
		if(m == 0){
			m =26;
			n = (n-1)/26;
		}else{
			n = n/ 26;
		}
		s.push_back('a'+m-1);
		if(n==0 || (n==1&&m==26))break;
		
	}
	reverse(s.begin(),s.end());
	cout << s;
	/*
	for(int i =6500;i<6600;i++){
		func(i);
		cout << " ";
	}
	*/
	}
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:41:17: error: 'm' was not declared in this scope
   41 |                 m = n%26;
      |                 ^
Language: Java

import java.util.*;
public class Main{
   public static void main(String[] args) {
     Scanner sc = new Scanner(System.in);
     long  n = sc.nextLong();
     int i = 0,j;
     long tmp = n;
     while(true){
       i++;
       if(tmp<=(int)Math.pow(26,i)){
          break;        
       }else{
         tmp-=(int)Math.pow(26,i);
         tmp/26;
       }
     }
     System.out.println(i);
     char[] ans = new char[1000];
     for (j = 1;j<i;j++){
       n-=(int)Math.pow(26,j);
     }
     n--;
     for(j=1;j<=i;j++){
       ans[j-1] = 'a';
       ans[j-1] += n%26;
       n -= n%26;
       n /=26;
     }
     for(j=i-1;j>=0;j--){
       System.out.print(ans[j]);
     }
     
   }
   
}


Compiler output:
Main.java:14: error: not a statement
         tmp/26;
            ^
1 error
Language: C++

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


long long main() {
	long long N;
	cin >> N;
	vector<long long> a(N);
	for (int i = 0; i < N; i++) {
		cin >> a.at(i);
	}
	long long Q;
	cin >> Q;
	vector<long long> b(Q);
	vector<long long> c(Q);
	for (long long i = 0; i < Q; i++) {
		cin >> b.at(i) >> c.at(i);
	}
	
	for (long long i = 0; i < Q; i++) {
		for (long long j = 0; j < N; j++) {
			if (a.at(j) == b.at(i)) {
				a.at(j) = c.at(i);
			}
		}
		long long x = 0;
        long long sum = 0;
		for(long long k=0;k<N;k++){
          x += a.at(k);
          sum = max(x, k);
        }
		cout << sum << endl;
	}

	}



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

#include<stdio.h>

int main(void){
int n;
  int i,ans[256],j=0,num;
  scanf("%d", &num);
  n=num;
  do{
    ans[j]=n%26;
    n=(int)(n/26);  
    if(n>27){  j++;}
  }while(n>27);
   if(num>26){ printf("%c",(char)(n+96));}
  
  for(i=0;i<j+1;i++){
  printf("%c",(char)(ans[j-i]+96));
  }

Compiler output:
main.c: In function 'main':
main.c:17:3: error: expected declaration or statement at end of input
   17 |   }
      |   ^
Language: C++

    b = 1;
    kin = 1;
    nin = 0;
    cin >> n;
    n = n * 1LL;
    sin = 0;
    //if (n > 999999999000000)
    //{
        //sin = n - 999999999000000;
        //n = 999999999000000;
    //}
    while (ii == 0)
    {
        kin = kin * 26LL;
        a = n - kin;
        nin += kin;
        if (a <= 0)
        {
            break;
        }
        b = b + 1LL;
    }
    pypy = n;
    vector<string> ans(b);
    for (long long int i = 0; i < b; i++)
    {
        //if (sin != 0)
        //{
        //son = (pypy % 26LL + sin % 26LL)%26;
        //sin = sin / 26LL;
         //pypy = pypy /26LL;
        //}else{
        son = pypy % 26LL;
        if(son != 0){son = son - 1;
                    }else{
          son = 25;}
        pypy = pypy / 26LL;
        //}
        ans.at(i) = A.at(son);
    }
    if (sin != 0)
    {
        while (ii == 0)
        {
            kin = kin * 26LL;
            a = sin - kin;
            nin += kin;
            if (a <= 0)
            {
                nin -= kin;
                break;
            }
            b = b + 1LL;
        }
    }
    for (long long int i = b - 1; i >= 0; i = i -1)
    {
        cout << ans.at(i);
    }
}

Compiler output:
a.cc:1:5: error: 'b' does not name a type
    1 |     b = 1;
      |     ^
a.cc:2:5: error: 'kin' does not name a type
    2 |     kin = 1;
      |     ^~~
a.cc:3:5: error: 'nin' does not name a type
    3 |     nin = 0;
      |     ^~~
a.cc:4:5: error: 'cin' does not name a type
    4 |     cin >> n;
      |     ^~~
a.cc:5:5: error: 'n' does not name a type
    5 |     n = n * 1LL;
      |     ^
a.cc:6:5: error: 'sin' does not name a type
    6 |     sin = 0;
      |     ^~~
a.cc:12:5: error: expected unqualified-id before 'while'
   12 |     while (ii == 0)
      |     ^~~~~
a.cc:23:5: error: 'pypy' does not name a type
   23 |     pypy = n;
      |     ^~~~
a.cc:24:5: error: 'vector' does not name a type
   24 |     vector<string> ans(b);
      |     ^~~~~~
a.cc:25:5: error: expected unqualified-id before 'for'
   25 |     for (long long int i = 0; i < b; i++)
      |     ^~~
a.cc:25:31: error: 'i' does not name a type
   25 |     for (long long int i = 0; i < b; i++)
      |                               ^
a.cc:25:38: error: 'i' does not name a type
   25 |     for (long long int i = 0; i < b; i++)
      |                                      ^
a.cc:41:5: error: expected unqualified-id before 'if'
   41 |     if (sin != 0)
      |     ^~
a.cc:56:5: error: expected unqualified-id before 'for'
   56 |     for (long long int i = b - 1; i >= 0; i = i -1)
      |     ^~~
a.cc:56:35: error: 'i' does not name a type
   56 |     for (long long int i = b - 1; i >= 0; i = i -1)
      |                                   ^
a.cc:56:43: error: 'i' does not name a type
   56 |     for (long long int i = b - 1; i >= 0; i = i -1)
      |                                           ^
a.cc:60:1: error: expected declaration before '}' token
   60 | }
      | ^
Language: Java

#include <bits/stdc++.h>

using namespace std;

void solve(){
	long long int n; cin>>n;
	int category = 0;
	long long int temp = n;
	while(temp>=1){
		category++;
		temp/=26;
	}
	std::vector<char> v(category);
	char a[27] = {' ','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'};
	for(int i = category-1; i >= 0; i--){
		v[i] = a[n%26];
		n/=26;
	}
	for(char c : v){
		cout << c;
	}
	cout << "\n";
}

int main(){
	#ifndef ONLINE_JUDGE
    freopen("input.txt", "r", stdin);
    freopen("output.txt", "w", stdout);
	#endif
	ios_base::sync_with_stdio(false);
	cin.tie(NULL);
	int t=1;
	while(t--){
		solve();
	}
	return 0;
}


Compiler output:
Main.java:1: error: illegal character: '#'
#include <bits/stdc++.h>
^
Main.java:1: error: class, interface, enum, or record expected
#include <bits/stdc++.h>
         ^
Main.java:6: error: not a statement
	long long int n; cin>>n;
	^
Main.java:6: error: not a statement
	long long int n; cin>>n;
	     ^
Main.java:6: error: not a statement
	long long int n; cin>>n;
	                    ^
Main.java:8: error: not a statement
	long long int temp = n;
	^
Main.java:8: error: not a statement
	long long int temp = n;
	     ^
Main.java:13: error: not a statement
	std::vector<char> v(category);
	                ^
Main.java:14: error: not a statement
	char a[27] = {' ','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'};
	              ^
Main.java:20: error: not a statement
		cout << c;
		     ^
Main.java:22: error: not a statement
	cout << "\n";
	     ^
Main.java:5: error: unnamed classes are a preview feature and are disabled by default.
void solve(){
^
  (use --enable-preview to enable unnamed classes)
Main.java:6: error: ';' expected
	long long int n; cin>>n;
	    ^
Main.java:6: error: ';' expected
	long long int n; cin>>n;
	         ^
Main.java:8: error: ';' expected
	long long int temp = n;
	    ^
Main.java:8: error: ';' expected
	long long int temp = n;
	         ^
Main.java:14: error: ']' expected
	char a[27] = {' ','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'};
	       ^
Main.java:14: error: ';' expected
	char a[27] = {' ','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'};
	                 ^
Main.java:26: error: illegal character: '#'
	#ifndef ONLINE_JUDGE
	^
Main.java:29: error: illegal character: '#'
	#endif
	^
Main.java:26: error: ';' expected
	#ifndef ONLINE_JUDGE
	                    ^
Main.java:30: error: ';' expected
	ios_base::sync_with_stdio(false);
	        ^
22 errors
Language: C++

#include<iostream>
#include<bits/stdc++.h>
using namespace std;
void printString(long long int n) 
{ 
    char str[LLONG_MAX]; // To store result (Excel column name) 
    long long int i = 0; // To store current index in str which is result 
  
    while (n > 0) { 
        // Find remainder 
        long long int rem = n % 26; 
  
        // If remainder is 0, then a 'Z' must be there in output 
        if (rem == 0) { 
            str[i++] = 'z'; 
            n = (n / 26) - 1; 
        } 
        else // If remainder is non-zero 
        { 
            str[i++] = (rem - 1) + 'a'; 
            n = n / 26; 
        } 
    } 
    str[i] = '\0'; 
  
    // Reverse the string and print result 
    reverse(str, str + strlen(str)); 
    cout << str << endl; 
  
    return; 
} 
int main(){
  long long int n;
  cin>>n;
  printString(n);
  
}

Compiler output:
a.cc: In function 'void printString(long long int)':
a.cc:4:6: error: total size of local objects 9223372036854775824 exceeds maximum 9223372036854775296
    4 | void printString(long long int n)
      |      ^~~~~~~~~~~