criyle/codenet-compile-errors huggingface dataset:
Language: C++

#include<iostream.h>
#include<bits/stdc++.h>
using namespace std;
char findans(int k)
{
  char a[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'};
  return a[k-1];
}
int main()
{
  long long int n; 
  cin>>n;
  string s="";
  if(n<=26)
  cout<<findans(n)<<endl;
  else
  {
    while(n>26)
    {
      char ans=findans(n%26);
      s+=ans;
      n=n/26;
    }
    s+=findans(n);
    for(i=s.length()-1;i>=0;i++)
    cout<<s[i];
    cout<<endl;
  }
}

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

#include <stdio.h>
#include <string.h>

int main() {
    long long int t, mod;
    char finalname[50];
    scanf("%lld", &t);
    int i = 0;
    while (t > 0) {
        mod = (t - 1) % 26;
        finalname[i++] = 'a' + mod;
        t = (t - mod) / 26;
    }
    finalname[i] = '\0';
    strrev(finalname);
    printf("%s", finalname);
}

Compiler output:
a.cc: In function 'int main()':
a.cc:15:5: error: 'strrev' was not declared in this scope; did you mean 'strsep'?
   15 |     strrev(finalname);
      |     ^~~~~~
      |     strsep
Language: C++

#include<iostream>
#include<bits/stdc++.h>
#include<math.h>
using namespace std;
int main(){
long long n,a;
string ch;
vector <string> str;
cin>>n;
while(n>0){
        a=n%26;
       n=n/26;
  if(a==0){
    n--;
    a='z'
  }
       ch=96+a;
      str.push_back(ch);
}
reverse(str.begin(),str.end());
  for(i=0;i<k;i++)
cout<<str[i];
}

Compiler output:
a.cc: In function 'int main()':
a.cc:15:10: error: expected ';' before '}' token
   15 |     a='z'
      |          ^
      |          ;
   16 |   }
      |   ~       
a.cc:21:7: error: 'i' was not declared in this scope
   21 |   for(i=0;i<k;i++)
      |       ^
a.cc:21:13: error: 'k' was not declared in this scope
   21 |   for(i=0;i<k;i++)
      |             ^
Language: C++

#include<iostream>
#include<bits/stdc++.h>
#include<math.h>
using namespace std;
int main(){
long long n,a,k=0,i;
string ch,s;
cin>>n;
while(n>0){
        a=n%26;
       n=n/26;
       k++;
       if(a==0)
       a=z;
       s=96+a;
      ch+=s;
}
reverse(ch.begin(),ch.end());
cout<<ch;
}



Compiler output:
a.cc: In function 'int main()':
a.cc:14:10: error: 'z' was not declared in this scope
   14 |        a=z;
      |          ^
Language: C++

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

int main(){
    long long N;
    const string S = ".abcdefghijklmnopqrstuvwxyz";
    stack<char> ans;
    cin >> N;
    long long x = N;
    while(x == 0){
        if(x % 26 == 0) ans.push['z'];
        else ans.push(S[x % 26]);
        x /= 26;
    }
    while(!ans.empty()){
        cout << ans.top();
        ans.pop();
    }
    cout << endl;
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:33: error: invalid types '<unresolved overloaded function type>[char]' for array subscript
   11 |         if(x % 26 == 0) ans.push['z'];
      |                                 ^
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;
}

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

#include <iostream>
using namespace std;

int main()
{
	unsigned long long n;
	string s;
	cin >> n;
	//Ascii from 97 to 122 (+96)
	while (true)
	{
		if (n % 26 == 0)
		{
			s += 'z';
			n /= 26;
			n--;
		}
		else
		{
			s += (char)((n % 26) + 96);
			n = n / 26;
		}
		if (n == 0) break;
	}
	reverse(s.begin(), s.end());
	cout << s << endl;

	ios::sync_with_stdio(false);
	cin.tie();
	cout.tie();
	return 0;
}

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

#include <iostream>
using namespace std;

int main()
{
	unsigned long long n;
	string s;
	cin >> n;
	//Ascii from 97 to 122 (+96)
	while (true)
	{
		if (n % 26 == 0)
		{
			s += 'z';
			n /= 26;
			n--;
		}
		else
		{
			s += (char)((n % 26) + 96);
			n = n / 26;
		}
		if (n == 0) break;
	}
	reverse(s.begin(), s.end());
	cout << s << endl;

	ios::sync_with_stdio(false);
	cin.tie();
	cout.tie();
	return 0;
}

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

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

int main()
{
	unsigned long long n;
	string s;
	cin >> n;
	//Ascii from 97 to 122 (+96)
	while (true)
	{
		if (n % 26 == 0)
		{
			s += 'z';
			n /= 26;
			n--;
		}
		else
		{
			s += (char)((n % 26) + 96);
			n = n / 26;
		}
		if (n == 0) break;
	}
	reverse(s.begin(), s.end());
	cout << s << endl;

	ios::sync_with_stdio(false);
	cin.tie();
	cout.tie();
	return 0;
}

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

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


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

	string name = "";
	while (N)
	{
		--N;
		name += (char)('a' + (N % 26));
		N /= 26;
	}

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

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

#include <iostream>
#include <string> 

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

	string name = "";
	int remainder = 0;
	while (N / 26.0 > 1.0)
	{
		remainder = N % 26;
		N /= 26;

		char c = 96 + remainder;
		string s = "" + c;
		s += c;
		name.insert(0, s);
	}

	char c = '`' + N;
	string s = "";
	s += c;
	name.insert(0, s);
	cout << name << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:9: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    7 |         cin >> N;
      |         ^~~
      |         std::cin
