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

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

typedef long long llint;
typedef long double ld;

#define inf 1e18
#define mod 1000000007
priority_queue<llint,vector<llint>,greater<llint> > que;
priority_queue<llint> Que;
template<class T> inline bool chmin(T& a, T b) { if (a > b) { a = b; return 1; } return 0; }

llint n;

unsigned long calc(llint a){
	return a*a*a*a*a;
}


vector<llint>make_div(llint x){
	vector<llint>div;
	llint t=x;
	for(llint i=2;i*i<=x;i++){
		if(t%i==0){
			div.push_back(i);
			if(i!=t/i){
				div.push_back(t/i);
			}
		}
	}
	sort(div.begin(),div.end());
	return div;
}
unsigned long c(llint a,llint b){
	return a*a*a*a+a*a*a*b+a*a*b*b+a*b*b*b+b*b*b*b;
}
void solve(){
	cin >> n;
	llint ansa,ansb;

	if(n==1){
		ansa=0;
		ansb=-1;
	}
	else if(n==2){
		ansa=1;
		ansb=-1;
	}
	else{
		vector<llint>div;
		div=make_div(n);
		for(llint g:div){
			for(llint a=1;calc(a)<=n;a++){
				llint b=a-g;
				v=c(a,b);
				if((a-b)*v==n){
			  	ansa=a;
					ansb=b;
				}
			}
		}
	}

	cout << ansa << " " << ansb << endl;
}

int main(int argc, char *argv[]) {
  solve();
  return 0;
}


Compiler output:
a.cc: In function 'void solve()':
a.cc:55:33: error: 'v' was not declared in this scope
   55 |                                 v=c(a,b);
      |                                 ^
Language: C++

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

int keta(int n) {
    int res;
    for(int i = 0; i < 100; i++) {
        n = n / 10;

        if(n == 0) {
            res = i + 1;
            break;
        }
    }
    return res;
}

ll risi(ll n) {
    ll y = n / 100;
    ll res;
    res = n + y;
    return res;
}
ll main() {
    ll x, ansf = 0, anss = 0;
    cin >> x;
    REP(a, 33000) {
        unsigned ll p = a * a * a * a * a;
        REP(b, 33000) {
            unsigned ll q = b * b * b * b * b;
            if(p - q == x) {
                ansf = a;
                anss = b;
                goto OUT;

            } else if(p + q == x) {
                ansf = a;
                anss = -b;
                goto OUT;
            }
        }
    }
OUT:
    cout << ansf << " " << anss << endl;
}


Compiler output:
cc1plus: error: '::main' must return 'int'
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() {
  ll X;
  cin >> X;

  bool a = true;
  int i = 0;
  ll A = 0;

  while(A <= X){
    if(A = X){
      cout << i << " " << "0" << endl;
      a = false;
      break;
    }

    rep(j, i){
      ll B = j * j * j * j * j;
      if(A+B == X) {
        cout << i << " " << -j << endl;
        a = false
        break;
      }
    }
    i++;
    A = i * i * i * i * i;
  }

  while(a){
    rep(j, i){
      ll B = j * j * j * j * j;
      if(A-B == X) {
        cout << i << " " << j << endl;
        a = false;
      }
    i++;
    A = i * i * i * i * i;
  }

}


Compiler output:
a.cc: In function 'int main()':
a.cc:26:18: error: expected ';' before 'break'
   26 |         a = false
      |                  ^
      |                  ;
   27 |         break;
      |         ~~~~~     
a.cc:45:2: error: expected '}' at end of input
   45 | }
      |  ^
