criyle/codenet-compile-errors huggingface dataset:
Language: Java

import java.util.Scanner;
public class MainC {

	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		long n = scan.nextLong();
		String[] list = {"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"};
		int exp = 0;
		String name = "";
		
		for(int i=1;i<=11;i++) {
			if(Math.pow(26,i)+26 >= n) {
				exp = i;
				break;
			}
		}
		long s = 0;
		String[] namelist = new String[exp];
		for(int j=0;j<exp;j++) {
			if(n > 26) {
				s = n % 26;
				n = n / 26;
				if(s == 0) {
					s = 26;
					n = n - 1;
				}
				namelist[j] = list[(int) (s-1)];
			}else {
				namelist[j] = list[(int) (n-1)];
			}
		}
		for(int k=exp-1;k>=0;k--) {
			name = name + namelist[k];
		}
		System.out.println(name);
	}

}


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

import java.util.*;
public class Main{

     public static void main(String []args){
    
        int n;
        
        HashMap<Integer,Integer> map=new HashMap<Integer,Integer>();
        
        Scanner in = new Scanner(System.in);
        n = in.nextInt();
        
        int arr[]= new int[n];
        
        int sum = 0;
        
        for(int i=0;i<n;i++){
            
            int a = in.nextInt();
            arr[i]=a;
            sum = sum+a;
            map.put(A[i],map.getOrDefault(A[i],0) + 1);

        }
        
        int q= in.nextInt();
        
        while(q>0){
            
            int b = in.nextInt();
            int c = in.nextInt();
            
            if(map.containsKey(b))
                sum = b * map.get(b) - c *map.get(b);
                System.out.println(sum);
            else
                System.out.println(sum);
            
            q--;
        }
             
              }
}

Compiler output:
Main.java:36: error: 'else' without 'if'
            else
            ^
1 error
Language: C++

#include <iostream>
#include <string>
using namespace std;
typedef long long ll;

int main(void)
{
  ll n;
  cin >> n;
  ll num = n;
  string c;
  
  while (num>0){
    c.push_back(num%26 + 'a');
    num /= 26;
  }
  reverse(c.begin(), c.end());
  
  cout << c << endl;
  
  return 0;
}

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

#include<iostream>
using namespace std;
int main(){
  long long n;
  cin>>n;
  string res="";
  while(n){
   --n;
   res+=(char)('a'+(n%26));
   n/=26;
  }
reverse(res.begin(),res.end());
cout<<res<<endl;
return 0;
}

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