In file included from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:9:9: error: 'string' was not declared in this scope
    9 |         string name = "";
      |         ^~~~~~
a.cc:9:9: note: suggested alternatives:
In file included from /usr/include/c++/14/iosfwd:41,
                 from /usr/include/c++/14/ios:40,
                 from /usr/include/c++/14/ostream:40,
                 from /usr/include/c++/14/iostream:41:
/usr/include/c++/14/bits/stringfwd.h:77:33: note:   'std::string'
   77 |   typedef basic_string<char>    string;
      |                                 ^~~~~~
In file included 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:
/usr/include/c++/14/string:76:11: note:   'std::pmr::string'
   76 |     using string    = basic_string<char>;
      |           ^~~~~~
a.cc:17:23: error: expected ';' before 's'
   17 |                 string s = "" + c;
      |                       ^~
      |                       ;
a.cc:18:17: error: 's' was not declared in this scope
   18 |                 s += c;
      |                 ^
a.cc:19:17: error: 'name' was not declared in this scope; did you mean 'tzname'?
   19 |                 name.insert(0, s);
      |                 ^~~~
      |                 tzname
a.cc:23:15: error: expected ';' before 's'
   23 |         string s = "";
      |               ^~
      |               ;
a.cc:24:9: error: 's' was not declared in this scope
   24 |         s += c;
      |         ^
a.cc:25:9: error: 'name' was not declared in this scope; did you mean 'tzname'?
   25 |         name.insert(0, s);
      |         ^~~~
      |         tzname
a.cc:26:9: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   26 |         cout << name << endl;
      |         ^~~~
      |         std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:26:25: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   26 |         cout << name << endl;
      |                         ^~~~
      |                         std::endl
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
Language: C++

#include<iostream>
using namespace std;


long long mypow(int p, int n) {
    if (n == 0) return 1;
    long long t = mypow(p, n / 2);
    return n & 1 ? t * t * p : t * t;
}


long long N;

void read() {
    cin >> N;
}


void work() {
    int len = 1;

    --N;
    while (N >= mypow(26, len)) {
        N -= mypow(26, len);
        ++len;
    }

    string ans;
    for (int i = 0; i < len; ++i) {
        ans += (char)(N % 26 + 'a');
        N /= 26;
    }
    reverse(ans.begin(), ans.end());
    
    cout << ans << endl;
}


int main() {
    read();
    work();
    return 0;
}


Compiler output:
a.cc: In function 'void work()':
a.cc:33:5: error: 'reverse' was not declared in this scope
   33 |     reverse(ans.begin(), ans.end());
      |     ^~~~~~~
Language: C

#include <iostream>
#include<vector>
#include <cstdlib>
#include<cmath>
#include<string>
#include <iomanip>
#include <sstream>

using namespace std;





