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

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

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

    for(long long a=-200; a<=200; a++){
        for(long long b=-200; b<=200; b++){
            if(((a*a*a*a*a) - (b*b*b*b*b))== x){
                cout << a << " " << b << endl;
                return 0;　//インデントはこれ、これ追加したらまさかのOKでした
            }
        }
    }
}


Compiler output:
a.cc:12:26: error: extended character 　 is not valid in an identifier
   12 |                 return 0;　//インデントはこれ、これ追加したらまさかのOKでした
      |                          ^
a.cc: In function 'int main()':
a.cc:12:26: error: '\U00003000' was not declared in this scope
   12 |                 return 0;　//インデントはこれ、これ追加したらまさかのOKでした
      |                          ^~
Language: C++

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

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

    for(long long a=-200; a<=200; a++){
        for(long long b=-200; b<=200; b++){
            if(((a*a*a*a*a) - (b*b*b*b*b))== x){
                cout << a << " " << b << endl;
                return 0;　#これ追加したらまさかのOKでした
            }
        }
    }
}


Compiler output:
a.cc:12:26: error: extended character 　 is not valid in an identifier
   12 |                 return 0;　#これ追加したらまさかのOKでした
      |                          ^
a.cc:12:28: error: stray '#' in program
   12 |                 return 0;　#これ追加したらまさかのOKでした
      |                            ^
a.cc: In function 'int main()':
a.cc:12:26: error: '\U00003000' was not declared in this scope
   12 |                 return 0;　#これ追加したらまさかのOKでした
      |                          ^~
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main() {
  long long X;
  cin >> X;
  for (long long int i = -120; i < 120; i++){
    for (long long int j = -120; j < 120; j++){
      if (j*j*j*j*j - i*i*i*i*i == X){
        A = j;
        B = i;
      }
    }
  }
  cout << A << " " << B;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:10:9: error: 'A' was not declared in this scope
   10 |         A = j;
      |         ^
a.cc:11:9: error: 'B' was not declared in this scope
   11 |         B = i;
      |         ^
a.cc:15:11: error: 'A' was not declared in this scope
   15 |   cout << A << " " << B;
      |           ^
a.cc:15:23: error: 'B' was not declared in this scope
   15 |   cout << A << " " << B;
      |                       ^
Language: C++

#include<bits/stdc++.h>
#include<cmath>
#define endl '\n'
using namespace std;
typedef long long ll;
typedef double db;
typedef pair<int,int> pii;
typedef vector<int> vi;
#define check system("pause")
#define all(x) (x).begin(),(x).end()
#define de(a) cout<<#a<<" = "<<a<<endl
#define dd(a) cout<<#a<<" = "<<a<<" "
#define mp make_pair
#define pb push_back
#define fi first
#define se second
#define INF 0x3f3f3f3f
const ll mod = 1e9+7;
const int N = 1e6+20;
#define dep(i,a,b) for(int i=(a);i>=(b);i--)
#define rep(i,a,b) for(int i=(a);i<=(b);i++)
#define mes(p,b) memset(p,b,sizeof(p))
#define sz(x) int(x.size())
ll x,a,b;
ll f(ll x){
	return x*x*x*x*x;
}
map<ll,bool> m;map<ll,int> s;
int main()
{
  	ios::sync_with_stdio(false);cin.tie(0);cout.tie(0);
  	cin>>x;
  	//rep(x,1,1e9){
  	rep(i,-5000,5000) m[f(i)]++,s[f(i)]=i;
  	rep(i,-5000,5000){ 
  		if(m[f(i)-x]){
  			cout<<i<<' '<<s[f(i)-x];return 0; 
		  }
	} 
		
//	}
  	return 0;
}



Compiler output:
a.cc: In function 'int main()':
a.cc:34:34: error: use of an operand of type 'bool' in 'operator++' is forbidden in C++17
   34 |         rep(i,-5000,5000) m[f(i)]++,s[f(i)]=i;
      |                                  ^~
Language: C++

#include <iostream>
#include <algorithm>
#include <string>
#include <list>
#include<vector>
#include <sstream>
#include <stdio.h>
#include <utility>
#include <unordered_set>
#include <valarray>
#include <iomanip>
using namespace std;


int main(void)
{
	int A, B = 0;
	int TargetData=0;

	cin >> TargetData;
 	bool BreakFlag=false
  	for(int i=-1000;i<=2000;i++)
    {
      for(int z=-2000;z<=2000;z++)
      {
        if((pow(i,5)-pow(z,5))==TargetData)
        {
          A=i;
          B=z;
          cout << A<<" "<<B << endl;
          
          return 0;
        }
      }
    }

	cout << A<<" "<<B << endl;

	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:22:9: error: expected ',' or ';' before 'for'
   22 |         for(int i=-1000;i<=2000;i++)
      |         ^~~
a.cc:22:25: error: 'i' was not declared in this scope
   22 |         for(int i=-1000;i<=2000;i++)
      |                         ^
Language: C++

x=int(input())
value=0
index=0
hashmap=dict()
while value<int(1e18)+1:
    value=pow(index,5)
    hashmap[value]=index
    index+=1
#print(hashmap)    

for i in range(1,64):
    b1=x+int(pow(i,5))
    b2=x+int(pow(-i,5))
    if hashmap.get(b1)!=None:
        print(hashmap[b1],i)
        break
    if hashmap.get(abs(b2))!=None:
        print(hashmap[abs(b2)],-i)
        break     

Compiler output:
a.cc:9:2: error: invalid preprocessing directive #print
    9 | #print(hashmap)
      |  ^~~~~
a.cc:1:1: error: 'x' does not name a type
    1 | x=int(input())
      | ^
Language: C

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

int main(void){
int x;
scanf("%d",&x);
if(x==1){printf("1 0");return 0;}
int a,b;

for(int i=-100;i<=100;i++){
    for(int j=-100;j<=100;j++){
            if((int)pow(i,5)-(int)pow(j,5)==x){printf("%d %d\n",i,j); return 0;}
        }
    }
}


}


Compiler output:
main.c:20:1: error: expected identifier or '(' before '}' token
   20 | }
      | ^