#include<bits/stdc++.h>
using namespace std;
int main()
{
        long long  k,q,r;
        string s;
        vector<char >v;
        cin>>x;
        /*if(x<26)
            cout<<char('a'+x)<<endl;*/
        while(x>0)
        {
            r=(x-1)%26;
            v.push_back (char('a'+r));
           if(r==25)
                {
                x--;
                }
                           x=x/26;
        }
        for(int i=v.size()-1;i>=0;i--)
            cout<<v[i];
            cout<<endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:14: error: 'x' was not declared in this scope
    8 |         cin>>x;
      |              ^
Language: C++

#include<iostream>
#include<string>

using namespace std;

int main(){
	long long n;
	cin>>n;
	string a="";
	while(n>0){
		n--;
		a+=(char)97+n%26;
		n/=26; 
	}
	for(int i=1;i<=size.a();i++){
		cout<<ans[i];
	}
}

Compiler output:
a.cc: In function 'int main()':
a.cc:15:29: error: overloaded function with no contextual type information
   15 |         for(int i=1;i<=size.a();i++){
      |                             ^
a.cc:16:23: error: 'ans' was not declared in this scope; did you mean 'abs'?
   16 |                 cout<<ans[i];
      |                       ^~~
      |                       abs
Language: C++

#include <bits/stdc++.h>

int main() {
  ios::sync_with_stdio(false);
  std::cin >> N;
  std::string str;
  while (N > 0) {
    str += 'a' + N % 26;
    N /= 26;
  }
  std::cout << str;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:4:3: error: 'ios' has not been declared
    4 |   ios::sync_with_stdio(false);
      |   ^~~
a.cc:5:15: error: 'N' was not declared in this scope
    5 |   std::cin >> N;
      |               ^
Language: C++

string s="";
        
        while(n>0)
        {
            n=n-1;
            char c;
            int i='a'+(n%26);
            //cout<<i<<" ";
            if(i==122)
                c='z';
            else
                c=i;
            s+=c;
            n=n/26;
        }
        
        reverse(s.begin(),s.end());

Compiler output:
a.cc:1:1: error: 'string' does not name a type
    1 | string s="";
      | ^~~~~~
a.cc:3:9: error: expected unqualified-id before 'while'
    3 |         while(n>0)
      |         ^~~~~
a.cc:17:16: error: expected constructor, destructor, or type conversion before '(' token
   17 |         reverse(s.begin(),s.end());
      |                ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
long long pow_26(int x){
	long long p = 1;
	
	for (int i=1; i<=x; i++){
		p *= 26;
	}
	
	return p;
}

int main(){
   long long n;
   cin >> n;
   
   string ans="";

   for (int i=1; i<99; i++){
      if (n <= pow_26(i){
         n--;
	     for (int j=0; j<i; j++){
	       ans += (char)('a' + n%26);
           n /= 26;
         }
	     break;
      }
      else{
         n -= pow_26(i);
      }
    }
    
	for (int i=ans.size()-1; i>=0; i--)
	   cout << ans[i];
	
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:20:25: error: expected ')' before '{' token
   20 |       if (n <= pow_26(i){
      |          ~              ^
      |                         )
a.cc:31:5: error: expected primary-expression before '}' token
   31 |     }
      |     ^
Language: Java

import java.util.*;
class Main {
  	static Scanner scan = new Scanner(System.in);
  	public static void main(String[] args) {
  		long N = scan.nextlong();
    	System.out.println(dogName(N));
  	}
 	private static String dogName(long N) {
    	String ans = "";
      	long temp = N;
      	while(temp > 0) {
            temp--;
            long rem = (temp % 26);
        	char cc = (char)('a' + rem);
          	ans += cc;
          	temp /= 26;
        }
       return ans;
 	}
}

Compiler output:
Main.java:5: error: cannot find symbol
  		long N = scan.nextlong();
  		             ^
  symbol:   method nextlong()
  location: variable scan of type Scanner
1 error
Language: Java

import java.util.*;
class Main {
  	static Scanner scan = new Scanner(System.in);
  	public static void main(String[] args) {
  		long N = scan.long();
    	System.out.println(dogName(N));
  	}
 	private static String dogName(long N) {
    	String ans = "";
      	long temp = N;
      	while(temp > 0) {
            temp--;
            long rem = (temp % 26);
        	char cc = (char)('a' + rem);
          	ans += cc;
          	temp /= 26;
        }
       return ans;
 	}
}

Compiler output:
Main.java:5: error: <identifier> expected
  		long N = scan.long();
  		              ^
Main.java:5: error: ';' expected
  		long N = scan.long();
  		                  ^
2 errors
Language: C++

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

long long n;
string ans;

int main()
{
    scanf("%lld",&n);
    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:13:20: error: expected primary-expression before '%' token
   13 |         ans+='a'+n-%26;
      |                    ^
Language: C++

#include <bits/stdc++.h>
#include <ext/pb_ds/assoc_container.hpp>
#include <ext/pb_ds/tree_policy.hpp>

using namespace std;
using namespace __gnu_pbds;

typedef long long ll;
typedef unsigned long long ull;
typedef pair<ll, ll> pll;
typedef pair<string, string> pss;
typedef vector<ll> vll;
typedef vector<pll> vpll;
typedef vector<vll> vvll;
typedef vector<vpll> vvpll;
typedef unordered_map<ll, ll> um;
typedef unordered_set<ll> us;

#define fastio ios::sync_with_stdio(false), cin.tie(NULL), cout.tie(NULL);
#define ts ll t; in(t) while (t--) solve();
#define ks ll t; in(t) FOR(i, 1, t+1) out("Case #" << i << ": " << solve());
#define endl '\n'
#define ln cout << endl;
#define in(x) cin >> x;
#define out(x) cout << x << endl;
#define flush cout << flush;
#define reset(a, b) memset(a, b, sizeof(a));
#define ordered_set tree<int, null_type, less<int>, rb_tree_tag, tree_order_statistics_node_update>
#define FOR(i, a, b) for (ll i = a; i < b; ++i)
#define FORI(i, a, b, c) for (ll i = a; i < b; i += c)
#define FORD(i, a, b) for (ll i = a; i > b; --i)
#define FOREACH(it, v, r) for (auto it = v.begin() + r; it != v.end(); it++)
#define FORALL(it, v) for (auto it : v)
#define F first
#define S second
#define mp make_pair
#define pb push_back
#define vin(v, x) vll v(x); FOR(i, 0, x) in(v[i])
#define all(v) v.begin(), v.end()
#define allr(v, r) v.begin(), v.begin() + r
#define showv(v) FORALL(it, v) cout << it << ' '; ln
#define printv(v) FORALL(it, v) out(it)
#define show2d(v) FORALL(it, v) { FORALL(j, it) cout << j << ' '; ln}
#define showm(v) FORALL(it, v) cout << it.F << ": " << it.S << ' '; ln
#define sortv(v) sort(all(v));
#define revv(v) reverse(all(v));
#define maxv(v) *max_element(all(v))
#define minv(v) *min_element(all(v))
#define gcd __gcd
#define checkbit(n, i) (n >> i) & 1               // check ith bit
#define bitcount __builtin_popcount               // count set bits
#define firstbitindex __builtin_ctz               // count trailing zeros
#define lastbitindex __builtin_clz                // count leading zeros
#define bitparity __builtin_parity                // check set bits are even or odd
#define findv(v, x) (find(all(v), x) != v.end())
#define findsm(u, x) (u.find(x) != u.end())
#define findstr(s, x) (s.find(x) != string::npos)
#define sz(a) a.size()
#define precise(x) cout << fixed << setprecision(x);

const ll MAXN = 2e5, MOD = 998244353, SIZE = 2e7, INF = 0x7f7f7f7f7f7f7f7f;
const double EPS = 1e-9, PI = acos(-1);
const int INFi = 0x7f7f7f7f;

//<<------Declare Variables Here----->>//
ll n;
char c[26] = {'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'};
deque<char> s;

//<<-----Implement Functions Here---->>//
void solve()
{
    in(n)
    while(n) --n,
        s.push_front(a[n % 26]), n /= 26;
	FORALL(c, s) cout << c;
}

//<<----------Start of Main---------->>//
int main()
{
    fastio
    //ts
    solve();
    return 0;
}

Compiler output:
a.cc: In function 'void solve()':
a.cc:75:22: error: 'a' was not declared in this scope
   75 |         s.push_front(a[n % 26]), n /= 26;
      |                      ^
Language: C++

#include <bits/stdc++.h>

using namespace std;

int main(void)
{
    unsigned long int N;
    cin >> N;
    stack<char> st;
    while(N != 0){
        N--;
        st.push('a' + N % 26);
        N /= 26;
    }
    while(!st.empty()){
        cout << st.top();
        st.pop();
    }
    cout << endl;
        return 0;
}
#include <bits/stdc++.h>

using namespace std;

int main(void)
{
    unsigned long int N;
    cin >> N;
    stack<char> st;
    while(N != 0){
        N--;
        st.push('a' + N % 26);
        N /= 26;
    }
    while(!st.empty()){
        cout << st.top();
        st.pop();
    }
    cout << endl;
        return 0;
}
Submission Info 
Submission Time

Compiler output:
a.cc:26:5: error: redefinition of 'int main()'
   26 | int main(void)
      |     ^~~~
a.cc:5:5: note: 'int main()' previously defined here
    5 | int main(void)
      |     ^~~~
a.cc:43:1: error: 'Submission' does not name a type
   43 | Submission Info
      | ^~~~~~~~~~
Language: C++

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

int main() {
    int n;
    cin >> n;
    
    vector<int> num;
    while (n / 26 > 0) {
        num.push_back(n % 26);
    }
    
    reverse(num.begin(), num.end());
    
    for (int i = 0; i < num.size(), i++) {
        cout << 'a' + num[i] - 1;
    }
    
    cout << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:15:40: error: expected ';' before ')' token
   15 |     for (int i = 0; i < num.size(), i++) {
      |                                        ^
      |                                        ;
Language: C

#include<iostream>
using namespace std;
int main()
{
	string s;long long n;cin>>n;
  	while(n--)
	  {
  		s=char(97+n%26)+s;
    	n/=26;
  	  }
  	cout<<s;
}


Compiler output:
main.c:1:9: fatal error: iostream: No such file or directory
    1 | #include<iostream>
      |         ^~~~~~~~~~
compilation terminated.
Language: C++

#include <bits/stdc++.h>

using namespace std;

int main() {
	ios::sync_with_stdio(false);
	cin.tie(0);

	vector<long long> a = {0}, b = {1};
	for(long long i =1; b.size() < 13; ++i) {
		a.push_back(a.back() + b.back());
		b.push_back(b.back() * 26);
	}
	long long n, len = 12;
	cin >> n;
	string ans(11, 'a');
	while(n > 0) {
		auto lb = upper_bound(a.begin(), a.end(), n) - a.begin() - 1;
		len = min(len, 11 - lb);
		ans[11 - lb] = 'a' + (n - a[lb]) / b[lb - 1];
		n -= ((n - a[lb]) / b[lb - 1] + 1) * b[lb - 1];
	}
	cout << ans.substr(len);
}

Compiler output:
a.cc: In function 'int main()':
a.cc:19:26: error: no matching function for call to 'min(long long int&, long int)'
   19 |                 len = min(len, 11 - lb);
      |                       ~~~^~~~~~~~~~~~~~
In file included from /usr/include/c++/14/algorithm:60,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:51,
                 from a.cc:1:
/usr/include/c++/14/bits/stl_algobase.h:233:5: note: candidate: 'template<class _Tp> constexpr const _Tp& std::min(const _Tp&, const _Tp&)'
  233 |     min(const _Tp& __a, const _Tp& __b)
      |     ^~~
/usr/include/c++/14/bits/stl_algobase.h:233:5: note:   template argument deduction/substitution failed:
a.cc:19:26: note:   deduced conflicting types for parameter 'const _Tp' ('long long int' and 'long int')
   19 |                 len = min(len, 11 - lb);
      |                       ~~~^~~~~~~~~~~~~~
/usr/include/c++/14/bits/stl_algobase.h:281:5: note: candidate: 'template<class _Tp, class _Compare> constexpr const _Tp& std::min(const _Tp&, const _Tp&, _Compare)'
  281 |     min(const _Tp& __a, const _Tp& __b, _Compare __comp)
      |     ^~~
/usr/include/c++/14/bits/stl_algobase.h:281:5: note:   candidate expects 3 arguments, 2 provided
In file included from /usr/include/c++/14/algorithm:61:
/usr/include/c++/14/bits/stl_algo.h:5686:5: note: candidate: 'template<class _Tp> constexpr _Tp std::min(initializer_list<_Tp>)'
 5686 |     min(initializer_list<_Tp> __l)
      |     ^~~
/usr/include/c++/14/bits/stl_algo.h:5686:5: note:   candidate expects 1 argument, 2 provided
/usr/include/c++/14/bits/stl_algo.h:5696:5: note: candidate: 'template<class _Tp, class _Compare> constexpr _Tp std::min(initializer_list<_Tp>, _Compare)'
 5696 |     min(initializer_list<_Tp> __l, _Compare __comp)
      |     ^~~
/usr/include/c++/14/bits/stl_algo.h:5696:5: note:   template argument deduction/substitution failed:
a.cc:19:26: note:   mismatched types 'std::initializer_list<_Tp>' and 'long long int'
   19 |                 len = min(len, 11 - lb);
      |                       ~~~^~~~~~~~~~~~~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
const int MAX = 2e5+7;
const ll MAX1 = 1000000000000010;
const int N = 1e8+7;
const int INF = 1000000009;
const int MOD = 1000000009;
const double eps = 1e-2;
#define pb push_back
ll po(ll x, ll y) {
    if (y == 0) {
      return 1;
    }
      ll sq = po(x, y / 2);
      sq *= sq;
      sq = sq%MOD;
      if (y % 2 != 0) {
        sq *= x;
        sq = sq%MOD;
      }
      return sq;
}
ll a[MAX];
int main(){
    ios_base::sync_with_stdio(false);
    cin.tie(nullptr);
    ll x;
    cin >> x;
    ll sum = 1;
    for(int i = 1;sum < MAX1;i++){
        sum *= 26;
        a[i] = sum;
        a[i] += a[i-1];
        if(x >= a[i-1] && x <= a[i]){
            l = i;
            break;
        }
    }
    vector<char>v;
    while(x != 0){
        ll r = x%26;
        v.pb( char(r+'a'-1) );
        x /= 26;
    }
    reverse(v.begin(), v.end());
    for(auto nx:v){
        cout << nx;
    }
}

/*
1
4 2
0000


*/


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

typedef long long int ll;
using namespace std;
int main() {
	
	string res ="" ;
	ll n ;
	cin >> n ;
	
	while (n != 0){
		n--;
	char c = (n % 26 ) + 'a'+1 ; 
	
	res = add + res ;
	n /= 26 ;
	
	
	}
	
	cout << res << endl ;
	return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:5:9: error: 'string' was not declared in this scope
    5 |         string res ="" ;
      |         ^~~~~~
a.cc:1:1: note: 'std::string' is defined in header '<string>'; this is probably fixable by adding '#include <string>'
  +++ |+#include <string>
    1 | typedef long long int ll;
a.cc:7:9: error: 'cin' was not declared in this scope
    7 |         cin >> n ;
      |         ^~~
a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 | typedef long long int ll;
a.cc:13:9: error: 'res' was not declared in this scope
   13 |         res = add + res ;
      |         ^~~
a.cc:13:15: error: 'add' was not declared in this scope
   13 |         res = add + res ;
      |               ^~~
a.cc:19:9: error: 'cout' was not declared in this scope
   19 |         cout << res << endl ;
      |         ^~~~
a.cc:19:9: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:19:17: error: 'res' was not declared in this scope
   19 |         cout << res << endl ;
      |                 ^~~
a.cc:19:24: error: 'endl' was not declared in this scope
   19 |         cout << res << endl ;
      |                        ^~~~
a.cc:1:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
  +++ |+#include <ostream>
    1 | typedef long long int ll;
Language: C++

#include<iostream>

using namespace std;

int main() {
	long long 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:14:9: error: 'reverse' was not declared in this scope
   14 |         reverse(ans.begin(), ans.end());
      |         ^~~~~~~
Language: Java

public class Main {
    public static void main(String args[]) throws IOException {

	BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
	long num = Long.parseLong(br.readLine());
	List<Long> longArray = new ArrayList<Long>();
	while (num > 1) {
	    longArray.add(num % 26);
	    num /= 26;
	}
	for (int i = longArray.size() - 1; i >= 0; i--) {
	    System.out.println(longArray.size());
	    if (longArray.get(i) == 0) {
		System.out.print("z");
	    } else {
		System.out.print((char) ('a' + (longArray.get(i) - 1)));
	    }
	}
    }

}


Compiler output:
Main.java:2: error: cannot find symbol
    public static void main(String args[]) throws IOException {
                                                  ^
  symbol:   class IOException
  location: class Main
Main.java:4: error: cannot find symbol
	BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
	^
  symbol:   class BufferedReader
  location: class Main
Main.java:4: error: cannot find symbol
	BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
	                        ^
  symbol:   class BufferedReader
  location: class Main
Main.java:4: error: cannot find symbol
	BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
	                                           ^
  symbol:   class InputStreamReader
  location: class Main
Main.java:6: error: cannot find symbol
	List<Long> longArray = new ArrayList<Long>();
	^
  symbol:   class List
  location: class Main
Main.java:6: error: cannot find symbol
	List<Long> longArray = new ArrayList<Long>();
	                           ^
  symbol:   class ArrayList
  location: class Main
6 errors
Language: C++

#include <iostream>
 
int main(){
  
  int N;
  std::cin >> N;
  
  const int calculateNumber = N - 1;
  
  std::string result;
  
  int divideNumber = calculateNumber / 26;
  if (divideNumber > 0){
    while (divideNumber != 0){
      const int nextDivideNumber = divideNumber / 26;
      if (nextDivideNumber < 26){
        result += "a" + divideNumber;
        const int nextModNumber = divideNumber % 26;
        result += "a" + nextModNumber;
      } else{
        const int nextModNumber = divideNumber % 26;
        result += "a" + nextModNumber;
      }
      divideNumber = nextDivideNumberl
    }
  } else{
    const int modNumber = calculateNumber % 26;
  	result += "a" + modNumber;
  }
  std::cout << result << std::endl;
  
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:24:22: error: 'nextDivideNumberl' was not declared in this scope; did you mean 'nextDivideNumber'?
   24 |       divideNumber = nextDivideNumberl
      |                      ^~~~~~~~~~~~~~~~~
      |                      nextDivideNumber
Language: C++

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

string f (ll n) {
    if(n == 0) return "";
    //-1
    n--;
    cout<<n<<endl;
    return f(n/26) + string(1,'a'+n%26);
}

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

    cout<< f(n)<<endl;
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:15:5: error: expected initializer before 'cin'
   15 |     cin>>n;
      |     ^~~
a.cc:17:14: error: 'n' was not declared in this scope; did you mean 'yn'?
   17 |     cout<< f(n)<<endl;
      |              ^
      |              yn
Language: C

#include <stdio.h>
#include<math.h>
//Run with 'Ctrl + Alt + N'

int pow26(int n){
    int i,out=1;
    for (i=0;i<n;i++){
        out *= 26;
    }
    return out;
}

int main(void){

    int data[12]={},loop,i;
    unsigned long long int temp,N;
    
    scanf_s("%llu",&N);
    //printf("%lu\n",N);
    for(i=0; i<12;i++){
        if( pow26(i)<N && N<pow26(i+1)){
            loop = i;
            break;
        }
    }
    //printf("loop = %d\n",loop);
    temp = N;

    for(i=loop; i>=0; i--){
        data[i]= temp / pow26(i);
        temp = temp % (pow26(i));
        printf("%c",data[i]+96);
        //printf("26^%d = %d\n",i,data[i]);
    }
    return (0);
}

Compiler output:
main.c: In function 'main':
main.c:18:5: error: implicit declaration of function 'scanf_s'; did you mean 'scanf'? [-Wimplicit-function-declaration]
   18 |     scanf_s("%llu",&N);
      |     ^~~~~~~
      |     scanf
Language: C

#include <stdio.h>
#include<math.h>
//Run with 'Ctrl + Alt + N'

int pow26(int n){
    int i,out=1;
    for (i=0;i<n;i++){
        out *= 26;
    }
    return out;
}

int main(void){

    int data[12]={},loop,i;
    unsigned long long int temp,N;
    
    scanf_s("%lu",&N);
    //printf("%lu\n",N);
    for(i=0; i<12;i++){
        if( pow26(i)<N && N<pow26(i+1)){
            loop = i;
            break;
        }
    }
    //printf("loop = %d\n",loop);
    temp = N;

    for(i=loop; i>=0; i--){
        data[i]= temp / pow26(i);
        temp = temp % (pow26(i));
        printf("%c",data[i]+96);
        //printf("26^%d = %d\n",i,data[i]);
    }




    return (0);
}

Compiler output:
main.c: In function 'main':
main.c:18:5: error: implicit declaration of function 'scanf_s'; did you mean 'scanf'? [-Wimplicit-function-declaration]
   18 |     scanf_s("%lu",&N);
      |     ^~~~~~~
      |     scanf
Language: C++

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

int main(){
	long long n; cin >> n;
  	string s = "";
  
  	while(n > 0){
      	n -= 1;
    	s += 'a' + n%26;
    }
  	
  	resverse(s.begin(), s.end());
  	cout << s << endl;
}

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

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

int main(){
	long long n; cin >> n;
  	string s = "";
  
  	while(n > 0){
      	n -= 1;
    	s += 'a' + n%26;
    }
  	
  	resverse(s.begin(), s.end());
  	cout << st << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:9: error: 'resverse' was not declared in this scope
   13 |         resverse(s.begin(), s.end());
      |         ^~~~~~~~
a.cc:14:17: error: 'st' was not declared in this scope; did you mean 's'?
   14 |         cout << st << endl;
      |                 ^~
      |                 s
Language: C++

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

int main(){
	long long n; cin >> n;
  	string s = "";
  
  	while(n >= 0){
      	n -= 1;
    	s += 'a' + n%26;
    }
  	
  	resverse(s.begin(), s.end());
  	cout << st << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:9: error: 'resverse' was not declared in this scope
   13 |         resverse(s.begin(), s.end());
      |         ^~~~~~~~
a.cc:14:17: error: 'st' was not declared in this scope; did you mean 's'?
   14 |         cout << st << endl;
      |                 ^~
      |                 s
Language: C++

#include <iostream>
using namespace std;

int main(){
	long long n; cin >> n;
  	string s = "";
  
  	while(n >= 0){
      	n -= 1;
    	s += 'a' + n%26;
    }
  	
  	resverse(s.begin(), s.end());
  	cout << st << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:9: error: 'resverse' was not declared in this scope
   13 |         resverse(s.begin(), s.end());
      |         ^~~~~~~~
a.cc:14:17: error: 'st' was not declared in this scope; did you mean 's'?
   14 |         cout << st << endl;
      |                 ^~
      |                 s
Language: C++

#include "bits/stdc++.h"
using namespace std;
typedef long long ll;
#define rep(i,a,n) for(ll i=a;i<n;i++)
int main(){
  ll n;
  string s;
  cin>>n;
  while(n){
    n--;
    s+='a'+n%26;
    n /= 26;
  }
  reverse(ans.begin(),ans.end());
  cout<<s<<endl;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:14:11: error: 'ans' was not declared in this scope; did you mean 'abs'?
   14 |   reverse(ans.begin(),ans.end());
      |           ^~~
      |           abs
Language: Java

import java.io.*;
import java.util.*;
import java.text.*;
import java.math.*;
import java.util.regex.*;

public class Solution {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		//System.out.println(n);
		String ans = "";
		n--;
		while(n>=0){
			ans += (char)(97 + (n%26));
			n = n/26;
			n--;
		}
		for(int i=ans.length()-1 ; i>=0; i--){
			System.out.print(ans.charAt(i));
		}
		
	}

}

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

#include <bits/stdc++.h>
using namespace std;
int main() {
int N ; cin >> N;
vector <char> vec;


for (int i =0; i<11; i++){ 
        int a =N/26;
		int b = N%26;
		if (b == 0) {b =26; N--}
  		b += 96;
		char c=b;
		vec.push_back (c);
		
  		N /= 26;	
		if (a == 0) break;}
	
int size  = vec.size();

for (int j=0; j < size ; j++ )
	cout<< vec.at (size - j - 1) ;
	
	
	
}


Compiler output:
a.cc: In function 'int main()':
a.cc:11:40: error: expected ';' before '}' token
   11 |                 if (b == 0) {b =26; N--}
      |                                        ^
      |                                        ;
Language: C++

#include <iostream>
#include <cstdio>	
#include <cstdlib>
#include <cstring>
using namespace std;
int a[110];
int main(){
	int use=0;
    long long n;
    cin>>n;
    while(n!=0){
		n--;
		int num=n%26;
		use++;
		a[use]=num;
        n/=26; 
    return 0;
}

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

#include <bits/stdc++.h>
#include <boost/multiprecision/cpp_int.hpp>

// increment
#define rep_n(_1, _2, _3, NAME, ...) NAME
#define rep_2(i, n) for (int(i) = 0; (i) < (int)(n); ++(i))
#define rep_3(i, initial, n) for (int(i) = (int)(initial); (i) < (int)(n); ++(i))
#define rep(...) rep_n(__VA_ARGS__, rep_3, rep_2, rep_1)(__VA_ARGS__)
// decrement
#define rep_r_n(_1, _2, _3, NAME, ...) NAME
#define rep_r_2(i, n) for (int(i) = (int)(n); (i) > 0; (i)--)
#define rep_r_3(i, initial, n) for (int(i) = (int)(initial); (i) > (int)(n); (i)--)
#define rep_r(...) rep_r_n(__VA_ARGS__, rep_r_3, rep_r_2)(__VA_ARGS__)
// define type definition
using namespace std;
typedef long long ll;
using mpint = boost::multiprecision::cpp_int; // 多倍長整数（任意精度）
typedef pair<int, int> P;

// define construct variable
const double EPS = numeric_limits<double>::epsilon();
// 10^9 + 7
const ll MOD = ll(1e9) + 7;
const ll INF = ll(1e10);
const string ALPHABET = "abcdefghijklmnopqrstuvwxyz";
const double PI = acos(-1);

// define methods
// 最大公約数
ll gcd(const ll a, const ll b) { return b ? gcd(b, a % b) : a; }
// 最小公倍数
ll lcm(const ll a, const ll b) { return a / gcd(a, b) * b; }
// char -> int
int ctoi(char c) { return (int)(c - '0'); }
// 素因数分解
vector< pair<ll, ll> > prime_factorize(ll n)
{
	vector<pair<ll, ll>> p;
	for (ll i = 2; i * i <= n; i++)
	{
		if ((n % i) != 0)
			continue;
		pair<ll, ll> a = make_pair(i, 0);
		while ((n % i) == 0)
		{
			n /= i;
			a.second += 1;
		}
		p.push_back(a);
	}

	if (n != 1)
		p.push_back(make_pair(n, 1));
	return p;
}
// 組み合わせの整合性を保つ（後ほど解析する）
ll modinv(ll a)
{
	ll b = MOD, u = 1, v = 0;
	while (b)
	{
		ll t = a / b;
		a -= t * b;
		swap(a, b);
		u -= t * v;
		swap(u, v);
	}
	u %= MOD;
	if (u < 0)
	{
		u += MOD;
	}
	return u;
}
// 順列
ll permutation(const ll n, const ll m)
{
	ll result = 1;
	for (ll i = n; i > n - m; i--)
	{
		result = (result * i) % MOD;
	}
	return result;
}

// 繰り返し n 乗法
ll repeat_square(const ll n, const ll x)
{
	if (x == 0)
		return 1;
	ll res = repeat_square(n, x / 2);
	res = res * res % MOD;
	if ((x % 2) == 1)
		res = res * n % MOD;
	return res;
}
// 組み合わせ nCm
ll combination(ll n, ll m)
{
	ll p = permutation(n, m);
	ll div = 1;
	for (ll i = 2; i <= m; i++)
	{
		div = (div * i) % MOD;
	}
	return (p * modinv(div)) % MOD;
}

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

  string ans = "";
  vector<string> alpha;

  alpha.push_back("z");
  rep(i, ALPHABET.length()-1) {
    alpha.push_back(ALPHABET.substr(i, 1));
  }

  while(n > 0) {
    ans = alpha[n%26] + ans;
    n--;
    n /= 26;
  }

  cout << ans << endl;
  return 0;
}


Compiler output:
a.cc:2:10: fatal error: boost/multiprecision/cpp_int.hpp: No such file or directory
    2 | #include <boost/multiprecision/cpp_int.hpp>
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
Language: C++

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

ll powm(ll b, ll p)
{
    if (p == 0)
        return 1;
    if (p % 2 == 1)
        return b * powm(b, p - 1);
    else
    {
        ll t = powm(b, p / 2);
        return t * t;
    }
}
int main()
{
    ll n;
    cin >> n;
    int md, count = 0;
    for (md = 0; 1; md++)
    {
        count += powm(26, md);
        if (count > n)
            break;
    }
    vector<int> s(md);
    for (int i = md - 1; i >= 0; i--)
    {
        int t;
        t = min((ll)26, n / powm(26, i));
        if (n == t * powm(26, i) && i != 0)
            t--;
        n -= t * powm(26, i);
        s[md - 1 - i] = t;
    }
    for (int i = 0; i < md; i++)
    {
        char t = 'a' + s[i] - 1;
        cout << t;
    }
    cout << endl;
}


Compiler output:
a.cc:1:2: error: stray '#' in program
    1 | i#include <bits/stdc++.h>
      |  ^
a.cc:1:1: error: 'i' does not name a type
    1 | i#include <bits/stdc++.h>
      | ^
a.cc: In function 'int main()':
a.cc:20:5: error: 'cin' was not declared in this scope
   20 |     cin >> n;
      |     ^~~
a.cc:28:5: error: 'vector' was not declared in this scope
   28 |     vector<int> s(md);
      |     ^~~~~~
a.cc:28:12: error: expected primary-expression before 'int'
   28 |     vector<int> s(md);
      |            ^~~
a.cc:32:13: error: 'min' was not declared in this scope; did you mean 'main'?
   32 |         t = min((ll)26, n / powm(26, i));
      |             ^~~
      |             main
a.cc:36:9: error: 's' was not declared in this scope
   36 |         s[md - 1 - i] = t;
      |         ^
a.cc:40:24: error: 's' was not declared in this scope
   40 |         char t = 'a' + s[i] - 1;
      |                        ^
a.cc:41:9: error: 'cout' was not declared in this scope; did you mean 'count'?
   41 |         cout << t;
      |         ^~~~
      |         count
a.cc:43:5: error: 'cout' was not declared in this scope; did you mean 'count'?
   43 |     cout << endl;
      |     ^~~~
      |     count
a.cc:43:13: error: 'endl' was not declared in this scope
   43 |     cout << endl;
      |             ^~~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main() {
int N ; cin >> N;
vector <char> vec;

int az = N%26;
az += 96 ;
char c = az ;
vec .push_back (c);
N /= 26;							


for (int i =0; i<10; i++){　　
		int a =N/26;
		int b = N%26;
		b += 97;
		char c=b;
		vec.push_back (c);
		N /= 26;	
		if (a == 0) break;}
	
int size  = vec.size();

for (int j=0; j < size ; j++ )
	cout<< vec.at (size - j) ;
	
	
	




}

Compiler output:
a.cc:14:27: error: extended character 　 is not valid in an identifier
   14 | for (int i =0; i<10; i++){　　
      |                           ^
a.cc:14:27: error: extended character 　 is not valid in an identifier
a.cc: In function 'int main()':
a.cc:14:27: error: '\U00003000\U00003000' was not declared in this scope
   14 | for (int i =0; i<10; i++){　　
      |                           ^~~~
a.cc:21:21: error: 'a' was not declared in this scope
   21 |                 if (a == 0) break;}
      |                     ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main() {
int N ; cin >> N;
vector <char> vec;

int az = N%26;
az += 96 ;
char c = az ;
vec .push_back (c);
N /= 26;							


for (int i =0; i<11; i++){　　
		int a =N/26;
		int b = N%26;
		b += 97;
		char c=b;
		vec.push_back (c);
		N /= 26;	
		if (a == 0) break;}
	
int size  = vec.size();

for (int j=0; j < size ; j++ )
	cout<< vec.at (size - j) ;
	
	
	




}

Compiler output:
a.cc:14:27: error: extended character 　 is not valid in an identifier
   14 | for (int i =0; i<11; i++){　　
      |                           ^
a.cc:14:27: error: extended character 　 is not valid in an identifier
a.cc: In function 'int main()':
a.cc:14:27: error: '\U00003000\U00003000' was not declared in this scope
   14 | for (int i =0; i<11; i++){　　
      |                           ^~~~
a.cc:21:21: error: 'a' was not declared in this scope
   21 |                 if (a == 0) break;}
      |                     ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main() {
int N ; cin >> N;
vector <char> vec;

int az = N%26;
az += 96 ;
char d = az ;
vec.push _back (d);
N /= 26;							


for (int i =0; i<11; i++){　　
		int a =N/26;
		int b = N%26;
		b += 97;
		char c=b;
		vec.push_back (c);
		N /= 26;	
		if (a == 0) break;}
	
int size  = vec.size();

for (int j=0; j < size ; j++ )
	cout<< vec.at (size - j) ;
	
	
	




}

Compiler output:
a.cc:14:27: error: extended character 　 is not valid in an identifier
   14 | for (int i =0; i<11; i++){　　
      |                           ^
a.cc:14:27: error: extended character 　 is not valid in an identifier
a.cc: In function 'int main()':
a.cc:10:5: error: 'class std::vector<char>' has no member named 'push'
   10 | vec.push _back (d);
      |     ^~~~
a.cc:14:27: error: '\U00003000\U00003000' was not declared in this scope
   14 | for (int i =0; i<11; i++){　　
      |                           ^~~~
a.cc:21:21: error: 'a' was not declared in this scope
   21 |                 if (a == 0) break;}
      |                     ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main() {
int N ; cin >> N;
vector <char> vec;

int az = N%26;
az += 96 ;
char d = az 
vec .push _back (d);
N /= 26;							


for (int i =0; i<11; i++){　　
		int a =N/26;
		int b = N%26;
		b += 97;
		char c=b;
		vec.push_back (c);
		N /= 26;	
		if (a == 0) break;}
	
int size  = vec.size();

for (int j=0; j < size ; j++ )
	cout<< vec.at (size - j) ;
	
	
	




}

Compiler output:
a.cc:14:27: error: extended character 　 is not valid in an identifier
   14 | for (int i =0; i<11; i++){　　
      |                           ^
a.cc:14:27: error: extended character 　 is not valid in an identifier
a.cc: In function 'int main()':
a.cc:10:1: error: expected ',' or ';' before 'vec'
   10 | vec .push _back (d);
      | ^~~
a.cc:14:27: error: '\U00003000\U00003000' was not declared in this scope
   14 | for (int i =0; i<11; i++){　　
      |                           ^~~~
a.cc:21:21: error: 'a' was not declared in this scope
   21 |                 if (a == 0) break;}
      |                     ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main() {
int N ; cin >> N;
vector <char> vec;

int az = N%26;
az += 96 ;
char d = az 
vec .push _back (d);
N /= 26;							//最終的な一番高い位を先に処理する
										// 1 →a に対応させる

for (int i =0; i<11; i++){　　//他の場合は 0 → a に対応させれば良い
		int a =N/26;
		int b = N%26;
		b += 97;
		char c=b;
		vec.push_back (c);
		N /= 26;	
		if (a == 0) break;}
	
int size  = vec.size();

for (int j=0; j < size ; j++ )
	cout<< vec.at (size - j) ;
}

Compiler output:
a.cc:14:27: error: extended character 　 is not valid in an identifier
   14 | for (int i =0; i<11; i++){　　//他の場合は 0 → a に対応させれば良い
      |                           ^
a.cc:14:27: error: extended character 　 is not valid in an identifier
a.cc: In function 'int main()':
a.cc:10:1: error: expected ',' or ';' before 'vec'
   10 | vec .push _back (d);
      | ^~~
a.cc:14:27: error: '\U00003000\U00003000' was not declared in this scope
   14 | for (int i =0; i<11; i++){　　//他の場合は 0 → a に対応させれば良い
      |                           ^~~~
a.cc:21:21: error: 'a' was not declared in this scope
   21 |                 if (a == 0) break;}
      |                     ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main() {
int N ; cin >> N;
vector <char> vec;

int az = N%26;
az += 96 ;
char c = az 
vec .push _back (c);
N /= 26;							//最終的な一番高い位を先に処理する
										// 1 →a に対応させる

for (int i =0; i<11; i++){　　//他の場合は 0 → a に対応させれば良い
		int a =N/26;
		int b = N%26;
		b += 97;
		char c=b;
		vec.push_back (c);
		N /= 26;	
		if (a == 0) break;}
	
int size  = vec.size();

for (int j=0; j < size ; j++ )
	cout<< vec.at (size - j) ;
	
	
	




}

Compiler output:
a.cc:14:27: error: extended character 　 is not valid in an identifier
   14 | for (int i =0; i<11; i++){　　//他の場合は 0 → a に対応させれば良い
      |                           ^
a.cc:14:27: error: extended character 　 is not valid in an identifier
a.cc: In function 'int main()':
a.cc:10:1: error: expected ',' or ';' before 'vec'
   10 | vec .push _back (c);
      | ^~~
a.cc:14:27: error: '\U00003000\U00003000' was not declared in this scope
   14 | for (int i =0; i<11; i++){　　//他の場合は 0 → a に対応させれば良い
      |                           ^~~~
a.cc:21:21: error: 'a' was not declared in this scope
   21 |                 if (a == 0) break;}
      |                     ^
Language: C++

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

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

#include <bits/stdc++.h>
using namespace std;
#define ll long long
const ll mod 1e9+7
#define SIZE_OF_ARRAY(array) (sizeof(array)/sizeof(array[0]))
const int inf = 1000000000; // 10^9 Ten to the power of nine.
/**** Type Define ****/
 
    int main(){
        ll n;
        cin >>n;
        string ans ="";
         while(n){
            n--;
            ans+=(n%26)+'a';
            n/=26;

         }
         return 0;}


Compiler output:
a.cc:4:14: error: expected initializer before numeric constant
    4 | const ll mod 1e9+7
      |              ^~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
#define rep(i,n) for(int i=0;i<(int)(n);i++)
#define all(v) v.begin(),v.end()
#define rall(v) v.rbegin(),v.rend()
typedef long long ll;
#define _GLIBCXX_DEBUG
typedef vector<int> vec;
typedef vector<ll> lvec;
typedef vector<char> cvec;
typedef vector<double> dvec;
typedef pair<ll, ll> LP;
typedef tuple<ll, ll, ll> LT;
typedef pair<int, int> P;
typedef tuple<int, int, int> T;
#define fs first
#define sc second
string f(ll n){
  if(n==0) return "";
  n--; //'a'=0として扱いやすいようにディクリメントする
  return f(n/26)+(char)('a'+n%26);
int main()	{
  ll n;
  cin>>n;
  cout<<f(n)<<endl;
}
  

Compiler output:
a.cc: In function 'std::string f(ll)':
a.cc:22:9: warning: empty parentheses were disambiguated as a function declaration [-Wvexing-parse]
   22 | int main()      {
      |         ^~
a.cc:22:9: note: remove parentheses to default-initialize a variable
   22 | int main()      {
      |         ^~
      |         --
a.cc:22:9: note: or replace parentheses with braces to value-initialize a variable
a.cc:22:17: error: a function-definition is not allowed here before '{' token
   22 | int main()      {
      |                 ^
a.cc:26:2: error: expected '}' at end of input
   26 | }
      |  ^
a.cc:18:15: note: to match this '{'
   18 | string f(ll n){
      |               ^
Language: C++

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

#define Bye return 0

void solve(){
    int n; cin>>n;

    char str[101];
    string s;
    int i = 0;

    while(n>0){
        n = n - 1;
        str[i] = 'a' + n%26;
        i++;
        n /= 26;
    }s

    for (int j=i-1; j>=0; j--)
        printf("%c", str[j]);
}

int main()
{
    solve();
    Bye;
}


Compiler output:
a.cc: In function 'void solve()':
a.cc:18:7: error: expected ';' before 'for'
   18 |     }s
      |       ^
      |       ;
   19 | 
   20 |     for (int j=i-1; j>=0; j--)
      |     ~~~
a.cc:20:21: error: 'j' was not declared in this scope
   20 |     for (int j=i-1; j>=0; j--)
      |                     ^
Language: C++

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

int main() {
  long long n;
  string ans;

  cin >> n;

  long long tmp;
  while(n) {
    tmp=n%26;
    ans+=(char)('a'-1+tmp);
    n-=tmp;
    n/=26;
    if(tmp==0) N--;
  }

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

  cout << ans << endl;

  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:16:16: error: 'N' was not declared in this scope
   16 |     if(tmp==0) N--;
      |                ^
Language: C++

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

int main() {
  long long n;
  string ans;

  cin >> n;

  long long tmp;
  while(n) {
    tmp=n%26;
    ans+=(char)('a'-1+tmp);
    n-=tmp;
    n/=26;
    if(r==0) N--;
  }

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

  cout << ans << endl;

  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:16:8: error: 'r' was not declared in this scope
   16 |     if(r==0) N--;
      |        ^
a.cc:16:14: error: 'N' was not declared in this scope
   16 |     if(r==0) N--;
      |              ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main()
{
  int long n;
  cin>>n;
  string s="";
  while(n>0)
  {
    int r=n%26;
    if(r==0)
      ch='z';
    else
      ch=char(r);
    string ss(1,ch);
    s+=ss;
    n=n/26;
  }
  cout<<s;
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:12:7: error: 'ch' was not declared in this scope
   12 |       ch='z';
      |       ^~
a.cc:14:7: error: 'ch' was not declared in this scope
   14 |       ch=char(r);
      |       ^~
a.cc:15:17: error: 'ch' was not declared in this scope
   15 |     string ss(1,ch);
      |                 ^~
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main()
{
  int long n;
  cin>>n;
  string s="";
  while(n>0)
  {
    int r=n%26;
    if(r==0)
      ch='z';
    else
      ch=r;
    string ss(1,ch);
    s+=ss;
    n=n/26;
  }
  cout<<s;
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:12:7: error: 'ch' was not declared in this scope
   12 |       ch='z';
      |       ^~
a.cc:14:7: error: 'ch' was not declared in this scope
   14 |       ch=r;
      |       ^~
a.cc:15:17: error: 'ch' was not declared in this scope
   15 |     string ss(1,ch);
      |                 ^~
Language: C++

int main()
{
    int64_t N;
    vector<char> ans;
    cin >> N;
    do
    {
        ans.push_back((N % ('z' - 'a' + 1)) + 'a' - 1);
    } while (N /= ('z' - 'a' + 1));

    for (int i = ans.size() - 1; i >= 0; i--)
    {
        cout << ans[i];
    }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:3:5: error: 'int64_t' was not declared in this scope
    3 |     int64_t N;
      |     ^~~~~~~
a.cc:1:1: note: 'int64_t' is defined in header '<cstdint>'; this is probably fixable by adding '#include <cstdint>'
  +++ |+#include <cstdint>
    1 | int main()
a.cc:4:5: error: 'vector' was not declared in this scope
    4 |     vector<char> ans;
      |     ^~~~~~
a.cc:4:12: error: expected primary-expression before 'char'
    4 |     vector<char> ans;
      |            ^~~~
a.cc:5:5: error: 'cin' was not declared in this scope
    5 |     cin >> N;
      |     ^~~
a.cc:5:12: error: 'N' was not declared in this scope
    5 |     cin >> N;
      |            ^
a.cc:8:9: error: 'ans' was not declared in this scope
    8 |         ans.push_back((N % ('z' - 'a' + 1)) + 'a' - 1);
      |         ^~~
a.cc:11:18: error: 'ans' was not declared in this scope
   11 |     for (int i = ans.size() - 1; i >= 0; i--)
      |                  ^~~
a.cc:13:9: error: 'cout' was not declared in this scope
   13 |         cout << ans[i];
      |         ^~~~
Language: Java

import java.util.*;
import java.io.*;

public class ATCODERabc171_cOneQuadrillionandOneDalmations {
    static StringTokenizer st;
    static BufferedReader br = new BufferedReader(new InputStreamReader(System.in));

    public static void main(String[] args) throws IOException {
        int input = nextInt();
        int tempInput = input;
        int temp = 0;
        int powerOf26 = 1;
        while (tempInput>temp) {
            temp += Math.pow(26, powerOf26);
            tempInput-=temp;
            powerOf26++;
        }

        int [] digits = new int [powerOf26];
        for (int x=powerOf26-1; x>=0; x--) {
            digits[x] = input / (int) Math.pow(26, x);
            input %= (int) Math.pow(26, x);
            if (digits[x]!=0)
                System.out.print((char)(digits[x]-1+'a'));
        }
    }
    
    public static int nextInt() throws IOException {
        return Integer.parseInt(next());
    }
    public static long nextLong() throws IOException {
        return Long.parseLong(next());
    }

    public static double nextDouble() throws IOException {
        return Double.parseDouble(next());
    }

    static String next() throws IOException {
        while (st == null || !st.hasMoreTokens())
            st = new StringTokenizer(br.readLine().trim());
        return st.nextToken();
    }
}




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