int main () {


    long long n,i,j;
    cin>>n;

    string s="";
    char t;

char a[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'};



while (n>=1){

    j=n%26;

    if( j==0 ){

        s=a[25]+s;

    }

    else {

        s=a[j-1]+s;

    }

    n=n/26;


}

cout<<s;


}


















/*#include <iostream>
#include<vector>
#include <cstdlib>
#include<cmath>
#include<string>
#include <iomanip>
#include <sstream>

using namespace std;


int main (){


    unsigned long long n,i,j,m,cnt=0;

    cin>>n;

    vector<unsigned long long> a(n);

    stringstream s[n];

    string final[n];

    for(i=0;i<n;i++){

        cin>>a[i];
    }

    for(i=0;i<n;i++){

        s[i]<<a[i];
        s[i]>>final[i];

    }

    vector<long long>b(n,0);



    for(i=0;i<n;i++){

        m=final[i].size();

        for(j=0;j<m;j++){

            b[i]+=final[i][j]-'0';


        }



    }

    for(i=0;i<n;i++){


        cout<<b[i]<<endl;
    }



}
 */

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

N = int(input())
ans = ''
for i in range(1, 99):
    if N <= 26 ** i:
        N -= 1
        for j in range(i):
            ans += chr(ord('a') + N % 26)
            N //= 26
            break
    else:
       N -= 26 ** i
       print(ans[::-1]) 

Compiler output:
Main.java:1: error: class, interface, enum, or record expected
N = int(input())
^
Main.java:2: error: empty character literal
ans = ''
      ^
2 errors
Language: Java

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.StringTokenizer;

public class OneDalmatians {
    public static void main(String[] args) {
        FastScanner fs = new FastScanner();
        long n = fs.nextLong();
        StringBuilder ans = new StringBuilder();
        int MOD = 26;
        while(n > 0) {
            n--;
            ans.append('a' + n%MOD);
            n /= 26;
        }
        System.out.println(ans.reverse().toString());
    }

    static class FastScanner {
        BufferedReader br = null;
        StringTokenizer st;
    
        public FastScanner() {
            br = new BufferedReader(new InputStreamReader(System.in));
        }
    
        String next() {
            while(st == null || !st.hasMoreElements()) {
                try {
                    st = new StringTokenizer(br.readLine());
                } catch (IOException e) {
                    e.printStackTrace();
                }
            }
            return st.nextToken();
        }
    
        int nextInt() {
            return Integer.parseInt(next());
        }
    
        long nextLong() {
            return Long.parseLong(next());
        }
    
        double nextDouble() {
            return Double.parseDouble(next());
        }
    
        String nextLine() {
            String str = "";
            try {
                str = br.readLine();
            } catch (IOException e) {
                e.printStackTrace();
            }
            return str;
        }
    }
}

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

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

int main()
{
    ull n;
    string s="";
    cin>>n;
    while(n>0)
    {
        if(n%26==0)
            {s='z'+s;n-=1;}
        else
            {char x=((n%26)-1)+'a';s=x+s}

        n/=26;
    }
        cout<<s;
}



Compiler output:
a.cc: In function 'int main()':
a.cc:16:41: error: expected ';' before '}' token
   16 |             {char x=((n%26)-1)+'a';s=x+s}
      |                                         ^
      |                                         ;
Language: C++

#include <iostream>

typedef long long ll;
const int INF = 1e9;
const int MOD = 1e9+7;
const ll LINF = 1e18;

using namespace std;

#define rep(i, a, b) for (int i = a; i < b; i++)
#define rrep(i, a, b) for (int i = a; i <= b; i++)
#define all(a)  begin((a)),end((a))
#define uniq(c) (c).erase(unique(all((c))), end((c)))
#define each(i, map) for (auto& i : map)

int main()
{
    long long N; cin >> N;
    const int digits = 26;
    const string chars = "Xabcdefghijklmnopqrstuvwxyz";

    string ans = "";
    while (true) {
        long long x = N % digits;

        // 余りが0の場合：つまりzの場合、26
        if (x == 0) {
            x = 26;
        }
        ans += chars[x];

        // xを引いて、26で割る
        N -= x;

        // 0なら終了
        if (N == 0) break;

        N /= digits;
    }
    reverse(ans.begin(), ans.end());
    cout << ans << endl;
}


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

#include <iostream>

using namespace std;
long long n;
string s;

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

int main() {
    cin >> n;
//    cout << f(n);
    while (n > 0) {
        n--;
        s += 'a' + n % 26;
        n /= 26;
    }
    reverse(s.begin(), s.end());
    cout << s << endl;
    return 0;
}


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

#include <bits/stdc++.h>

using namespace std;

int(int argc, char *argv[] ){
	string s="";
	long long n;
	cin>>n;
	
	while(n!=0){
		s=char(97+n%26)+s;
		n/=26
	}
	
	cout<<s;
	
	return 0;
} 

Compiler output:
a.cc:5:5: error: expected unqualified-id before 'int'
    5 | int(int argc, char *argv[] ){
      |     ^~~
a.cc:5:5: error: expected ')' before 'int'
    5 | int(int argc, char *argv[] ){
      |    ~^~~
      |     )
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;
	return 0;
} 

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(){
	string s;
	long long n;
	cin>>n;
	
	while(n--){
	}
		s+=char(96+n%26+1);
		n/=26;
	}
	cout<<s;
	return 0;
}

Compiler output:
a.cc:14:9: error: 'cout' does not name a type
   14 |         cout<<s;
      |         ^~~~
a.cc:15:9: error: expected unqualified-id before 'return'
   15 |         return 0;
      |         ^~~~~~
a.cc:16:1: error: expected declaration before '}' token
   16 | }
      | ^
Language: C++

long n = in.nextLong();

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

out.println(answer.reverse());

Compiler output:
a.cc:1:10: error: 'in' was not declared in this scope; did you mean 'n'?
    1 | long n = in.nextLong();
      |          ^~
      |          n
a.cc:3:1: error: 'StringBuilder' does not name a type
    3 | StringBuilder answer = new StringBuilder();
      | ^~~~~~~~~~~~~