Language: C++

int main() {
 
  ll X;
  cin >> X;
 
  for(int i=-1000; i<1000; ++i) {
    for(int j=-1000; j<1000; ++j) {
      ll A = i*i*i*i*i;
      ll B = j*j*j*j*j;
      if(A-B==X) {
        cout << i << " " << j << endl;
        return  0;
      }
    }
  }
 
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:3:3: error: 'll' was not declared in this scope
    3 |   ll X;
      |   ^~
a.cc:4:3: error: 'cin' was not declared in this scope
    4 |   cin >> X;
      |   ^~~
a.cc:4:10: error: 'X' was not declared in this scope
    4 |   cin >> X;
      |          ^
a.cc:8:9: error: expected ';' before 'A'
    8 |       ll A = i*i*i*i*i;
      |         ^~
      |         ;
a.cc:9:9: error: expected ';' before 'B'
    9 |       ll B = j*j*j*j*j;
      |         ^~
      |         ;
a.cc:10:10: error: 'A' was not declared in this scope
   10 |       if(A-B==X) {
      |          ^
a.cc:10:12: error: 'B' was not declared in this scope
   10 |       if(A-B==X) {
      |            ^
a.cc:11:9: error: 'cout' was not declared in this scope
   11 |         cout << i << " " << j << endl;
      |         ^~~~
a.cc:11:34: error: 'endl' was not declared in this scope
   11 |         cout << i << " " << j << endl;
      |                                  ^~~~
Language: Java

package ABC166;

import java.util.Scanner;

public class D {
    static Scanner sc = new Scanner(System.in);
    static int x = sc.nextInt();
    //65まで持っていればいい
    //65の5乗が10の9乗を超えとこ
    static int num[] = new int[64];

    public static void main(String[] args) {
        int i = -1;
        while (++i < num.length){
            if (i == 0) {
                num[0] = 0;
                continue;
            }
            num[i] = (int)Math.pow(i, 5);
        }
        for (int j = 0; j < num.length; j++){
            for (int k = 0; k < num.length; k++){
                if (num[j] - num[k] == x){
                    System.out.println(j + " " + k);
                    return;
                } else if ( - num[j] - num[k] == x){
                    System.out.println(-j + " " + k);
                    return;
                } else if ( num[j] + num[k] == x){
                    System.out.println(j + " " +  -k);
                    return;
                }
            }
        }
    }
}


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

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

int main() {
  long long X, a, b;
  int A = 1, B, f = 0;
  for (;A < 120;A++) {
    if (f == 1) {
      break;
    }
    a = pow(A, 5);
    for (int B = -118;B < 120;B++) {
      b = pow(B, 5);
      if (a - b == X) {
        f = 1
        break;
      }
    }
  }
  cout << A << B << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:15:14: error: expected ';' before 'break'
   15 |         f = 1
      |              ^
      |              ;
   16 |         break;
      |         ~~~~~
Language: C++

// ABC166D - I hate Factorization

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

#define N 120

int main() {
	unsigned long long int X;
	cin >> X;
	unsigned long long int A[200];

	for (long long long int i = 0; i <= N; i++) {
		A[i] = i * i * i * i * i;
	}

	for (int i = 0; i <= N; i++) {
		for (int j = 0; j <= N; j++) {
			if (A[i] - A[j] == X) {
				cout << i << " " << j << endl;
				return 0;
			}
			if (-1 * A[i] - A[j] == X) {
				cout << -1 * i << " " << j << endl;
				return 0;
			}
			if (A[i] + A[j] == X) {
				cout << i << " " << -1 * j << endl;
				return 0;
			}
			if (-1 * A[i] + A[j] == X) {
				cout << -1 * i << " " << -1 * j << endl;
				return 0;
			}
		}
	}

	return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:13:24: error: 'long long long' is too long for GCC
   13 |         for (long long long int i = 0; i <= N; i++) {
      |                        ^~~~
Language: C++

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

typedef long long ll;
static const ll MAX = 1e12;


int main(){
    ll x;
    cin>>x;
    
    for(ll a=-200; a<=200; a++){
        for(ll b =-200; b<=200; b++){
            if(((a*a*a*a*a) -(b*b*b*b*b)) == x)){
                cout<<a<<" "<<b<<endl;
                break;
        }
    }
    
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:14:48: error: expected primary-expression before ')' token
   14 |             if(((a*a*a*a*a) -(b*b*b*b*b)) == x)){
      |                                                ^
a.cc:21:2: error: expected '}' at end of input
   21 | }
      |  ^
a.cc:8:11: note: to match this '{'
    8 | int main(){
      |           ^
Language: C++

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

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

    for(long long a=-118; a<=119; a++){
        for(long long b=-119; b<=118; b++){
            if(a*a*a*a*a - b*b*b*b*b == x){
                cout << a << << " " << b << endl;
            }
        }
    }
}

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

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

//繰り返し二乗法
ll ex(ll x,ll n){
    if(n==0)return 1;
    else if(n%2==1)return ex(x,n-1)*x%num;
    else return ex(x*x%num,n/2)%num;
};

int main(){
    int x;
    cin >> x;
    pair<ll,ll> ans;
    for(int i = 0; i < 5000; i++){
        for(int j = 0; j < 5000; j++){
            ll a = ex(i,5), b = ex(j,5);
            if(a+b == x) ans = {i,-j};
            else if(a-b == x) ans = {i,j};
        }
    }    
    cout << ans .first << " " << ans.second << endl;
}

Compiler output:
a.cc: In function 'll ex(ll, ll)':
a.cc:9:39: error: 'num' was not declared in this scope; did you mean 'enum'?
    9 |     else if(n%2==1)return ex(x,n-1)*x%num;
      |                                       ^~~
      |                                       enum
a.cc:10:24: error: 'num' was not declared in this scope; did you mean 'enum'?
   10 |     else return ex(x*x%num,n/2)%num;
      |                        ^~~
      |                        enum
Language: C++

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

int main(){
  int64_t X; cin >> X;
  
  int64_t Max = 0, Max2 = 0;/*
  for(int i = 0; i <= X+2; i++){
    if(i*i*i*i*i > X*15 && Max == 0)
      Max = i;
    if(i*i*i*i > X*15){
      Max2 = i;
      break;
    }*/
  }Max = 71;Max2 = 71;
  //cout << Max << ' ' << Max2;
  for(int B = Max2; B >= 1; B--){ //A+B
    int64_t rem = X - B*B*B*B*B;
    if(rem < 0)
      continue;
    for(int A = B; A >= 0; A--){
      if(A*A*A*A*A < rem){
        break;
      }
      if(A*A*A*A*A == rem){
        cout << B << ' ' << (-1)*A << endl;
        return 0;
      }
    }
  }
  //cout << Max << endl;
  for(int B = Max; B >= 1; B--){ //A-B
    int64_t rem = B*B*B*B*B - X;
    for(int A = B-1; A >= 0; A--){
      //cout << B << ' ' << A << endl;
      if(A*A*A*A*A < rem){
        break;
      }
      //if(B == 70)
        //cout << B << ' ' << A << endl;
      if(A*A*A*A*A == rem){
        cout << B << ' ' << A << endl;
      }
    }
  }
  //cout << "error" << endl;
}


Compiler output:
a.cc:15:4: error: 'Max' does not name a type
   15 |   }Max = 71;Max2 = 71;
      |    ^~~
a.cc:15:13: error: 'Max2' does not name a type
   15 |   }Max = 71;Max2 = 71;
      |             ^~~~
a.cc:17:3: error: expected unqualified-id before 'for'
   17 |   for(int B = Max2; B >= 1; B--){ //A+B
      |   ^~~
a.cc:17:21: error: 'B' does not name a type
   17 |   for(int B = Max2; B >= 1; B--){ //A+B
      |                     ^
a.cc:17:29: error: 'B' does not name a type
   17 |   for(int B = Max2; B >= 1; B--){ //A+B
      |                             ^
a.cc:32:3: error: expected unqualified-id before 'for'
   32 |   for(int B = Max; B >= 1; B--){ //A-B
      |   ^~~
a.cc:32:20: error: 'B' does not name a type
   32 |   for(int B = Max; B >= 1; B--){ //A-B
      |                    ^
a.cc:32:28: error: 'B' does not name a type
   32 |   for(int B = Max; B >= 1; B--){ //A-B
      |                            ^
a.cc:47:1: error: expected declaration before '}' token
   47 | }
      | ^
Language: C++

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

int main(){
  int64_t X; cin >> X;
  /*
  int64_t Max = 0, Max2 = 0;
  for(int i = 0; i <= X+2; i++){
    if(i*i*i*i*i > X*15 && Max == 0)
      Max = i;
    if(i*i*i*i > X*15){
      Max2 = i;
      break;
    }*/
  }Max = 71;Max2 = 71;
  //cout << Max << ' ' << Max2;
  for(int B = Max2; B >= 1; B--){ //A+B
    int64_t rem = X - B*B*B*B*B;
    if(rem < 0)
      continue;
    for(int A = B; A >= 0; A--){
      if(A*A*A*A*A < rem){
        break;
      }
      if(A*A*A*A*A == rem){
        cout << B << ' ' << (-1)*A << endl;
        return 0;
      }
    }
  }
  //cout << Max << endl;
  for(int B = Max; B >= 1; B--){ //A-B
    int64_t rem = B*B*B*B*B - X;
    for(int A = B-1; A >= 0; A--){
      //cout << B << ' ' << A << endl;
      if(A*A*A*A*A < rem){
        break;
      }
      //if(B == 70)
        //cout << B << ' ' << A << endl;
      if(A*A*A*A*A == rem){
        cout << B << ' ' << A << endl;
      }
    }
  }
  //cout << "error" << endl;
}


Compiler output:
a.cc:15:4: error: 'Max' does not name a type
   15 |   }Max = 71;Max2 = 71;
      |    ^~~
a.cc:15:13: error: 'Max2' does not name a type
   15 |   }Max = 71;Max2 = 71;
      |             ^~~~
a.cc:17:3: error: expected unqualified-id before 'for'
   17 |   for(int B = Max2; B >= 1; B--){ //A+B
      |   ^~~
a.cc:17:21: error: 'B' does not name a type
   17 |   for(int B = Max2; B >= 1; B--){ //A+B
      |                     ^
a.cc:17:29: error: 'B' does not name a type
   17 |   for(int B = Max2; B >= 1; B--){ //A+B
      |                             ^
a.cc:32:3: error: expected unqualified-id before 'for'
   32 |   for(int B = Max; B >= 1; B--){ //A-B
      |   ^~~
a.cc:32:20: error: 'B' does not name a type
   32 |   for(int B = Max; B >= 1; B--){ //A-B
      |                    ^
a.cc:32:28: error: 'B' does not name a type
   32 |   for(int B = Max; B >= 1; B--){ //A-B
      |                            ^
a.cc:47:1: error: expected declaration before '}' token
   47 | }
      | ^
Language: C++

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


int main(){

int x;
cin >> x;

int a,b; 
int n = 1000;
int ansa=0;
int ansb=0;

 for (int i = 0; i < n; i++)
    {
        
        for (int j = 0; j < n; j++)
        {
            if(i*i*i*i*i-j*j*j*j*j == x){
                ansa = i;
                ansb = j;
                goto goal;
                }
            if(i*i*i*i*i+j*j*j*j*j == x){
                ansa = i;
                ansb = j;
                goto goal;
                }
        }
        
   


goal:

cout << ansa << ansb << endl;


}


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

#include <bits/stdc++.h>
using namespace std;
int main() {
  int X;
    cin >> X;
  int check=0;
  for(int64_t i=-120;i<121;i++){
	for(int64_t j=-120;j<121;j++){
      if(i**5-j**5==X && check<1){
        cout << i << ' ' << j<<endl;
        
         check++;
      }
    }
  }
}



Compiler output:
a.cc: In function 'int main()':
a.cc:9:12: error: invalid type argument of unary '*' (have 'int')
    9 |       if(i**5-j**5==X && check<1){
      |            ^~
a.cc:9:17: error: invalid type argument of unary '*' (have 'int')
    9 |       if(i**5-j**5==X && check<1){
      |                 ^~
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main() {
  int x;
    cin >> X;
  int check=0;
  for(int64_t i=-120;i<121;i++){
	for(int64_t j=-120;j<121;j++){
      if(i**5-j**5==X && check<1){
        cout << i << ' ' << j<<endl;
        
         check++;
      }
    }
  }
}



Compiler output:
a.cc: In function 'int main()':
a.cc:5:12: error: 'X' was not declared in this scope
    5 |     cin >> X;
      |            ^
a.cc:9:12: error: invalid type argument of unary '*' (have 'int')
    9 |       if(i**5-j**5==X && check<1){
      |            ^~
a.cc:9:17: error: invalid type argument of unary '*' (have 'int')
    9 |       if(i**5-j**5==X && check<1){
      |                 ^~
Language: C++

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


int main(){

int x;
cin >> x;

ll a,b; 
ll n = 1000;
ll ansa=0;
ll ansb=0;

 for (int i = 0; i < n; i++)
    {
        
        for (int j = 0; j < n; j++)
        {
            if(i*i*i*i*i-j*j*j*j*j == x){
                ansa = i;
                ansb = j;
                goto goal;}
            if(i*i*i*i*i+j*j*j*j*j == x){
                ansa = i;
                ansb = j;
                goto goal;}
        }
        
   


goal:

cout << ansa << ansb << endl;


}


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

#include <bits/stdc++.h>
 using namespace std;
#define rep(i,n) for(int i=0;i<n;i++)
template<class T> inline bool chmin(T& a, T b) { if (a > b) { a = b; return true; } return false; } template<class T> inline bool chmax(T& a, T b) { if (a < b) { a = b; return true; } return false; } 
using ll=long long;
ll X;
 int main(){
  ll a=-1000,b=-1000;
   cin>>X;
   rep(i,5000){
     a++;
    rep(j,5000){
     b++;
     if(a*a*a*a*a-b*b*b*b*b==X){
     cout<<a<<" "<<b<<endl;
       break;
     }
      }
    }
   
   }
}


Compiler output:
a.cc:22:1: error: expected declaration before '}' token
   22 | }
      | ^
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;
}
#define M 10000

signed main1() {
	int x; cin >> x;

	int Amax = 1;
	for (; 5 * opow(Amax, 4) + 10 * opow(Amax, 3) <= x; Amax++);
	vi ans(2, -1);
	for (int k = 1; opow(k, 5) <= x; k++)
		if (opow(k, 5) == x) {
			ans[0] = k;
			ans[1] = 0;
			goto endloop;
		}
	for (int u = 1; u * u <= x; u++) {
		if (x % u == 0) {
			int v = x / u;
			//二分探索
			int blow =  -M;
			int bhigh = M;

			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;
				}
			}
		}
	}
endloop:
	cout << ans[0] << " " <<  ans[1] << endl;

	return 1;
}

Compiler output:
/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/14/../../../x86_64-linux-gnu/Scrt1.o: in function `_start':
(.text+0x17): undefined reference to `main'
collect2: error: ld returned 1 exit status
Language: C

#include<bits/stdc++.h>
using namespace std;
int main(){
  int64_t x;
  cin>>x;
  bool complete=false;
  
  for(int a=0;a<10001;a++){
    if(complete)break;
    for(int b=-1000;b<1001;b++){
      if((a*a*a*a*a - b*b*b*b*b)==x){
        cout<<a<<" "<<b<<endl;
        complete=true;
        break;
      }
    }
  }
}


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

#include <bits/stdc++.h>
using namespace std;
int main() {
  long long int x;
  int f=0,ff=0,a=1,b=0;
  long long int y[100005];
  cin >> x;
  for(int i=0;i<=100000;i++){
    y[i]=i*i*i*i*i;
  }
  while(f==0){
    if(y[a]-y[b]=x){
      cout << a << " " << b << endl;
      return 0;
    }
    if(y[a]+y[b]==x){
      cout << a << " -" << b << endl;
      return 0;
    }
    if(a==b){
      b=0;
      a++;
    }else{
      b++;
    }
  }
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:12: error: lvalue required as left operand of assignment
   12 |     if(y[a]-y[b]=x){
      |        ~~~~^~~~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
#define rep(i,n) for (int (i) = 0; (i) <(n); (i)++) 
using ll = long long;
int main() {
  double x;
  for(int i=-200;i<200;i++){
      for(int j=i;j<200;j++){
          if(pow(j,5)-pow(i,5)==x){
              cout<<j<<" "<<i<<endl;
          }
      }
  }

  cout<<sum<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:15:9: error: 'sum' was not declared in this scope
   15 |   cout<<sum<<endl;
      |         ^~~
Language: C++

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


int main(){

int x;
cin >> x;

ll a,b; 
ll n = 1000;
ll ansa=0;
ll ansb =0;

 for (int i = 0; i < n; i++)
    {
        a = i;
        ll a2 = a * a;
        ll a3 = a2 * a;
        ll a4 = a3 * a;
        ll a5 = a4 * a;

        for (int j = -n; j < n; j++)
        {
            b = j;
            ll b2 = b * b;
            ll b3 = b2 * b;
            ll b4 = b3 * b;
            ll b5 = b4 * b;
            if(b5-a5 == x){
                ansa = a;
                ansb = b;
                goto goal;
                            }
        }
        
   


goal:

cout << ansa << ansb << endl;


}


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

#include <iostream>
#include <stdio.h>
#include <algorithm>
#include <math.h>
#include <list>
#include <string>
#include <map>
#include <vector>
#include <stack>
#include <queue>
using namespace std;
#define REPD(i, a, b) for (int i = (a); i < (b); ++i)
#define REP(i, n) REPD(i, 0, n)
typedef long long ll;
#define fin(ans) cout << (ans) << '\n'
/*

*/
int main()
{
    ll X;
    cin >> X;
    REPD(i,-200,200){
        REPD(j,-200,200){
            if(i*i*i*i*i-j*j*j*j*j == X){
                cout << i << " " << j << enel;
            }
        }
    }
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:26:42: error: 'enel' was not declared in this scope
   26 |                 cout << i << " " << j << enel;
      |                                          ^~~~
Language: C

#include<stdio.h>
#include<math.h>
int main()
{
long int x;
  int a,b,i,j,c;
  c=0;
  scanf("%ld",&x);
 while(c==0) 
 { for(i=-100;i<101;++i)
  {
    for(j=-100;i<101;++i)
    {
    if(bow(i,5)-bow(j,5)==x) {a=i;
                              b=j;
                              c++;}
    }
  }
 }
  
  printf("%d %d",a,b);

return 0;
}

Compiler output:
main.c: In function 'main':
main.c:14:8: error: implicit declaration of function 'bow'; did you mean 'pow'? [-Wimplicit-function-declaration]
   14 |     if(bow(i,5)-bow(j,5)==x) {a=i;
      |        ^~~
      |        pow
Language: C++

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

int main(){
long long x;
  cin>>x;
  for(long long a=-200;a<200;a++){
    for(long long b=-200;b<200;b++){
if(a*a*a*a*a-b*b*b*b*b==x){
cout<<a<<<<" "<<b<<endl;
}
    }
  }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:10:10: error: expected primary-expression before '<<' token
   10 | cout<<a<<<<" "<<b<<endl;
      |          ^~
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);
  }
  int cnt=0;
  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;
        cnt++;
        break;
      }
      if(cnt==1){break;}
    }
  }
}


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);
      |          ^
Language: C++

#include <iostream>
 
int main(void){
  int x;
  std::cin >> x;
  
  int ans_a, ans_b;
  for(int a = -200; a < 200; a++){
    for(int b = -200; b < 200; b++){
      if(a*a*a*a*a - b*b*b*b*b == x){
        ans_a = a;
        ans_b = b;
      }
    }
  }
  
  std::cout << ans_a << " " << ans_b << endl;
  return 0;
}
#include <iostream>

int main(void){
  int x;
  std::cin >> x;
  
  int ans_a, ans_b;
  for(int a = -200; a < 200; a++){
    for(int b = -200; b < 200; b++){
      if(a*a*a*a*a - b*b*b*b*b == x){
        ans_a = a;
        ans_b = b;
      }
    }
  }
  
  std::cout << ans_a << " " << ans_b << std::endl;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:17:41: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   17 |   std::cout << ans_a << " " << ans_b << endl;
      |                                         ^~~~
      |                                         std::endl
In file included from /usr/include/c++/14/iostream:41,
                 from a.cc:1:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
a.cc: At global scope:
a.cc:22:5: error: redefinition of 'int main()'
   22 | int main(void){
      |     ^~~~
a.cc:3:5: note: 'int main()' previously defined here
    3 | int main(void){
      |     ^~~~
Language: C

#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <math.h>
typedef long long ll;

ll sqr(ll a)
{
	return (a * a * a * a * a);
}

int main()
{
	ll x;
	scanf("%lld", &x);
	ll r = f_div(x);
	ll a = 0,b = -1;
	while (a < 1000)
	{
		b = -1 * a;
		while (b < a)
		{
			if (sqr(a) - sqr(b) == x)
			{
				printf("%lld %lld", a,b);
				return 0;
			}
			b++;
		}
		a++
	}
	return (0);
}



Compiler output:
main.c: In function 'main':
main.c:16:16: error: implicit declaration of function 'f_div' [-Wimplicit-function-declaration]
   16 |         ll r = f_div(x);
      |                ^~~~~
main.c:30:20: error: expected ';' before '}' token
   30 |                 a++
      |                    ^
      |                    ;
   31 |         }
      |         ~
Language: C++

#include <iostream>

int main(void){
  int x;
  std::cin >> x;
  
  int ans_a, ans_b;
  for(int a = -200; a < 200; a++){
    for(int b = -200; b < 200; b++){
      if(a*a*a*a*a - b*b*b*b*b == x){
        ans_a = a;
        ans_b = b;
      }
    }
  }
  
  std::cout << ans_a << " " << ans_b << endl;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:17:41: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   17 |   std::cout << ans_a << " " << ans_b << endl;
      |                                         ^~~~
      |                                         std::endl
In file included from /usr/include/c++/14/iostream:41,
                 from a.cc:1:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
Language: C

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


int main() {
  long long X;
  scanf("%lld", &X);

  for(int a=-200; a<200; a++){
    for(int b=-200; b<200; b++){
      if(a*a*a*a*a-b*b*b*b*b==x) {
        printf("%d %d", a, b);
        break;
      }
    }
  }
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:12:31: error: 'x' undeclared (first use in this function)
   12 |       if(a*a*a*a*a-b*b*b*b*b==x) {
      |                               ^
main.c:12:31: note: each undeclared identifier is reported only once for each function it appears in
Language: C++

#include<bits/stdc++.h>
using namespace std;
long long ret5(long long num){
  return num*num*num*num*num;
}
int main()
{
  long long X;
  cin>>X;
  for(long long i=-200;i<200;i++){
    for(long long j=-200;j<200;j++){
      if(ret5(i)==X+ret5(j)){
        cout<<i<<" "<<j;a
        return 0;
      }
    }
  }
  cout<<0;
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:13:25: error: 'a' was not declared in this scope
   13 |         cout<<i<<" "<<j;a
      |                         ^
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:5:10: error: 'long long' specified with 'double'
    5 |     long long double X;
      |          ^~~~
a.cc:7:10: error: 'long long' specified with 'double'
    7 |     long long double A, C;
      |          ^~~~
a.cc:7:10: error: 'long long' specified with 'double'
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);
  }
  int cnt=0
  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;
        cnt++;
        break;
      }
      if(cnt==1){break;}
    }
  }
}


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:12:3: error: expected ',' or ';' before 'for'
   12 |   for(int i =121;i<241;i++){
      |   ^~~
a.cc:12:18: error: 'i' was not declared in this scope
   12 |   for(int i =121;i<241;i++){
      |                  ^
Language: Java

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

class Main{
	static final long MOD = 1_000_000_007; // 10^9+7
    static final int MAX = 2_147_483_646; // intMax 
    static final int INF = 1_000_000_000; // 10^9  
    public static void main(String[] args) throws Exception {
		hayami saori = new hayami();
		int x = saori.saori_hayami();
		for(int A = 0;A <= 1000;A++){
			for(int B =-1000;B <= 1000;B++){
			  double res = Math.pow(A, 5) - Math.pow(B, 5);
			  if(res == X){
				System.out.println(A + " " + B);
				return;
			  }
			}
		}
		saori.close();
    }
}

class hayami implements Closeable {
	private final InputStream in = System.in;
	private final byte[] hayami = new byte[1024];
	private int Hayami = 0;
	private int saori = 0;
	private boolean HayamiSaori() {
		if (Hayami < saori) {
			return true;
		}else{
			Hayami = 0;
			try {
				saori = in.read(hayami);
			} catch (IOException e) {
				e.printStackTrace();
			}
			if (saori <= 0) {
				return false;
			}
		}
		return true;
	}
	private int SaoriHayami() { 
		if (HayamiSaori()) {
            return hayami[Hayami++];
         }else{
             return -1;
         }
	}
	private static boolean hayami_saori(int hayami) { 
		return 33 <= hayami && hayami <= 126;
	}
	public boolean hayamisaori() { 
		while(HayamiSaori() && !hayami_saori(hayami[Hayami])) Hayami++; return HayamiSaori();
	}
	public String nextHayami() {
		if (!hayamisaori()) throw new NoSuchElementException();
		StringBuilder hayamin = new StringBuilder();
		int saori = SaoriHayami();
		while(hayami_saori(saori)) {
			hayamin.appendCodePoint(saori);
			saori = SaoriHayami();
		}
		return hayamin.toString();
	}
	public long saorihayami() {//nextLong
		if (!hayamisaori()) throw new NoSuchElementException();
		long hayami = 0;
		boolean misao = false;
		int saori = SaoriHayami();
		if (saori == '-') {
			misao = true;
			saori = SaoriHayami();
		}
		if (saori < '0' || '9' < saori) {
			throw new NumberFormatException();
		}
		while(true){
			if ('0' <= saori && saori <= '9') {
				hayami *= 10;
				hayami += saori - '0';
			}else if(saori == -1 || !hayami_saori(saori)){
				return misao ? -hayami : hayami;
			}else{
				throw new NumberFormatException();
			}
			saori = SaoriHayami();
		}
	}
	public int saori_hayami() {//nextInt
		long hayami = saorihayami();
		if (hayami < Integer.MIN_VALUE || hayami > Integer.MAX_VALUE) throw new NumberFormatException();
		return (int) hayami;
	}
	public double Hayamin() { //nextDouble
		return Double.parseDouble(nextHayami());
	}
	public void close() {
		try {
			in.close();
		} catch (IOException e) {
		}
    }
    
}

Compiler output:
Main.java:15: error: cannot find symbol
			  if(res == X){
			            ^
  symbol:   variable X
  location: class Main
1 error
Language: C++

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

int main(){
  ll x,y,i,j;
  cin >> x;
  for(i=-200;i<=200;i++){
    for(j=-200;j<=200;j++){
      y=pow(i,5)-pow(j,5);
      if(x==y){
        a=i;
        b=j;
      }
    }
  }
  cout << a << " " << b;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:9: error: 'a' was not declared in this scope
   12 |         a=i;
      |         ^
a.cc:13:9: error: 'b' was not declared in this scope
   13 |         b=j;
      |         ^
a.cc:17:11: error: 'a' was not declared in this scope
   17 |   cout << a << " " << b;
      |           ^
a.cc:17:23: error: 'b' was not declared in this scope
   17 |   cout << a << " " << b;
      |                       ^
Language: C++

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

int main(){
long long x;
  cin>>x;
  for(int a=0;a<x;i++){
    for(int b=0;b<x;b++){
if(a*a*a*a*a-b*b*b*b*b==x){
cout<<a<<b<<endl;
}
    }
  }
}


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

#include <bits/stdc++.h>
using namespace std;
#define rep(i,a,n) for (int i=a;i<n;i++)
#define pb push_back
#define fi first
#define se second
#define sz(A) (int)(A.size())
#define all(x) (x).begin(),(x).end()
#define caset int ___T; cin>>___T; for(int cs=1;cs<=___T;cs++)
#define get(c,x) (lower_bound(c.begin(),c.end(),x)-c.begin())
typedef long long ll;
typedef pair<int,int> PII;
typedef vector<int> VI;
const ll mod=1e9+7;
const int Max = 1e6+10;
ll powmod(ll a,ll b) {ll res=1;a%=mod; assert(b>=0); for(;b;b>>=1){if(b&1)res=res*a%mod;a=a*a%mod;}return res;}

void solve(){
	ll a = -2000;
	ll x;
	cin>>x;
	if(x==1){
		cout<<1<<" "<<0<<endl;
		return ;
	}
	if(x==2){
		cout<<1<<" "<<1<<endl;
		return ;
	}
	while(1){
		int b = f(x-ff(a));
		if(f(b)==x-ff(a)){
			cout<<a<<" "<<-b<<endl;
			return ;
		}
		a++;
	}
}
int main() {
	ios_base::sync_with_stdio(0), cin.tie(0), cout.tie(0);
	//caset{
		solve();
	//}
  	return 0;
}






Compiler output:
a.cc: In function 'void solve()':
a.cc:31:29: error: 'ff' was not declared in this scope; did you mean 'ffs'?
   31 |                 int b = f(x-ff(a));
      |                             ^~
      |                             ffs
a.cc:31:25: error: 'f' was not declared in this scope
   31 |                 int b = f(x-ff(a));
      |                         ^
Language: C++

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

int main() {
   long long  x;
  cin>> x;
  int iti,ni;
  iti =ni=0;
  
 
  for (long long i = 1; i < 200; i++) {
    for(long long j = 0; j < 199; j++) {
      if(a*a*a*a*a-b*b*b*b*b==x)
      {iti=i;ni=j;break;}
    }
    if(x-koho.at(iti)==koho.at(ni)) {break;}
      }
}
  


Compiler output:
a.cc: In function 'int main()':
a.cc:13:10: error: 'a' was not declared in this scope
   13 |       if(a*a*a*a*a-b*b*b*b*b==x)
      |          ^
a.cc:13:20: error: 'b' was not declared in this scope
   13 |       if(a*a*a*a*a-b*b*b*b*b==x)
      |                    ^
a.cc:16:10: error: 'koho' was not declared in this scope
   16 |     if(x-koho.at(iti)==koho.at(ni)) {break;}
      |          ^~~~
Language: C++

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

int main(){
long long x;
  cin>>x;
  for(int a=0;i<x;i++){
    for(int b=0;b<x;b++){
if(a*a*a*a*a-b*b*b*b*b==x){
cout<<a<<b<<endl;
}
    }
  }
}

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

#include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
#define rep1(i, n) for (int i = 1; i <= (int)(n); i++)
typedef int64_t Int;

int main(){ 
    Int X;
    cin >> X;



    vector<Int> five(10000);

    rep(i,10000) {
        five[i] = i * i * i * i * i;
    }

    rep(i,10000) {
        for (int j = i, j < 10000; j++) {
            if (five[i] + five[j] == X) {
                cout << i << " " << -j << endl;
            } else if (five[i] - five[j] == X) {
                cout << i << " " << j << endl;
            }
        }
    }

    
}

Compiler output:
a.cc: In function 'int main()':
a.cc:20:26: error: expected ';' before '<' token
   20 |         for (int j = i, j < 10000; j++) {
      |                          ^~
      |                          ;
a.cc:20:27: error: expected primary-expression before '<' token
   20 |         for (int j = i, j < 10000; j++) {
      |                           ^
Language: C++

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

int main(){
long long x;
  cin>>x;
  for(int a=0;i<x;i++){
    for(int b=0;b<x;b++){
if(a*a*a*a*a-b*b*b*b*b==x){
cout<<a<<b<<endl;
}
    }
  }


Compiler output:
a.cc: In function 'int main()':
a.cc:7:15: error: 'i' was not declared in this scope
    7 |   for(int a=0;i<x;i++){
      |               ^
a.cc:13:4: error: expected '}' at end of input
   13 |   }
      |    ^
a.cc:4:11: note: to match this '{'
    4 | int main(){
      |           ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main(){
    long long X,A,B;
    cin>>X;
    for(int i=-2000;i<2000;i++){
    for(int j=-2000;j<2000;j++){
    A=i*i*i*i*i;
    B=j*j*j*j*j;
    if(A-B==X){
    cout<<i<<" "<<j<<endl;
    goto as;}}}
    cout<<endl;}


Compiler output:
a.cc: In function 'int main()':
a.cc:12:10: error: label 'as' used but not defined
   12 |     goto as;}}}
      |          ^~
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;
  int 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:59:12: error: expected '}' at end of input
   59 |   return 0;
      |            ^
a.cc:34:11: note: to match this '{'
   34 | int main(){
      |           ^
Language: C++

#include <iostream>
#include <math.h>
#include <algorithm>
#include <queue>
#include <map>
#include <list>
//#include <bits/stdc++.h>


using namespace std;

#define FOR(i,a,b) for(int i=(a),i##formax=(b);i<i##formax;i++)
typedef long long ll;

int main(){
    int x,a,b;
    cin >> x;
    bool flag=false;
    FOR(d, 0, x) {
        if(x % d == 0) {
            for(a;a = 0,a < x){
                b = a -d ;
                if (pow(a,4) + pow(b,4) + a*a*a*b + a*b*b*b + a*a*b*b == x /d) {
                    break;
                }
            }

        }
        if(flag){
            break;
        }
    }
    cout << a << " " << b << endl;
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:21:30: error: expected ';' before ')' token
   21 |             for(a;a = 0,a < x){
      |                              ^
      |                              ;
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main() {
  long long A,B,X;
  cin >> X;
  for(long long j=0;j<N){
  	for(long long i=0;i<j){
  		if(root((X+i^5),5)==A){
  		B=i
  		}
  	}
  }
  cout << A << B <<endl;
  return 0; 
}




Compiler output:
a.cc: In function 'int main()':
a.cc:7:23: error: 'N' was not declared in this scope
    7 |   for(long long j=0;j<N){
      |                       ^
a.cc:7:24: error: expected ';' before ')' token
    7 |   for(long long j=0;j<N){
      |                        ^
      |                        ;
a.cc:8:30: error: expected ';' before ')' token
    8 |         for(long long i=0;i<j){
      |                              ^
      |                              ;
a.cc:9:20: error: 'root' was not declared in this scope
    9 |                 if(root((X+i^5),5)==A){
      |                    ^~~~
a.cc:10:20: error: expected ';' before '}' token
   10 |                 B=i
      |                    ^
      |                    ;
   11 |                 }
      |                 ~
Language: C++

#include <iostream>
#include <vector>
#include <cmath>
#include <map>
 
using namespace std;
typedef unsigned long long int ll;

ll X;

int main()
{

  ll A,B,B5;
  long double x,y;

  cin >> X;

  y=0.2;
  A = pow(X, y)+0.5;
  if (A*A*A*A*A == X) {
    printf("%lld 0\n", A);
    return 0;
  }
  for (B=1; ;B++) {
    B5 = (B*B*B*B*B);
    x = X+B5;
    A = pow(x, y)+0.5;
    if (A*A*A*A*A - B5 == X) break;
    x = X-B5;
    p = pow(x, y);
    if (A*A*A*A*A + B5 == X) {
      B = -B;
      break;
    }
  }

    printf("%lld %lld\n", A, B);


  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:31:5: error: 'p' was not declared in this scope
   31 |     p = pow(x, y);
      |     ^
Language: C++

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

int main() {
int64_t X;
  cin >> X;
  
  for(int i = -500; i < 500; i++)
    for(int j = -500; j <500; j++){
      if(i*i*i*i*i -j*j*j*j*j == X){
        cout << i ' ' << j << endl;
      }
    }
}



Compiler output:
a.cc: In function 'int main()':
a.cc:11:18: error: expected ';' before '\x20'
   11 |         cout << i ' ' << j << endl;
      |                  ^~~~
      |                  ;
Language: C++

#include <bits/stdc++.h>

using namespace std;
typedef long long int ll;

vector<int> factors(int x){
    vector<int> f;
    for(int i = 1; i<= sqrt(x);i++){
        if(x%i == 0){
            if(i!= x/i){
                f.push_back(i);
                f.push_back(x/i);
            }
            else f.push_back(i);
        }
    }
    return f;
}

int main(){
    ll x;
    cin>>x;
    // vector<int> f = factors(x);
    int val = (x>= 0)?ceil(pow(1.0* x, 0.2));
    for(ll a = 0;a <= val;a++){
        for(ll b= -val;b<= val;b++){
            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:24:45: error: expected ':' before ';' token
   24 |     int val = (x>= 0)?ceil(pow(1.0* x, 0.2));
      |                                             ^
      |                                             :
a.cc:24:45: error: expected primary-expression before ';' token
Language: C++

#include<bits/stdc++.h>
using namespace std;
using ll=long long;
constexpr ll mod=1e9+7;

set<ll> divisor(ll n)
{
  if(n<0) n*=-1;
  else if(n==0) 
  {
    set<ll> st;
    st.insert(0);
    return st;
  }
  set<ll> st;  
  for (int i = 1; i <= sqrt(n); ++i)
  {
    if(n%i==0)
    {
      st.insert(i);
      st.insert(n/i);
      st.insert(-1*i);
      st.insert(-1*n/i);
    }
  }
  return st;
}

ll divisor2(ll n,ll e)
{
  if(n<0) n*=-1;
  else if(n==0) 
  {
    set<ll> st;
    st.insert(0);
    return st;
  }
  set<ll> st;  
  for (int i = 1; i <= sqrt(n); ++i)
  {
    if(n%i==0&& n%(i+e)==0)
    {
      st.insert(i);
      st.insert(n/i);
      st.insert(-1*i);
      st.insert(-1*n/i);
    }
  }
  return st;
}

int main()
{
  ll x;
  cin>>x;
  set<ll> st=divisor(x);

  for(const auto& e: st) 
  {
    if(abs(x/e-e*e*e*e)%5!=0) continue;
    ll tgt=(x/e-e*e*e*e)/5;
    set<ll> div=divisor2(tgt);
    for(const auto& b: div) 
    {
      if((b+e)*(b+e)*(b+e)*(b+e)*(b+e)-b*b*b*b*b==x)
      {
        cout<<b+e<<" "<<b<<endl;
        return 0;
      }
    }
  }
}

Compiler output:
a.cc: In function 'll divisor2(ll, ll)':
a.cc:36:12: error: cannot convert 'std::set<long long int>' to 'll' {aka 'long long int'} in return
   36 |     return st;
      |            ^~
      |            |
      |            std::set<long long int>
a.cc:49:10: error: cannot convert 'std::set<long long int>' to 'll' {aka 'long long int'} in return
   49 |   return st;
      |          ^~
      |          |
      |          std::set<long long int>
a.cc: In function 'int main()':
a.cc:62:25: error: too few arguments to function 'll divisor2(ll, ll)'
   62 |     set<ll> div=divisor2(tgt);
      |                 ~~~~~~~~^~~~~
a.cc:29:4: note: declared here
   29 | ll divisor2(ll n,ll e)
      |    ^~~~~~~~
Language: C++

#include<bits/stdc++.h>
using namespace std;
typedef long long int ll;
int main()
{
  ll x;
  cin>>x;
  for(ll i=1;;i++)
  {
    ll y=log5(x+powl(i,5));
    if(y*y*y*y*y==x+powl(i,5))
    {
      cout<<i<<" "y;
      break;
    }
  }
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:10: error: 'log5' was not declared in this scope; did you mean 'logl'?
   10 |     ll y=log5(x+powl(i,5));
      |          ^~~~
      |          logl
a.cc:13:16: error: unable to find string literal operator 'operator""y' with 'const char [2]', 'long unsigned int' arguments
   13 |       cout<<i<<" "y;
      |                ^~~~