a.cc:7:12: note: to match this '{'
    7 | int main() {
      |            ^
Language: C

#include<stdio.h>
#include<stdlib.h>
#include<string.h>
#include<stdbool.h>
#include<math.h>
#include<limits.h>

typedef long long ll;
ll ans[100]={0};
ans[0] = 1;
ll cal5(ll a){
    if(ans[a]==0) return ans[a] = a*a*a*a*a;
    else return ans[a];
}

int main(){
    int X;
    scanf("%d",&X);
    for(ll i=0;cal5(i)<=1000000000;i++){
        for(ll j=0;cal5(i)-cal5(j)<=1000000000;j++){
            if(cal5(i)-cal5(j)==X){
                printf("%d %d",i,j);
                return 0;
            }
        }
    }
    for(ll i=0;cal5(i)<=1000000000;i++){
        for(ll j=0;cal5(i)-cal5(j)<=1000000000;j--){
            if(cal5(i)-cal5(j)==X){
                printf("%d %d",i,j);
                return 0;
            }
        }
    }


}


Compiler output:
main.c:10:1: warning: data definition has no type or storage class
   10 | ans[0] = 1;
      | ^~~
main.c:10:1: error: type defaults to 'int' in declaration of 'ans' [-Wimplicit-int]
main.c:10:1: error: conflicting types for 'ans'; have 'int[0]'
main.c:9:4: note: previous definition of 'ans' with type 'll[100]' {aka 'long long int[100]'}
    9 | ll ans[100]={0};
      |    ^~~
main.c:10:10: error: invalid initializer
   10 | ans[0] = 1;
      |          ^
Language: C++

#include <iostream>
#include <vector>
#include <algorithm>
#include <cmath>
#include <string>
#include <queue>
#include <stack>
#include <set>
#include <map>
#include <iomanip>
#include <utility>
#include <tuple>
#include <functional>
#include <bitset>
#include <cassert>
#include <complex>
#include <time.h>
#define ll long long
#define double long double
#define itn int
#define endl '\n'
#define co(ans) cout<<ans<<endl;
#define COYE cout<<"YES"<<endl;
#define COYe cout<<"Yes"<<endl;
#define COye cout<<"yes"<<endl;
#define CONO cout<<"NO"<<endl;
#define CONo cout<<"No"<<endl;
#define COno cout<<"no"<<endl;
#define FOR(i,a,b) for(int i=(a);i<(b);++i)
#define FFOR(i,a,b) for(int i=(a);i<=(b);++i)
#define REP(i,n)  FOR(i,0,n)
#define RREP(i,n)  FFOR(i,1,n)
#define ALL(V) ((V).begin(),(V).end())
#define SORT(V) sort((V).begin(),(V).end())
#define REVERSE(V) reverse((V).begin(),(V).end())
#define INF ((1LaL<<62)-(1LL<<31))
#define EPS 1e-10
#define PI 3.141592653589793238
#define MOD 1000000007
#define MAX 5100000
template<class T>bool chmax(T &a,const T &b){if(a<b){a=b;return 1;}return 0;}
template<class T>bool chmin(T &a,const T &b){if(b<a){a=b;return 1;}return 0;}
using namespace std;

int main(){
  ll X;
  cin>>X;
  
  ll A[11000];
  for(ll i=0,i<1000; ++i){
    A[i]=i*i*i*i*i;
  }
  
  for(ll i=0; i<1000; ++i){
    for(ll j=0; j<=i; ++j){
      if(A[i]-A[j]==X){
        cout<<i<<" "<<j<<endl;
        return 0;
      }
      else if(A[i]+A[j]==X){
        j*=-1ll;
        cout<<i<<" "<<j<<endl;
        return 0;
      }
    }
  }
  
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:50:15: error: expected ';' before '<' token
   50 |   for(ll i=0,i<1000; ++i){
      |               ^
      |               ;
a.cc:50:15: error: expected primary-expression before '<' token
Language: C++

#include <cstdio>
#include <cmath>
#include <iostream>
#include <vector>
#include <string>
#include <utility>
#include <algorithm>
#include <queue>
using namespace std;
#define FOR(i,a,b) for(ll i=a;i<b;i++)
#define REP(i,n) for(ll i=0;i<n;i++)
#define REPR(i,n) for(ll i=n-1;i>=0;i--)

typedef long long ll;
#define INF 1e18

int main(){
	ll x; cin>>x;
	vector<pair<ll,ll>> num;
	num.reserve(100001);
	REP(i,100001){
		num.push_back(pair<ll,ll> (pow(i,5)/1000000000000000,((ll)pow(i,5))%1000000000000000));
	}
	REP(i,100001){
		pair<ll,ll> serch={num[i].first*1000000000000000+x/1000000000000000,num[i].second+x};
		auto it=lower_bound(num.begin(),num.end(),);
		if(it==num.end()){
			if(*it==serch){
				cout<<it-num.begin()<<" "<<i<<endl;
				return 0;
			}
		}
		serch={num[i].first*1000000000000000-x/1000000000000000,num[i].second-x};
		it=lower_bound(num.begin(),num.end(),serch);
		if(it==num.end()){
			if(*it==serch){
				cout<<it-num.begin()<<" "<<-i<<endl;
				return 0;
			}
		}
	}
	cout<<-1<<endl;
	return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:26:59: error: expected primary-expression before ')' token
   26 |                 auto it=lower_bound(num.begin(),num.end(),);
      |                                                           ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
/* typedef */
typedef long long ll;
typedef pair<int, int> pii;
/* constant */
const ll MAX = 1e+9;
/* global variables */
/* function */
/* main */
int main(){
    ll X;
    cin >> X;
    ll p;
    ll a;
    ll b;
    ll ansA, ansB;
    ll tmpB;
    bool b1 = false, b2 = false;
    for (int i = 0; b1 == false && b2 == false;i++) {
        tmpB = pow(i, 5);
        ll diff = X - tmpB;
        if (b1 == false) {
            if (X / 2 >= tmpB) {
                ll diff2 = X + tmpB;
                if (pow(pow(diff2, 0.2), 5) == diff2) {
                    ansA = pow(diff2, 0.2), ansB = i;
            }
            else b1 = true;
        }
        if (b2 == false) {
            if (diff >= 0) {
                if (pow(pow(diff, 0.2), 5) == diff) {
                    ansA = pow(diff, 0.2), ansB = -i;
                }
            }
            else b2 = false;
        }
    }
    cout << ansA << ' ' << ansB << '\n';


}


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

n = int(input())
x = 1
y = 0
while x**5 < n:
	y = (n - x**5);
	y = int(y)
	if (x**5 + y**5 == n):
		print(x, -1 * y, sep = " ");
		break
	x+=1
if (x**5 + y**5 != n):
	i = 1
	while(i <= 100):
		if (n % i == 0):
			j = 0;
			ok = False;
			while((i+j)**5 - j**5 <= n):
				if (i+j)**5 - j**5 == n:
					print(i+j,i, sep = ' ');
					ok = True;
					break;
				j+=1
		i+=1
		if (ok == True):
			break;

Compiler output:
a.cc:1:1: error: 'n' does not name a type
    1 | n = int(input())
      | ^
a.cc:6:9: error: 'y' does not name a type
    6 |         y = int(y)
      |         ^
a.cc:9:17: error: expected unqualified-id before 'break'
    9 |                 break
      |                 ^~~~~
a.cc:16:25: error: 'ok' does not name a type
   16 |                         ok = False;
      |                         ^~
a.cc:17:25: error: expected unqualified-id before 'while'
   17 |                         while((i+j)**5 - j**5 <= n):
      |                         ^~~~~
a.cc:20:41: error: 'ok' does not name a type
   20 |                                         ok = True;
      |                                         ^~
a.cc:21:41: error: expected unqualified-id before 'break'
   21 |                                         break;
      |                                         ^~~~~
a.cc:22:33: error: 'j' does not name a type
   22 |                                 j+=1
      |                                 ^
Language: C++

#include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < (n); ++i)
#define repI(i, d, n) for (int i = (d); i < (n); ++i)
#define reps1(i, n) for (int i = 1; i < (n); ++i)
using namespace std;
template<class T> inline bool chmax(T& a, T b) { if (a < b) { a = b; return 1; } return 0; }
template<class T> inline bool chmin(T& a, T b) { if (a > b) { a = b; return 1; } return 0; }

using ll = long long;
using P = pair<int, int>;
using Pl = pair<ll, ll>;
using M = map<int, int>;
ll const INF = 1ll<<61;
double pi = 3.141592653589793238;

int main() {
  ll x;
  cin >> x;
  ll ansB;
  ll ansA;
  bool flag = true;
  ll cnt = floor(0.5 * pow(x, 0.2));
  while(flag) {
    rep(i, 2) {
      cnt = -cnt;
      double fig = pow(pow(cnt, 5) + x, 0.2);
      if (floor(fig) == fig) {
        ansB = cnt;
        ansA = ll(fig);
        flag = false;
        break;
      }
      double fig2 = pow(pow(cnt, 5) ー x, 0.2);
      if (floor(fig2) == fig2) {
        ansA = cnt;
        ansB = ll(fig);
        flag = false;
        break;
      }
    }
    cnt++;
  }

  cout << ansA << " " << ansB << endl;

  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:33:36: error: expected ')' before '\U000030fc'
   33 |       double fig2 = pow(pow(cnt, 5) ー x, 0.2);
      |                        ~           ^~~
      |                                    )
Language: C++

#include<iostream>
#include <cmath>
using namespace std;
long long x,k[1000000000],tmp;
long long fast(long long a,long long b){
    int ans = 1;
    while(b != 0)
    {
        if(b & 1){
        ans *= a;
        }
    b>>=1;
    a *=a;

    }
    return ans;
}
int main(){
	cin>>x;
	for(int i=0;fast(i,5)<=1e9;i++){
		tmp=i;
		k[i]=fast(i,5);
	}
	for(int i=0;i<=tmp;i++){
		for(int j=0;j<=tmp&&abs(k[i]-k[j])>x;j++){
			if(abs(k[i]-k[j])==x){
				cout<<i<<" "<<0-j<<endl;
				return 0;
			}
			if(k[i]+k[j]==x){
				cout<<i<<" "<<j<<endl;
				return 0;
			}
		}
	}
}

Compiler output:
/tmp/ccm7vELz.o: in function `main':
a.cc:(.text+0x80): relocation truncated to fit: R_X86_64_PC32 against symbol `tmp' defined in .bss section in /tmp/ccm7vELz.o
a.cc:(.text+0x241): relocation truncated to fit: R_X86_64_PC32 against symbol `tmp' defined in .bss section in /tmp/ccm7vELz.o
a.cc:(.text+0x2b6): relocation truncated to fit: R_X86_64_PC32 against symbol `tmp' defined in .bss section in /tmp/ccm7vELz.o
collect2: error: ld returned 1 exit status
Language: C++

#include<bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef pair<ll, ll> P;
const long double PI = (acos(-1));
#define rep(i, x, n) for (int i = x; i < (int)(n); i++)
#define sc(x) scanf("%d",&x)
#define scll(x) scanf("%lld",&x)
static const int mod = 1e9+7;

ll mpow(ll a, ll n){
    ll res = 1;
    while (n > 0){
        if (n & 1) res = res * a % mod;
        a = a * a % mod;
        n >>= 1;
    }
    return res;
}

int main(){
    int x; sc(x);
    bool check = false;
    vector<ll> v1, v2;
    ll now = 0, tmp, a, b, tmp1, tmp2;
    while(1){
        tmp = mpow(now, 5);
        if (now == 100000000) break;
        v1.push_back(tmp);
        v2.push_back(now);
        now++;
    }
    rep(i, 0, v1.size()){
        a = v1[i];
        tmp1 = a + x;
        tmp2 = x - a;
        auto it1 = lower_bound(v1.begin(), v1.end(), tmp1);
        auto it2 = lower_bound(v1.begin(), v1.end(), tmp2);
        if (*it1 - a == x){
            cout << v2[(int)it1-v2.begin()] << " " << a << endl;
            break;
        }
        if (*it2 + a == x){
            cout << v2[(int)it2-v2.begin()] << " " << -a << endl;
            break;
        }
    }
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:40:24: error: invalid cast from type '__gnu_cxx::__normal_iterator<long long int*, std::vector<long long int> >' to type 'int'
   40 |             cout << v2[(int)it1-v2.begin()] << " " << a << endl;
      |                        ^~~~~~~~
a.cc:44:24: error: invalid cast from type '__gnu_cxx::__normal_iterator<long long int*, std::vector<long long int> >' to type 'int'
   44 |             cout << v2[(int)it2-v2.begin()] << " " << -a << endl;
      |                        ^~~~~~~~
Language: C++

#include <bits/stdc++.h>

#define pb push_back
#define rep(i,n) for(int i=0;i<(n);i++)
#define reps(i,n,s) for(int i=(s);i<(n);i++)
#define rrep(i,n) for(int i=(n-1);i>=0;i--)
#define rreps(i,n,s) for(int i=s;i>=n;i--)
template<class T> bool chmax(T &a, const T &b) { if (a<b) { a=b; return 1; } return 0; }
template<class T> bool chmin(T &a, const T &b) { if (a>b) { a=b; return 1; } return 0; }

using ll = long long;
using namespace std;
constexpr long long MAX = 5100000;
constexpr long long INF = 1LL << 60;
constexpr int MOD = 1000000007;

//素因数分解
map<ll,ll> get_div(ll n){
    map<ll,ll> div;
    ll num = n;
    for (ll i=2; i * i < n; i++)
    {
        while(num%i==0){
            div[i]++;
             num /= i;
             }
    }
    if(num>1)
        div[num]++;

    return div;
}

int main(){
cin.tie(0);
ios::sync_with_stdio(false);
ll x;
cin >> x;
map<ll, ll> div = get_div(x);
if(div.size()==0){
    div[1]++;
ll a, b;
bool ok=false;

for (auto v : div)
{
    ll factor=v.first;
    rep(tmp_a,factor+1){
        ll tmp_b = tmp_a-factor;
        ll val = powl(tmp_a, 5) - powl(tmp_b, 5);
        if (val == x)
        {
            ok = true;
            a = tmp_a;
            b = tmp_b;
        }
        if(ok){
            break;
        }
    }
    if(ok){
            break;
    }
}
cout << a << " " << b << endl;
return 0;
}

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

	long long X;
	scanf("%lld",&X);

	for (ll A = -100; A <= 100; ++A)
	{
		for (ll B = -100; B <= 100; ++B)
		{
			if (A * A * A * A * A - B * B * B * B * B == X)
			{
				cout << A << " " << B << endl;
				return EXIT_SUCCESS;
			}
		}
	}

	return 0;


Compiler output:
a.cc:2:14: error: expected constructor, destructor, or type conversion before '(' token
    2 |         scanf("%lld",&X);
      |              ^
a.cc:4:9: error: expected unqualified-id before 'for'
    4 |         for (ll A = -100; A <= 100; ++A)
      |         ^~~
a.cc:4:27: error: 'A' does not name a type
    4 |         for (ll A = -100; A <= 100; ++A)
      |                           ^
a.cc:4:37: error: expected unqualified-id before '++' token
    4 |         for (ll A = -100; A <= 100; ++A)
      |                                     ^~
a.cc:16:9: error: expected unqualified-id before 'return'
   16 |         return 0;
      |         ^~~~~~
Language: C

#!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# FileName: 	D
# CreatedDate:  2020-05-03 22:36:44 +0900
# LastModified: 2020-05-03 22:38:33 +0900
#


import os
import sys


def main():
    x=int(input())
    b=-1
    for i in range(x):
        if x==i**5+1:
            a=i
            break
    print("{} {}".format(a,b))


if __name__ == "__main__":
    main()


Compiler output:
main.c:1:2: error: invalid preprocessing directive #!
    1 | #!/usr/bin/env python
      |  ^
main.c:2:3: error: invalid preprocessing directive #-
    2 | # -*- coding: utf-8 -*-
      |   ^
main.c:4:3: error: invalid preprocessing directive #FileName
    4 | # FileName:     D
      |   ^~~~~~~~
main.c:5:3: error: invalid preprocessing directive #CreatedDate
    5 | # CreatedDate:  2020-05-03 22:36:44 +0900
      |   ^~~~~~~~~~~
main.c:6:3: error: invalid preprocessing directive #LastModified
    6 | # LastModified: 2020-05-03 22:38:33 +0900
      |   ^~~~~~~~~~~~
main.c:10:1: error: unknown type name 'import'
   10 | import os
      | ^~~~~~
main.c:11:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'import'
   11 | import sys
      | ^~~~~~
main.c:11:1: error: unknown type name 'import'
Language: C++

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

vector< bool > prime_table(int n) {
  vector< bool > prime(n + 1, true);
  if(n >= 0) prime[0] = false;
  if(n >= 1) prime[1] = false;
  for(ll i = 2; i * i <= n; i++) {
    if(!prime[i]) continue;
    for(ll j = i + i; j <= n; j += i) {
      prime[j] = false;
    }
  }
  return prime;
}

int main() {
  ll N;
  cin >> N;
  vector<bool> prime = prime_table(N);
  if(N == 1){
    cout << 1 << " " << 0 << endl;
  }
  
  for(ll i=2;i<sqrt(N);i++){
    if(N%i == 0){
      for(ll a=i;a>=0;i++){
        ll b=i-a;
        ll tmp = a*a*a*a + a*a*a*b + a*a*b*b + a*b*b*b + b*b*b*b;
        if(tmp == N%i){
          cout << a << " " << b << endl;
        }
      }
    }

  return(0); 
}


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

#include <stdio.h>
#include <math.h>
int main(void)
{
    int64_t X;
    scanf("%lli", &X);
    if(X==1)
    {
        printf("0 -1\n");
        return 0;
    }
    for (int64_t A = 2;; A++)
    {
        if (X % A == 0)
        {
            // int64_t B=X/A;
            for (int64_t i = 0;;i++)
            {
                int64_t a1 = A-i;
                int64_t b1 = -i;
                if(pow(a1,5)-(pow(b1,5))==X)
                {
                    printf("%lli %lli\n",a1,b1);
                    return 0;
                }
                int64_t a2 = A+i;
                int64_t b2 = i;
                if(pow(a2,5)-(pow(b2,5))==X)
                {
                    printf("%lli %lli\n",a2,b2);
                    return 0;
                }
            }
            
        }
    }

    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:5:5: error: unknown type name 'int64_t'
    5 |     int64_t X;
      |     ^~~~~~~
main.c:3:1: note: 'int64_t' is defined in header '<stdint.h>'; this is probably fixable by adding '#include <stdint.h>'
    2 | #include <math.h>
  +++ |+#include <stdint.h>
    3 | int main(void)
main.c:12:10: error: unknown type name 'int64_t'
   12 |     for (int64_t A = 2;; A++)
      |          ^~~~~~~
main.c:12:10: note: 'int64_t' is defined in header '<stdint.h>'; this is probably fixable by adding '#include <stdint.h>'
main.c:17:18: error: unknown type name 'int64_t'
   17 |             for (int64_t i = 0;;i++)
      |                  ^~~~~~~
main.c:17:18: note: 'int64_t' is defined in header '<stdint.h>'; this is probably fixable by adding '#include <stdint.h>'
main.c:19:17: error: unknown type name 'int64_t'
   19 |                 int64_t a1 = A-i;
      |                 ^~~~~~~
main.c:19:17: note: 'int64_t' is defined in header '<stdint.h>'; this is probably fixable by adding '#include <stdint.h>'
main.c:20:17: error: unknown type name 'int64_t'
   20 |                 int64_t b1 = -i;
      |                 ^~~~~~~
main.c:20:17: note: 'int64_t' is defined in header '<stdint.h>'; this is probably fixable by adding '#include <stdint.h>'
main.c:26:17: error: unknown type name 'int64_t'
   26 |                 int64_t a2 = A+i;
      |                 ^~~~~~~
main.c:26:17: note: 'int64_t' is defined in header '<stdint.h>'; this is probably fixable by adding '#include <stdint.h>'
main.c:27:17: error: unknown type name 'int64_t'
   27 |                 int64_t b2 = i;
      |                 ^~~~~~~
main.c:27:17: note: 'int64_t' is defined in header '<stdint.h>'; this is probably fixable by adding '#include <stdint.h>'
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(){
 long long int x;
  s=100;
  cin>>x;
  long long int a;
  for(a=1;a<=s+1;a++){
  	long long int f=pow(a,5)-x;
  	long long int b=pow(abs(f),0.2);
  	if(f<0){
	  b=b*-1;
	}
	  if(pow(a,5)-pow(b,5)==x)
  	{cout<<a<<" "<<b<<"\n";
	  break;
	}
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:3: error: 's' was not declared in this scope
    5 |   s=100;
      |   ^
Language: C++

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

int main() {
  int X;
  cin >> X;
  vector<long long> V(241);
  for (int i = 0; i <241; i++) {
    int V.at(i)=(i-120)*(i-120)*(i-120)*(i-120)*(i-120);
  }
  for(int i =121;i<241;i++){
    for(int j=0;j<241;j++){
      if(V.at(i)-V.at(j)==X){
        cout<<i-121<<j-121<<endl;
        goto LAST;
      }
    }
  }
  LAST;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:10: error: expected initializer before '.' token
    9 |     int V.at(i)=(i-120)*(i-120)*(i-120)*(i-120)*(i-120);
      |          ^
a.cc:19:3: error: 'LAST' was not declared in this scope
   19 |   LAST;
      |   ^~~~
a.cc:15:14: error: label 'LAST' used but not defined
   15 |         goto LAST;
      |              ^~~~
Language: C++

#include<bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
int main(){
  long long n;
  cin >> n;
  long long mm=1;
  while(mm*mm<=n){
    mm++;
  }
  long long u=1;
  vector<long long> k(1,-1);
  while(u<=mm){
    if(n%u==0){
      k.push_back(u);
      k.push_back(n/u);
    }
    u++;
  }
  long long fina=1,finb=1;
  for(long long o: k){
    if(o<0)continue;
    if(p<o)continue;
    long long p=n/o;
    p-=o*o*o*o;
    if(p%5!=0)continue;
    p/=5;
    long long z=o*o*o*o+4*p;
    if(z<0)continue;
    long long xy1,xy2;
    if(z==0&&o*o%2==0){
      xy1=-(o*o/2);
      long long v=o*o+4*xy1;
      long long x=0;
      while(x*x<v){
        x++;
      }
      if(x*x==v){
        if((x+o)%2==0){
          fina=(x+o)/2;
          finb=fina-o;
        }
      }
    }
    else{
      long long s=1;
      while(s*s<z){
        s++;
      }
      if(s*s!=z)continue;
      if((-o*o+s)%2==0){
        xy1=(-o*o+s)/2;
        xy2=(-o*o+s)/2;
      }
      else continue;
      long long v=o*o+4*xy1;
      long long x=1;
      while(x*x<v){
        x++;
      }
      if(x*x==v){
        if((x+o)%2==0){
          fina=(x+o)/2;
          finb=fina-o;
        }
      }
      long long r=o*o+4*xy2;
      long long y=1;
      while(y*y<r){
        r++;
      }
      if(y*y==r){
        if((y+o)%2==0){
          fina=(y+o)/2;
          finb=fina-o;
        }
      }
      
    }
  }
  cout << fina << " " << finb << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:23:8: error: 'p' was not declared in this scope
   23 |     if(p<o)continue;
      |        ^
Language: Java

import java.util.Scanner;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.HashSet;
import java.util.List;
public class Main{
	public static void main(final String[] args){
		Scanner sc = new Scanner(System.in);
        int sum = 0;
		int x = sc.nextInt();
		int a = 1;
		int b = 1;
		int result = 0;

		for(int i=1; i<=x; i++){
			if(x % i == 0){
			sum++;
			System.out.println(i);
			}
		}
		for(int i = 0; ; i++){
		   result = (a-b)*(a^4+a^3*b+a^2*b^2+a*b^3+b^4);
		   Math.abs(result);
		   if(result == x){
			   break;
		   }
		   a++;
		   b++;

		}
		if(result != x){
		  a *= -1;
		  b *= -1;
		}
		System.println(a + '' + b);

	}
}


Compiler output:
Main.java:35: error: empty character literal
		System.println(a + '' + b);
		                   ^
Main.java:35: error: not a statement
		System.println(a + '' + b);
		                        ^
Main.java:35: error: ';' expected
		System.println(a + '' + b);
		                         ^
3 errors
Language: C++

#include <iostream>
#include <cmath>//std::modfを使うため（浮動小数点数を整数部と小数部に分ける）
//また、std::powも使うため（xのn乗を返す）

using namespace std;

long long float five(int i)
{
	return i * i * i * i * i;
}

int main()
{
	//B = 0のとき(A = 0のときはこれに-をつけるだけだから考えなくていい)
	long float x, a, integral_part = 0, fractional_part;
	cin>>x;
	a = pow(x, 0.2);
	fractional_part = modf(a, &integral_part);
	if(fractional_part == 0.000000){
		cout<<integral_part<<" "<<0<<endl;
		return 0;
	}
	
	for(int i=0;i<100;i++){
		for(int j=0;j<100;j++){
			if(five(i) - five(j) == x){
				cout<<i<<" "<<j<<endl;
				return 0;
			}
		}
	}
}

Compiler output:
a.cc:7:6: error: 'long long' specified with 'float'
    7 | long long float five(int i)
      |      ^~~~
a.cc: In function 'int main()':
a.cc:15:9: error: 'long' specified with 'float'
   15 |         long float x, a, integral_part = 0, fractional_part;
      |         ^~~~
a.cc:15:9: error: 'long' specified with 'float'
a.cc:15:9: error: 'long' specified with 'float'
a.cc:15:9: error: 'long' specified with 'float'
Language: Java

public class Main{
      public static void main(String[] args) {
            Scanner sc = new Scanner(System.in);
            int X = sc.nextInt();
            int A = 0;
            int B = 0; 
            for(int i = 0; i < X / 2; i++){
              for(int j = 0;j > -X / 2; j--){
                if((i*i*i*i*i) -(j*j*j*j*j) == X){
                  A = i;
                  B = j;
                }
              }
            }
            System.out.println(A + " "+ B);
          }
}

Compiler output:
Main.java:3: error: cannot find symbol
            Scanner sc = new Scanner(System.in);
            ^
  symbol:   class Scanner
  location: class Main
Main.java:3: 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() {
    double X;
    cin >> X;
    double A, C;
    int B = -1;
    C = pow(X, 0.2);
    if (C < 1.1){
        A = 0;
        if (C = 0)  B = 0;   
    };
    else A = C;
    cout << (int)A << " " << B << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:14:5: error: 'else' without a previous 'if'
   14 |     else A = C;
      |     ^~~~
Language: C++

#include<bits/stdc++.h>
//#include <ext/pb_ds/assoc_container.hpp>
//#include <ext/pb_ds/tree_policy.hpp>
//using namespace __gnu_pbds;
//#define eps 1e-8
//#define eq(x,y) (fabs((x)-(y)) < eps)
using namespace std;
typedef long long ll;
typedef long double ld;
typedef pair<int,int>pii;
const ll mod = 998244353;
long double PI = acosl(-1);
const ll infl = 3e18+10;
const int inf = 1e9+10;
const int nmax = 1e5+5;
const int MAXLG = log2(nmax)+1;
//mt19937 rng(chrono::system_clock::now().time_since_epoch().count());
//typedef tree< int, null_type, less<int>, rb_tree_tag, tree_order_statistics_node_update> ost;


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

    ll x;
    cin>>x;
    for(ll b = -20000; b<=20000; b++){
        ll num = x + b*b*b*b*b;
        ll a = nearbyint( powl(num, 1.0/5.0) );
        if(z*z*z*z*z == num){
            cout<<z<<" "<<b<<endl;
            exit(0);
        }
    }
    assert(false);
}
/*
3
1 1 0
AB
AC
BC
*/


Compiler output:
a.cc: In function 'int main()':
a.cc:29:12: error: 'z' was not declared in this scope
   29 |         if(z*z*z*z*z == num){
      |            ^
Language: C++

#include <iostream> // cout, endl, cin
#include <string> // string, to_string, stoi
#include <vector> // vector
#include <algorithm> // min, max, swap, sort, reverse, lower_bound, upper_bound
#include <utility> // pair, make_pair
#include <tuple> // tuple, make_tuple
#include <cstdint> // int64_t, int*_t
#include <cstdio> // printf
#include <map> // map
#include <queue> // queue, priority_queue
#include <set> // set
#include <stack> // stack
#include <deque> // deque
#include <unordered_map> // unordered_map
#include <unordered_set> // unordered_set
#include <bitset> // bitset
#include <cctype> // isupper, islower, isdigit, toupper, tolower
#include<cmath>
#include<limits>
#define ll long long
#define ALL(x) (x).begin(),(x).end()
#define rep(i, n) for(int i = 0; i < (int)(n); i++)
#define int_INF 2147483647
#define pint_INF 2000000000
#define ll_INF 	9223372036854775807
#define MOD 1000000007
#define vi vector<int>
#define vvi vector<vector<int>>
#define vvc vector<vector<char>>
#define vll vector<long long>
#define pii pair<int,int>
#define vpii vector<pair<int,int>>
#define sysp system("PAUSE")
using namespace std;
#define int ll

int opow(int x, int n) {
	int res = 1;
	for (int i = 0; i < n; i++) {
		res *= x;
	}

	return res;
}

int func(int B, const int u, int v) {
	int f = 5 * opow(B, 4) + 10 * opow(B, 3) * u + 10 * opow(B, 2) * opow(u, 2) + 5 * B * opow(u, 3) + opow(u, 4) - v;

	return f;
}
signed main() {
	int x; cin >> x;

	int Amax = 1;
	for (; 5 * opow(Amax, 4) + 10 * opow(Amax, 3)  <= x; Amax++);
	vi ans(2,-1);

	for (int u = 1; u * u <= x; u++) {
		if (x % u == 0) {
			int v = x / u;
			//二分探索
			int blow = -u-1;
			int bhigh = Amax + 1;

			while (bhigh - blow > 1) {
				int bmid = (bhigh + blow) / 2;

				int f = func(bmid, u, v);
				if (f == 0) {
					ans[0] = bmid + u;
					ans[1] = bmid;
					goto endloop;
				}
				else if (f < 0) {
					blow = bmid;
				}
				else if (f > 0) {
					bhigh = bmid;
				}
			}

			int f = func(bhigh, u, v);
			if (f == 0) {
				ans[0] = bhigh + u;
				ans[1] = bhigh;
				goto endloop;
			}

			int f = func(blow, u, v);
			if (f == 0) {
				ans[0] = blow + u;
				ans[1] = blow;
				goto endloop;
			}
		}
	}
endloop:
	cout << ans[0] << " " <<  ans[1] << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:89:29: error: redeclaration of 'long long int f'
   89 |                         int f = func(blow, u, v);
      |                             ^
a.cc:82:29: note: 'long long int f' previously declared here
   82 |                         int f = func(bhigh, u, v);
      |                             ^
Language: C++

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

int main() {
    double X;
    cin >> X;
    double A, C;
    int B = -1;
    C = pow(X, 0.2);
    if (C < 1.1){
        A = 0
        if (C = 0)  B = 0;   
    };
    else A = C;
    cout << (int)A << " " << B << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:14: error: expected ';' before 'if'
   11 |         A = 0
      |              ^
      |              ;
   12 |         if (C = 0)  B = 0;
      |         ~~    
a.cc:14:5: error: 'else' without a previous 'if'
   14 |     else A = C;
      |     ^~~~
Language: C++

#include <bits/stdc++.h>
#include <string> 
using namespace std;
#define ll long long int
#define ld long double
#define pb push_back
#define mp make_pair
#define fi first
#define se second
#define mod 1000000007
#define mid 2019
#define fastio ios_base::sync_with_stdio(false);cin.tie(NULL);cout.tie(NULL)
#define fr(i,a,n) for(i=a;i<n;i++)
#define frn(i,a,n) for(i=a;i<=n;i++)
#define vll vector<ll>
#define pll pair<ll,ll>
#define vp vector<pll>
#define ub upper_bound
#define lb lower_bound
#define map map<ll,ll>
#define mem(x,y) memset(x,y,sizeof(x))
#define all(v) v.begin(),v.end()
#define bs binary_search
#define qll queue<ll>
#define sll set<ll>
 
 
int main()
{
    fastio;
   
        ll count=0,abs=0,sum=0,index=-1,c=0;
        ll x;
        cin>>x;
        for(i=-50;i<=50;i++)
        {
            for(j=-50;j<=50;j++)
            {
                if(pow(i,5)-pow(j,5)==x){
                cout<<i<<" "<<j<<endl;
                break;
                }
            }
        }
       
    
  

}

Compiler output:
a.cc: In function 'int main()':
a.cc:35:13: error: 'i' was not declared in this scope
   35 |         for(i=-50;i<=50;i++)
      |             ^
a.cc:37:17: error: 'j' was not declared in this scope
   37 |             for(j=-50;j<=50;j++)
      |                 ^
Language: C++

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

int main() {
  long long X, a, b;
  int A = 0, B = 0, f = 0;
  cin >> X;
  for (;;B++) {
    if (f == 1) {
      break;
    }
    b = B * B * B * B * B;
    for (;A < 10000;A++) {
      a = A * A * A * A * A;
      if  (a + b == X) {
        f = 1;
        B = -B;
        break;
      } else if (a - b == X) {
        f = 1;
        break;
      }
    cout << A << B << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:24:2: error: expected '}' at end of input
   24 | }
      |  ^
a.cc:8:15: note: to match this '{'
    8 |   for (;;B++) {
      |               ^
a.cc:24:2: error: expected '}' at end of input
   24 | }
      |  ^
a.cc:4:12: note: to match this '{'
    4 | int main() {
      |            ^
Language: C++

#include<iostream>
using namespace std;
int main(){
  int x;
  cin>>x;
  unsigned long long a,b;
  for(int i=1;i<=x;i++){
    int k;
    k=x%i;
    for(a=-x,b=a+k;b<x;a=a+k,b=b+k){
      if(a*a*a*a*a-b*b*b*b*b==x){
        break;
      }
      if(a*a*a*a*a-b*b*b*b*b==-x){
        int tmp;
        tmp=a;
        a=b;
        b=tmp;
        break;
      }
      
    }
    if(a*a*a*a*a-b*b*b*b*b==x){
      break;
    }
  }
  cout<<a<<" "<<b<<endl;
  return 0;
}
    
      
#include<iostream>
using namespace std;
int main(){
  int x;
  cin>>x;
  unsigned long long a,b;
  for(int i=1;i<=n;i++){
    int k;
    k=x%i;
    for(a=-x,b=a+k;b<x;a=a+k,b=b+k){
      if(a*a*a*a*a-b*b*b*b*b==x){
        break;
      }
      if(a*a*a*a*a-b*b*b*b*b==-x){
        int tmp;
        tmp=a;
        a=b;
        b=tmp;
        break;
      }
      
    }
    if(a*a*a*a*a-b*b*b*b*b==x){
      break;
    }
  }
  cout<<a<<" "<<b<<endl;
  return 0;
}
    
      
提出情報

Compiler output:
a.cc:34:5: error: redefinition of 'int main()'
   34 | int main(){
      |     ^~~~
a.cc:3:5: note: 'int main()' previously defined here
    3 | int main(){
      |     ^~~~
a.cc: In function 'int main()':
a.cc:38:18: error: 'n' was not declared in this scope
   38 |   for(int i=1;i<=n;i++){
      |                  ^
a.cc: At global scope:
a.cc:63:1: error: '\U000063d0\U000051fa\U000060c5\U00005831' does not name a type
   63 | 提出情報
      | ^~~~~~~~
Language: C++

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

int main() {

  cin >> X;
  vector<long long> V(241);
  for (int i = 0; i <241; i++) {
    int V.at(i)=(i-120)*(i-120)*(i-120)*(i-120)*(i-120);
  }
  for(int i =121;i<241;i++){
    for(int j=0;j<241;j++){
      if(V.at(i)-V.at(j)==X){
        cout<<i-121<<j-121<<endl;
        goto LAST
      }
    }
  }
  LAST;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:10: error: 'X' was not declared in this scope
    6 |   cin >> X;
      |          ^
a.cc:9:10: error: expected initializer before '.' token
    9 |     int V.at(i)=(i-120)*(i-120)*(i-120)*(i-120)*(i-120);
      |          ^
a.cc:15:18: error: expected ';' before '}' token
   15 |         goto LAST
      |                  ^
      |                  ;
   16 |       }
      |       ~           
a.cc:19:3: error: 'LAST' was not declared in this scope
   19 |   LAST;
      |   ^~~~
a.cc:15:14: error: label 'LAST' used but not defined
   15 |         goto LAST
      |              ^~~~
Language: C++

#include<iostream>
using namespace std;
int main(){
  int x;
  cin>>x;
  unsigned long long a,b;
  for(int i=1;i<=n;i++){
    int k;
    k=x%i;
    for(a=-x,b=a+k;b<x;a=a+k,b=b+k){
      if(a*a*a*a*a-b*b*b*b*b==x){
        break;
      }
      if(a*a*a*a*a-b*b*b*b*b==-x){
        int tmp;
        tmp=a;
        a=b;
        b=tmp;
        break;
      }
      
    }
    if(a*a*a*a*a-b*b*b*b*b==x){
      break;
    }
  }
  cout<<a<<" "<<b<<endl;
  return 0;
}
    
      
#include<iostream>
using namespace std;
int main(){
  int x;
  cin>>x;
  unsigned long long a,b;
  for(int i=1;i<=x;i++){
    int k;
    k=x%i;
    for(a=-x,b=a+k;b<x;a=a+k,b=b+k){
      if(a*a*a*a*a-b*b*b*b*b==x){
        break;
      }
      if(a*a*a*a*a-b*b*b*b*b==-x){
        int tmp;
        tmp=a;
        a=b;
        b=tmp;
        break;
      }
      
    }
    if(a*a*a*a*a-b*b*b*b*b==x){
      break;
    }
  }
  cout<<a<<" "<<b<<endl;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:18: error: 'n' was not declared in this scope
    7 |   for(int i=1;i<=n;i++){
      |                  ^
a.cc: At global scope:
a.cc:34:5: error: redefinition of 'int main()'
   34 | int main(){
      |     ^~~~
a.cc:3:5: note: 'int main()' previously defined here
    3 | int main(){
      |     ^~~~
Language: C++

X = int(input())
A = 1
while True:
    if X > A ** 5:
        S = X - A ** 5
        B = S ** (1 / 5) * (-1)
    else:
        S = A ** 5 - X
        B = S ** (1 / 5)
    if A ** 5 - B ** 5 == X:
        break
    A += 1
print(A, int(B))


Compiler output:
a.cc:1:1: error: 'X' does not name a type
    1 | X = int(input())
      | ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
int main(){
  long long n;
  cin >> n;
  long long mm=1;
  while(mm*mm<=n){
    mm++;
  }
  long long u=1;
  vector<long long> k(1,-1);
  while(u<=mm){
    if(n%u==0){
      k.push_back(u);
      k.push_back(n/u);
    }
    u++;
  }
  long long fina=1,finb=1;
  for(long long o: k){
    if(o<0)continue;
    if(o%2==1)continue;
    long long p=n/o;
    if(p<o)continue
    p-=o*o*o*o;
    if(p%5!=0)continue;
    p/=5;
    long long z=o*o*o*o+4*p;
    if(z<0)continue;
    long long xy1,xy2;
    if(z==0&&o*o%2==0){
      xy1=-(o*o/2);
      long long v=o*o+4*xy1;
      long long x=0;
      while(x*x<v){
        x++;
      }
      if(x*x==v){
        if((x+o)%2==0){
          fina=(x+o)/2;
          finb=fina-o;
        }
      }
    }
    else{
      long long s=1;
      while(s*s<z){
        s++;
      }
      if(s*s!=z)continue;
      if((-o*o+s)%2==0){
        xy1=(-o*o+s)/2;
        xy2=(-o*o+s)/2;
      }
      else continue;
      long long v=o*o+4*xy1;
      long long x=1;
      while(x*x<v){
        x++;
      }
      if(x*x==v){
        if((x+o)%2==0){
          fina=(x+o)/2;
          finb=fina-o;
        }
      }
      long long r=o*o+4*xy2;
      long long y=1;
      while(y*y<r){
        r++;
      }
      if(y*y==r){
        if((y+o)%2==0){
          fina=(y+o)/2;
          finb=fina-o;
        }
      }
      
    }
  }
  cout << fina << " " << finb << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:25:20: error: expected ';' before 'p'
   25 |     if(p<o)continue
      |                    ^
      |                    ;
   26 |     p-=o*o*o*o;
      |     ~
Language: C++

#include<bits/stdc++.h>
using namespace std;
using ll=long long;
ll kai(ll x){
  return x*x*x*x*x;
}
int main(){
  ll X;
  cin>>X;
  ll ans_x;
  for(ll i=1;i<=X;i++){
    if(kai(i)>=X){
      ans_x=i-1;
      X=kai(i-1)-X;
      break;
    }
  }
  //cout<<X<<endl;
  if(X==0){
    cout<<ans_x<<" "<<0<<endl;
    return 0;
  }else if(X<0){
    ll i=-1;
    while(true){
      if(kai(i)==X){
        cout<<ans_x<<i<<" "<<<<endl;
        return 0;
      }
      i--;
    }
  }else{
    ll j=1;
    while(true){
      if(kai(j)==X){
        cout<<ans_x<<" "<<j<<endl;
        return 0;
      }
      j++;
    }
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:26:30: error: expected primary-expression before '<<' token
   26 |         cout<<ans_x<<i<<" "<<<<endl;
      |                              ^~
Language: C++

#include <iostream>
#include <cstdio>
#include <algorithm>
#include <vector>
#include <stack>
#include <queue>
#include <list>
#include <map>
#include <set>
#include <string>
#include <cstring>
#include <sstream>
#include <cmath>
#include <functional>
#include <fstream>
#include <cstdlib>
typedef long long ll;
const ll MOD = 1e9+7;


#define REP(i, N) for (ll i = 0; i < (N); i++)
#define REPP(i, a, b) for (ll i = (a); i < (b); i++)
#define ALL(v) (v).begin(), (v).end()
#define RALL(v) (v).rbegin(), (v).rend()
#define VSORT(c) sort((c).begin(),(c).end())
#define SZ(x) ((ll)(x).size())
//vvintを作る　マクロで　 #define vvint(N,M) vector<vector<ll>>

using namespace std;
// 変数初期化
vector<ll> bsv; // binary_search用のvector
ll a,b,c,n,m;
typedef pair<ll, ll> Pll;
vector<Pll> facts; // 素因数分解の結果格納用(基数:乗数)
vector<vector<ll> > bit_search_v; //nit全探索の結果格納用

// index が条件を満たすかどうか
bool isOK(ll index, ll key) {
    if (bsv[index] >= key) return true;
    else return false;
}

// 汎用的な二分探索のテンプレ
ll binary_search(int key) {
    int ng = -1;
    int ok = (ll)bsv.size();

    /* ok と ng のどちらが大きいかわからないことを考慮 */
    while (abs(ok - ng) > 1) {
        int mid = (ok + ng) / 2;

        if (isOK(mid, key)) ok = mid;
        else ng = mid;
    }
    // OK(key以上となる)のindex番号を返す
    return ok;
}

// 最大公約数
int gcd(int a, int b) {
    if (b==0) return a;
    else return gcd(b, a%b);
}

// 最小公倍数
int lcm(int a, int b) {
    return a * b / gcd(a, b);
}

//　素因数分解
void prime_fact(ll target){
    ll base=2, exp=0;
    while (base*base<=target) {
        while (target%base==0) {
            target /= base; exp++;
        }
        if (exp>0) {
            facts.push_back(make_pair(base, exp));
        }
        base++; exp=0;
    }
    if (target>1) facts.push_back(make_pair(target,1));
}
// prime_factの結果の確認用
void print_facts(){
    for (int i=0; i<facts.size(); i++) {
        cout << facts[i].first << " " << facts[i].second << endl;
    }
}

// bit全探索
void bit_search(ll target){
    for (ll i=0; i<(1<<target); ++i) {
        if (i==0) continue;
        vector<ll> v;
        for (ll j=0; j<target; ++j) {
            if (i&(1<<j)) v.push_back(j);
            if (i&(1<<j)) cout << i << "  :  " << j << endl;
        }
        bit_search_v.push_back(v);
    }
}
// bit全探索の結果確認用
void print_bit_search(){
    for (ll i=0; i<bit_search_v.size(); ++i) {
        for (ll j=0; j<bit_search_v[i].size(); ++j) {
            cout << bit_search_v[i][j] << " ";
        }
        cout << endl;
    }
}



int main(){
    
    cin.tie(0);
    ios::sync_with_stdio(false);
    ll x;
    cin >> x;
    c = x;
    prime_fact(x);
    for(ll l = 0; l < facts.size();l++){
        c = facts.size() > 0? facts[i].first : 1;
        for(ll i = 0; i < c;i++){
            a = i;
            b = a-c;
            if(pow(a,5)-pow(b,5) == x){
                cout << a << " " << b << endl;
                return 0;
            }
        }
    }
    

    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:124:37: error: 'i' was not declared in this scope
  124 |         c = facts.size() > 0? facts[i].first : 1;
      |                                     ^
Language: C++

#include<iostream>
using namespace std;

int main(){
  int x;
  cin >> x;
  int a = 0, b = 0;
  while(pow(a, 5) - pow(b, 5) != x){
    for(a;;a++)
      for(b;;b++)
  }
  cout << a << " " << b;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:9: error: 'pow' was not declared in this scope
    8 |   while(pow(a, 5) - pow(b, 5) != x){
      |         ^~~
a.cc:11:3: error: expected primary-expression before '}' token
   11 |   }
      |   ^
Language: C++

#include<iostream>
using namespace std;
int main(){
  int x;
  cin>>x;
  unsigned long long a,b;
  for(int i=1;i<=n;i++){
    int k;
    k=x%i;
    for(a=-x,b=a+k;b<x;a=a+k,b=b+k){
      if(a*a*a*a*a-b*b*b*b*b==x){
        break;
      }
      if(a*a*a*a*a-b*b*b*b*b==-x){
        int tmp;
        tmp=a;
        a=b;
        b=tmp;
        break;
      }
      
    }
    if(a*a*a*a*a-b*b*b*b*b==x){
      break;
    }
  }
  cout<<a<<" "<<b<<endl;
  return 0;
}
    
      

Compiler output:
a.cc: In function 'int main()':
a.cc:7:18: error: 'n' was not declared in this scope
    7 |   for(int i=1;i<=n;i++){
      |                  ^
Language: C++

#include <iostream>
#include <algorithm>
#include <cmath>
#include <vector>

using namespace std;

int main() {

	int X;
	cin >> X;

	int Y = pow(X, 0.5);

	for (int i = -Y; i <= Y; ++i)
	{
		for (int j = -Y; j <= Y; ++j)
		{
			if (long int(powl(i, 5) - powl(j, 5)) == X) {
				cout << i << " " << j << endl;
				return 0;
			}
		}
	}

	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:19:29: error: expected primary-expression before 'long'
   19 |                         if (long int(powl(i, 5) - powl(j, 5)) == X) {
      |                             ^~~~
a.cc:19:29: error: expected ')' before 'long'
   19 |                         if (long int(powl(i, 5) - powl(j, 5)) == X) {
      |                            ~^~~~
      |                             )
Language: C++

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

int64_t f(int64_t x){
    int64_t ans = 1;
    for(int i = 0;i < 5;i++){
        ans *= x;
    }
    return ans;
}

vector< int64_t > divisor(int64_t n) {
  vector< int64_t > ret;
  for(int64_t i = 1; i * i <= n; i++) {
    if(n % i == 0) {
      ret.push_back(i);
      if(i * i != n) ret.push_back(n / i);
    }
  }
  sort(begin(ret), end(ret));
  return (ret);
}

int main(){
    int64_t x;
    cin >> x;
    vector< int64_t > y = divisor(x);

    int64_t z;
    int64_t r = 0,l,ans;

    for(int i = 0;i < y.size();i++){
        z = y.at(i);
        r = 0;
        l = r + z;
        ans = f(l) - f(z);
        while(ans <= x){
            ans = f(l) - f(z);
            cout << "r : " << r << "l : " << l << endl;
            //cout << f(l) << endl;
            //cout << z <<  " " << ans << endl;
            if(ans == x){
                break;
            }
            l++;
            r++;
        }
        if(ans == x){
                break;
            }
    }

    cout << l << " " << r << endl;

    
}

Compiler output:
a.cc: In function 'std::vector<long int> divisor(int64_t)':
a.cc:21:3: error: 'sort' was not declared in this scope; did you mean 'short'?
   21 |   sort(begin(ret), end(ret));
      |   ^~~~
      |   short
Language: C++


#include <iostream>


using namespace std;
using ll = long long;

using ull = unsigned long long;

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

	for (ll i = 0; i < 100; i++)
	{
		ll n = powl(i, 5);
		for (ll j = 0; j < 100; j++)
		{
			ll n2 = powl(j, 5);

			if (n - n2 == x)
			{
				cout << i << " " << j;
				return 0;
			}
			else if(n +n2 == x)
			{

				cout << i << " " << j*-1;
				return 0;
			}

		}

	}
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:17:24: error: 'powl' was not declared in this scope
   17 |                 ll n = powl(i, 5);
      |                        ^~~~
Language: C++

#include<iostream>
#include<math.h>
using namespace std;

int main(){
    long long int a,b,x;
    cin >> x;

    for(int i=x/10;i<x/10;i++){
        a = pow(x-pow(i,5.0),1.0/5.0);
        if(floor(x) == x){
            cout << a << " " << i << endl;
            break;
    }
    return 0;

}

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