a.cc:4:1: error: expected unqualified-id before 'while'
    4 | while (n > 0) {
      | ^~~~~
a.cc:10:1: error: 'out' does not name a type
   10 | out.println(answer.reverse());
      | ^~~
Language: C++

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

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



#include <bits/stdc++.h>
#include <string.h>
#include <vector>
//s#define rep(i, n) for (int i = 0; i < (n); i++)
#define MAX 10000

using namespace std;

#define ll long long
#define pb push_back
#define mp make_pair
#define all(a) (a).begin(),(a).end()
#define rep(i,a,n) for(int i=a; i<n; i++)
#define r0 return 0
#define INF (int)1e15
#define MOD 1000000007

#define access(i) a[i/3][i%3]
int gcd(int x, int y)
{
    if(y==0)
        return x;
    return gcd(y, x%y);
}

 long long numbers[500005];


 int main(){

  long long n;
  cin>>n;

  --n;
   long long c = 26;
   int j = 1;

   while(n>=c){
     n -= c;
     c *= 26;
     j++;
   }

   vector<int>a;

   while(j--){
     a.push_back(n%26);
     n /= 26;
   }

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

   for(vector<int>::iterator it = v.begin()it!=v.end();it++)
    cout<<(char)('a'+*it);

   cout<<endl;


 return 0;
 }

Compiler output:
a.cc: In function 'int main()':
a.cc:55:35: error: 'v' was not declared in this scope
   55 |    for(vector<int>::iterator it = v.begin()it!=v.end();it++)
      |                                   ^
a.cc:55:58: error: could not convert 'it.__gnu_cxx::__normal_iterator<int*, std::vector<int> >::operator++(0)' from '__gnu_cxx::__normal_iterator<int*, std::vector<int> >' to 'bool'
   55 |    for(vector<int>::iterator it = v.begin()it!=v.end();it++)
      |                                                        ~~^~
      |                                                          |
      |                                                          __gnu_cxx::__normal_iterator<int*, std::vector<int> >
a.cc:55:60: error: expected ';' before ')' token
   55 |    for(vector<int>::iterator it = v.begin()it!=v.end();it++)
      |                                                            ^
      |                                                            ;
Language: C++

#include<bits/stdc++.h>
using namespace std;
#define all(v) v.begin(), v.end()
int main()
{
  	ll n; cin>>n;
    string s="";
    while(n--) 
    {
		  s+=(char)('a'+n%26);
		  n/=26;		  
	}
		reverse(all(s));
		cout<<s<<endl;     
}


Compiler output:
a.cc: In function 'int main()':
a.cc:6:9: error: 'll' was not declared in this scope; did you mean 'all'?
    6 |         ll n; cin>>n;
      |         ^~
      |         all
a.cc:6:20: error: 'n' was not declared in this scope; did you mean 'yn'?
    6 |         ll n; cin>>n;
      |                    ^
      |                    yn
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main()
{
  	ll n; cin>>n;
    string s="";
    while(n--) 
    {
		  s+=(char)('a'+n%26);
		  n/=26;		  
	}
		reverse(all(s));
		cout<<s<<endl;     
}


Compiler output:
a.cc: In function 'int main()':
a.cc:5:9: error: 'll' was not declared in this scope
    5 |         ll n; cin>>n;
      |         ^~
a.cc:5:20: error: 'n' was not declared in this scope; did you mean 'yn'?
    5 |         ll n; cin>>n;
      |                    ^
      |                    yn
a.cc:12:25: error: 'all' was not declared in this scope; did you mean 'std::filesystem::perms::all'?
   12 |                 reverse(all(s));
      |                         ^~~
      |                         std::filesystem::perms::all
In file included from /usr/include/c++/14/filesystem:51,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:200,
                 from a.cc:1:
/usr/include/c++/14/bits/fs_fwd.h:158:7: note: 'std::filesystem::perms::all' declared here
  158 |       all               =  0777,
      |       ^~~
Language: C++

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

int main(){
  int n=5;
  cin>>n;
  string c=n-'a';
  cout<<c; 
  cout<<endl;
  
return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:13: error: conversion from 'int' to non-scalar type 'std::string' {aka 'std::__cxx11::basic_string<char>'} requested
   10 |   string c=n-'a';
      |            ~^~~~
Language: C++

def main():
    n = int(input())
    ans  = ""
    while n != 0:
        n -= 1
        ans += chr(ord('a') + n % 26)
        n //= 26
    print(ans[::-1])

if __name__ == "__main__":
    main()


Compiler output:
a.cc:1:1: error: 'def' does not name a type
    1 | def main():
      | ^~~
Language: Java

public class Main {
    public static void main(String[] args){
        long n=new java.util.Scanner(System.in).nextLong();
        String ans="";
        String alp="abcdefghijklmnopqrstuvwxyz";
        for(;;){
            long x=(int)Math.floor(n/26);
            if(n%26==0)x=n/26-1;
            long y=n-x*26;
            n=x;
            ans=alp.charAt(y-1)+ans;
            if(n==0)break;
        }
        System.out.println(ans);
    }
}

Compiler output:
Main.java:11: error: incompatible types: possible lossy conversion from long to int
            ans=alp.charAt(y-1)+ans;
                            ^
Note: Some messages have been simplified; recompile with -Xdiags:verbose to get full output
1 error
Language: Java

public class Main {
    public static void main(String[] args){
        long n=new java.util.Scanner(System.in).nextLong();
        String ans="";
        String alp="abcdefghijklmnopqrstuvwxyz";
        for(;;){
            long x=(int)Math.floor(n/26);
            if(n%26==0)x=n/26-1;
            int y=n-x*26;
            n=x;
            ans=alp.charAt(y-1)+ans;
            if(n==0)break;
        }
        System.out.println(ans);
    }
}

Compiler output:
Main.java:9: error: incompatible types: possible lossy conversion from long to int
            int y=n-x*26;
                   ^
1 error
Language: C++

#include <iostream>
#include <map>
#include <vector>

typedef long long ll;
const int INF = 1e9;
const int MOD = 1e9 + 7;
const ll LINF = 1e18;

using namespace std;

#define rep(i, a, b) for (int i = a; i < b; i++)
#define rrep(i, a, b) for (int i = a; i <= b; i++)
#define all(a)  begin((a)),end((a))
#define uniq(c) (c).erase(unique(all((c))), end((c)))
#define each(i, map) for (auto& i : map)

vector<int> get_factors(int64_t num) {
    const int64_t divnum = 26;
    vector<int> factors;
    int64_t q = num, r = num;
    while (true) {
        q /= divnum;
        r = num - q * divnum;
        num /= divnum;
        if (q == 0) {
            factors.push_back(r);
            break;
        }
        factors.push_back(r);
    }
    reverse(factors.begin(), factors.end());
    return factors;
}

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

    vector<int> factors = get_factors(N);
    for (auto &f : factors) {
        switch (f) {
            case 1:
                cout << 'a';
                break;
            case 2:
                cout << 'b';
                break;
            case 3:
                cout << 'c';
                break;
            case 4:
                cout << 'd';
                break;
            case 5:
                cout << 'e';
                break;
            case 6:
                cout << 'f';
                break;
            case 7:
                cout << 'g';
                break;
            case 8:
                cout << 'h';
                break;
            case 9:
                cout << 'i';
                break;
            case 10:
                cout << 'j';
                break;
            case 11:
                cout << 'k';
                break;
            case 12:
                cout << 'l';
                break;
            case 13:
                cout << 'm';
                break;
            case 14:
                cout << 'n';
                break;
            case 15:
                cout << 'o';
                break;
            case 16:
                cout << 'p';
                break;
            case 17:
                cout << 'q';
                break;
            case 18:
                cout << 'r';
                break;
            case 19:
                cout << 's';
                break;
            case 20:
                cout << 't';
                break;
            case 21:
                cout << 'u';
                break;
            case 22:
                cout << 'v';
                break;
            case 23:
                cout << 'w';
                break;
            case 24:
                cout << 'x';
                break;
            case 25:
                cout << 'y';
                break;
            case 26:
                cout << 'z';
                break;
        }
    }
    cout << endl;
}


Compiler output:
a.cc: In function 'std::vector<int> get_factors(int64_t)':
a.cc:32:5: error: 'reverse' was not declared in this scope
   32 |     reverse(factors.begin(), factors.end());
      |     ^~~~~~~
Language: Java

import java.util.Scanner;

public class Mian {

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

		int n = sc.nextInt();
		int[]r = new int[12];
		int i = n;
		int j = 12;
		while(i >= 26) {
			r[j-1] = i / (int)Math.pow(26, j);
			i = i % (int)Math.pow(26, j);
			j--;
		}

		for(int x=r.length-1; x>=0; x--) {
			isAlfabet(r[x]);
		}
		isAlfabet(i);
	}

	private static void isAlfabet(int num) {
		String[] s = {"a","b","c","d","e","f","g","h","i","j","k","l","m",
				"n","o","p","q","r","s","t","u","v","w","x","z"};
		if(num != 0) {
			System.out.print(s[num-1]);
		}
	}
}


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

#include <bits/stdc++.h>
using namespace std;
#define ei(a,b) else if(a>=b)
#define re retern 0
int main()
{
	long long n;
	cin>>n;
	char a[10],b[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'};
	if(n>=26){
		cout<<b[n-1];
		re;
	}
	ei(n,702){
		
	}	
} 


Compiler output:
a.cc: In function 'int main()':
a.cc:4:12: error: 'retern' was not declared in this scope; did you mean 'extern'?
    4 | #define re retern 0
      |            ^~~~~~
a.cc:12:17: note: in expansion of macro 're'
   12 |                 re;
      |                 ^~
Language: C++

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

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

	std::cin >> N;
	std::string ans;
	int i = 1;
	do {
		ans += map[N % 26];
		N -= powl(26,i);
		++i;
	} while (N > 0);

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

Compiler output:
a.cc: In function 'int main()':
a.cc:15:22: error: 'powl' was not declared in this scope
   15 |                 N -= powl(26,i);
      |                      ^~~~
Language: C++

#include<iostream>
#include<string>
#include <algorithm>
int main(){
   long long N;
   long long p;
   std::cin >> N;
   std::string result;
   while (N){
       p = N%26;
       if (p ==0) result += 'z'
       else result += 'a' + p-1;
       N = N/26;
   }
  std::reverse(result.begin(),result.end());
  std::cout << result;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:32: error: expected ';' before 'else'
   11 |        if (p ==0) result += 'z'
      |                                ^
      |                                ;
   12 |        else result += 'a' + p-1;
      |        ~~~~
Language: C++

#include <iostream>
#include <fstream>
#include <string>
#include <vector>
#include <algorithm>
#include <cmath>
#include <chrono>

using namespace std;
using namespace chrono;
 
typedef long long ll;
typedef long double ld;

typedef pair<int, int> pi;
typedef pair<ll,ll> pl;
typedef pair<ld,ld> pd;

typedef vector<int> vi;
typedef vector<ld> vd;
typedef vector<ll> vl;
typedef vector<pi> vpi;
typedef vector<pl> vpl;

//#define FOR(i, a, b) for (int i = (a); i < (b); i++)
#define loop(x,n) for(int x = 0; x < n; ++x)
#define FORd(i,a,b) for (int i = (b)-1; i >= (a); i--)
#define F0Rd(i,a) for (int i = (a)-1; i >= 0; i--)
#define trav(a, x) for (auto& a : x)

#define mp make_pair
#define pb push_back
#define ff first
#define ss second
#define lb lower_bound
#define ub upper_bound

#define sz(x) (int)x.size()
#define beg(x) x.begin()
#define en(x) x.end()
#define all(x) beg(x), en(x)
#define resz resize

const int MOD = 1000000007; // 998244353
const ll INF = 1e18;
const int MX = 100001;

string get_str() {
    string temp;
    cin >> temp;
    return temp;
}
int get_int() {
    int temp;
    cin >> temp;
    return temp;
}




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

    char a[50];
    a[i] = 'a';
    int b[50];

    loop(i, 25) {
        a[i+2] = a[i+1] + 1;
        b[i] = 0;
    }

    for(int i=0; n>0; i++) {
        b[i] = n % 26;
        if(b[i] == 0) b[i] = 26;
        a = (a-1) / 26;
    }

    for(int i=20; i>= 0; --i) {
        if(b[i] != 0) cout << a[b[i]];
    } 

    cout << endl;

}

Compiler output:
a.cc: In function 'int main()':
a.cc:68:7: error: 'i' was not declared in this scope
   68 |     a[i] = 'a';
      |       ^
a.cc:79:19: error: invalid operands of types 'char*' and 'int' to binary 'operator/'
   79 |         a = (a-1) / 26;
      |             ~~~~~ ^ ~~
      |               |     |
      |               char* int
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main(void){
    // Your code here!
    long long int n;
    string ans;
    cin>>n;
    while(n){
        n--;
        ans+='a'+n%26;
        n/=26;
    }
    sort(ans.rbegin(),ans.rend())
    cout<<ans<<endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:13:34: error: expected ';' before 'cout'
   13 |     sort(ans.rbegin(),ans.rend())
      |                                  ^
      |                                  ;
   14 |     cout<<ans<<endl;
      |     ~~~~
Language: Java

//package  com.company;


import java.util.Scanner;

public class Main{

    public static void main(String[] args) {
        Scanner sc=new Scanner(System.in);
        StringBuilder ans=new StringBuilder();
        int n=sc.nextLong();
        while(n>0){
            n--;
            ans.append((char) ((n % 26) + 'a'));
            n/=26;
        }
        System.out.println(ans.reverse().toString());

    }
}

Compiler output:
Main.java:11: error: incompatible types: possible lossy conversion from long to int
        int n=sc.nextLong();
                         ^
1 error
Language: C++

#include<bits/stdc++.h>
#define INF 2000000000
#define MOD 1000000007
#define EPS (1e-10)

using namespace std;

int main(int argc, char *argv[]) {

	long N; cin >> N;

	vector<char> alphabet(26,0);

	for (int i = 0; i < 26; i++) {
		alphabet[i] = char(65+i);
	}

	string ans = "";
	while(N > 0) {
		ans += tolower(alphabet[N%26 - 1]);
		N /= 26;
	}
	everse(ans.begin(), ans.end());
	cout << ans << endl;

	return 0;
}


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

public class Main
{
	public static void main(String[] args) {
	    Main m=new Main();
	    Scanner sc=new Scanner(System.in);
	    int n=sc.nextInt();
	    String value="";
	    String val="";
	    while(n>0){
	     int rem=n % 26;
	     if(rem==0){
	     val="Z";
	     value=val+value;    
	     }
	     else{
	     value=m.getCharForNumber(rem)+value;
	     }
	     n=n-1;
	     n=n/26;
	     }
	    System.out.println(value.toLowerCase()); 
	}                                       
   	private String getCharForNumber(int i) {
    return i > 0 && i < 27 ? String.valueOf((char)(i + 64)) : "";
   } 
}


Compiler output:
Main.java:5: error: cannot find symbol
	    Scanner sc=new Scanner(System.in);
	    ^
  symbol:   class Scanner
  location: class Main
Main.java:5: error: cannot find symbol
	    Scanner sc=new Scanner(System.in);
	                   ^
  symbol:   class Scanner
  location: class Main
2 errors
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(){
  int n;
  cin >>n;
  string ans;
  for(int i=0;i<100;i++){
    if(n<=pow(26,i)){
      n-=1;
      for(int j=0;j<i;j++){
        ans+=('a'+n%26);
        n /= 26;
      }
    }else{
      n-=pow(26,i);
    }
  }

  if(ans==True)cout << -1 << endl;
  else   cout << ans << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:19:11: error: 'True' was not declared in this scope
   19 |   if(ans==True)cout << -1 << endl;
      |           ^~~~
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(){
  int n;
  cin >>n;
  string ans;
  for(int i=0;i<100;i++){
    if(n<=26**i){
      n-=1;
      for(int j=0;j<i;j++){
        ans+=('a'+n%26);
      }
    }else{
      n-=26**i;
    }
  }
  printf("%s\n",ans);
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:14: error: invalid type argument of unary '*' (have 'int')
    8 |     if(n<=26**i){
      |              ^~
a.cc:14:13: error: invalid type argument of unary '*' (have 'int')
   14 |       n-=26**i;
      |             ^~
Language: C++

#include<bits/stdc++.h>
#define REP(i, n) for(int i = 0; i < n; i++)
#define REPR(i, n) for(int i = n; i >= 0; i--)
#define FOR(i, m, n) for(int i = m; i < n; i++)
#define INF 1e9
#define ALL(v) v.begin(), v.end()
using namespace std;
typedef long long ll;

int main(){
  ll a,r;
  ll N;
  cin >> N;
  
  stack<char> data;
  
  if(N < 26)
  	data.push('a' + N -1);
  else{
    while((a = N / 26)){
      r = N % 26;
      N = a;
      data.push('a' + r - 1);
    }
    data.push('a' + N - 1);
  }
  while(!data.empty()){
    cout << data.top();
    data.pop();
  }

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

#include <bits/stdc++.h>

using namespace std;

#define all(x) (x).begin(), (x).end()

typedef long long ll;

void solve(){
	ll n;
	cin >> n;
	string s;
	while(n > 0) {
		--n;
		s += char('a' + n % 26)
		n /= 26;
	}
	
	cout << s;
}

int main() {
    ios_base::sync_with_stdio(0);
    cin.tie(0);
    cout.tie(0);

	solve();
    
    return 0;
}


Compiler output:
a.cc: In function 'void solve()':
a.cc:15:40: error: expected ';' before 'n'
   15 |                 s += char('a' + n % 26)
      |                                        ^
      |                                        ;
   16 |                 n /= 26;
      |                 ~
Language: C++

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


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

    while(n) {
        n--;
        ans += 'a' + n % 26;
        n /= 26;
    }
    reverse(ans.begin(), and .end());
    cout << ans << endl;
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:20:30: error: expected identifier before '.' token
   20 |     reverse(ans.begin(), and .end());
      |                              ^
Language: Java

import java.util.*;

public class Main {
  public static void main(String[] args) throws Exception {
    Scanner sc = new Scanner(System.in);
    int N = sc.nextInt();
    
    String name = "";
    
    while(N>0){
      String x = String.valueOf(Character.toChars(N%27+96))
      name = x.concat(name);
      if(N/26 >1){
        N = (int)N/26;
      } else {
        break;
      }
    }
    System.out.println(name);
  }
}

Compiler output:
Main.java:11: error: ';' expected
      String x = String.valueOf(Character.toChars(N%27+96))
                                                           ^
1 error
Language: C++

#include <iostream>
#include<bits\stdc++.h>
#include<cstring>
using namespace std;
int main(){
	int n;
	cin>>n;
	string s="";
	while(n>0){
      n--;
		 s+=('a'+ (n%26));
		n/=26;
	}
	reverse(s.begin(),s.end());
	cout<<s;
	return 0;
}


Compiler output:
a.cc:2:9: fatal error: bits\stdc++.h: No such file or directory
    2 | #include<bits\stdc++.h>
      |         ^~~~~~~~~~~~~~~
compilation terminated.
Language: C++

#include <iostream>
#include<bits\stdc++.h>
#include<cstring>
using namespace std;
int main(){
	int n;
	cin>>n;
	string s="";
	while(--n>=0){
		 s+=('a'+ (n%26));
		n/=26;
	}
	reverse(s.begin(),s.end());
	cout<<s;
	return 0;
}


Compiler output:
a.cc:2:9: fatal error: bits\stdc++.h: No such file or directory
    2 | #include<bits\stdc++.h>
      |         ^~~~~~~~~~~~~~~
compilation terminated.
Language: Java

import java.util.*;
public class main {
	public static void main(String[] args){
		Scanner sc=new Scanner(System.in);
		long n = sc.nextLong();
		String s = "zabcdefghijklmnopqrstuvwxy";
		String ss = "";
		while(n>0){
			ss= s.charAt((int)(n%26))+ss;
			n/=26;
		}
		System.out.println(ss);
	}
}


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

#include<iostream>
#include<iomanip>
#include<cstdlib>
#include<cmath>
#include<string>
#include<algorithm>
using namespace std;

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



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

public class Main {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);

        long N = scanner.nextLong();
        String ans = "";
        while (N > 0) {
            N--;
            ans = (char)(N % 26 + 97) + ans;
            N /= 26;
        }
        System.out.println(ans);
    }
}

Compiler output:
Main.java:3: error: cannot find symbol
        Scanner scanner = new Scanner(System.in);
        ^
  symbol:   class Scanner
  location: class Main
Main.java:3: error: cannot find symbol
        Scanner scanner = new Scanner(System.in);
                              ^
  symbol:   class Scanner
  location: class Main
2 errors
Language: Java

public class One_Quadrillion_and_One_Dalmatians {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);

        long N = scanner.nextLong();
        String ans = "";
        while (N > 0) {
            N--;
            ans = (char)(N % 26 + 97) + ans;
            N /= 26;
        }
        System.out.println(ans);
    }
}

Compiler output:
Main.java:1: error: class One_Quadrillion_and_One_Dalmatians is public, should be declared in a file named One_Quadrillion_and_One_Dalmatians.java
public class One_Quadrillion_and_One_Dalmatians {
       ^
Main.java:3: error: cannot find symbol
        Scanner scanner = new Scanner(System.in);
        ^
  symbol:   class Scanner
  location: class One_Quadrillion_and_One_Dalmatians
Main.java:3: error: cannot find symbol
        Scanner scanner = new Scanner(System.in);
                              ^
  symbol:   class Scanner
  location: class One_Quadrillion_and_One_Dalmatians
3 errors
Language: C

#include<stdio.h>

long long int calculate(int length)
{
	int i;
	long long int fans=0,ans=1;
	
	for(i=1;i<=length;i++)
	{
		ans*=26;
		fans+=ans;
	}
	
	return fans;
}

int main(void)
{
  long long int number,x;
	int length=1,i;
  char *str;
  
  scanf("%lld",&number);
  
  while(number>calculate(length))
  {
    length++;
  }
  
  str=(char *)malloc(sizeof(char)*length);
  x=number-calculate(length-1)-1
  
  for(i=0;i<length;i++)
  {
  	str[i]='a'+x%26;
  }
  
  for(i=length-1;i>=0;i--)
  {
    printf("%c",str[i]);
  }
	
	free(str);
  
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:30:15: error: implicit declaration of function 'malloc' [-Wimplicit-function-declaration]
   30 |   str=(char *)malloc(sizeof(char)*length);
      |               ^~~~~~
main.c:2:1: note: include '<stdlib.h>' or provide a declaration of 'malloc'
    1 | #include<stdio.h>
  +++ |+#include <stdlib.h>
    2 | 
main.c:30:15: warning: incompatible implicit declaration of built-in function 'malloc' [-Wbuiltin-declaration-mismatch]
   30 |   str=(char *)malloc(sizeof(char)*length);
      |               ^~~~~~
main.c:30:15: note: include '<stdlib.h>' or provide a declaration of 'malloc'
main.c:31:33: error: expected ';' before 'for'
   31 |   x=number-calculate(length-1)-1
      |                                 ^
      |                                 ;
   32 | 
   33 |   for(i=0;i<length;i++)
      |   ~~~
Language: C++

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


int main()
{
    string s;
    long long N;
    long long d = 1;
    int result [7] = {0};
    int i = 0;
    int l;
    cin >> N;
    while (N>=0){
        N-= d;
        d *= 26;
        result[i]++;
        i++;
    }
    i--;
    l = i;
    d /= 26;
    N+= d;
    while (d >= 1){
        result[i] += N/d;
        N %= d;
        d /= 26;
        i--;


    }
    for (int m=l-1; m>=0; m--){
        s += (result[m] + 'a' -1);
    }
    cout << s;

}

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


int main()
{
    string s;
    long long N;
    long long d = 1;
    int result [7] = {0};
    int i = 0;
    int l;
    cin >> N;
    while (N>=0){
        N-= d;
        d *= 26;
        result[i]++;
        i++;
    }
    i--;
    l = i;
    d /= 26;
    N+= d;
    while (d >= 1){
        result[i] += N/d;
        N %= d;
        d /= 26;
        i--;


    }
    for (int m=l-1; m>=0; m--){
        s += (result[m] + 'a' -1);
    }
    cout << s;

}



Compiler output:
a.cc:49:5: error: redefinition of 'int main()'
   49 | int main()
      |     ^~~~
a.cc:8:5: note: 'int main()' previously defined here
    8 | int main()
      |     ^~~~
Language: C++

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

using namespace atd;

int main()
{
  long long n;
  cin>>n;
  string ans;
  for(int i=0;i<n;i++)
  {
    n--;
    ans+=(char)('a'+n%26);
    n/26;
  }
  sort(ans.begin(),ans.end());
  cout<<ans<<endl;
}

Compiler output:
a.cc:6:17: error: 'atd' is not a namespace-name
    6 | using namespace atd;
      |                 ^~~
a.cc: In function 'int main()':
a.cc:11:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
   11 |   cin>>n;
      |   ^~~
      |   std::cin
In file included from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:12:3: error: 'string' was not declared in this scope
   12 |   string ans;
      |   ^~~~~~
a.cc:12:3: note: suggested alternatives:
In file included from /usr/include/c++/14/iosfwd:41,
                 from /usr/include/c++/14/ios:40,
                 from /usr/include/c++/14/ostream:40,
                 from /usr/include/c++/14/iostream:41:
/usr/include/c++/14/bits/stringfwd.h:77:33: note:   'std::string'
   77 |   typedef basic_string<char>    string;
      |                                 ^~~~~~
In file included 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:
/usr/include/c++/14/string:76:11: note:   'std::pmr::string'
   76 |     using string    = basic_string<char>;
      |           ^~~~~~
a.cc:16:5: error: 'ans' was not declared in this scope; did you mean 'abs'?
   16 |     ans+=(char)('a'+n%26);
      |     ^~~
      |     abs
a.cc:19:8: error: 'ans' was not declared in this scope; did you mean 'abs'?
   19 |   sort(ans.begin(),ans.end());
      |        ^~~
      |        abs
a.cc:19:3: error: 'sort' was not declared in this scope; did you mean 'std::sort'?
   19 |   sort(ans.begin(),ans.end());
      |   ^~~~
      |   std::sort
In file included from /usr/include/c++/14/algorithm:86,
                 from a.cc:4:
/usr/include/c++/14/pstl/glue_algorithm_defs.h:296:1: note: 'std::sort' declared here
  296 | sort(_ExecutionPolicy&& __exec, _RandomAccessIterator __first, _RandomAccessIterator __last);
      | ^~~~
a.cc:20:3: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   20 |   cout<<ans<<endl;
      |   ^~~~
      |   std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:20:14: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   20 |   cout<<ans<<endl;
      |              ^~~~
      |              std::endl
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
Language: C++

#include <iostream>
#include <string>
#include <algorithm>
using namespace std;
string s="zabcdefghijklmnopqrstuvwxy";
int main(){
	long long n,i=1;
	string k ="";
	cin >> n;
	while(n>0){
		k+= char(s[n%26]);
		n -= pow(26,i);
		i++;
	
	};
	reverse(k.begin(),k.end());
	cout <<  k << endl;
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:22: error: 'pow' was not declared in this scope
   12 |                 n -= pow(26,i);
      |                      ^~~
Language: Java

import org.omg.PortableInterceptor.SYSTEM_EXCEPTION;

import java.lang.reflect.Array;
import java.util.*;

public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        ArrayList<Character> arr = new ArrayList<Character>();
        long x = sc.nextLong();
        for(int i=1;i<30;i++){
            if(x==0)break;
            arr.add((char)(96 + x % 26));
            x /= 26;
        }
        StringBuilder sb = new StringBuilder();
        for(Character c:arr)sb.append(c);
        System.out.println(sb);
    }
}


Compiler output:
Main.java:1: error: package org.omg.PortableInterceptor does not exist
import org.omg.PortableInterceptor.SYSTEM_EXCEPTION;
                                  ^
1 error