criyle/codenet-compile-errors huggingface dataset:
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 (long int i = -Y; i <= Y; ++i)
	{
		for (long 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++

using namespace std;
#include <unordered_map>
#include <vector>
#include <math.h> 
#include <stdio.h>
int main(){
    int x ;
    cin>>x;
    if(x==0){
        cout<<0<<" "<<0;
    }
    else{
        int b=-1;
    
        int a= int((pow(x-1,0.2)));
        cout<<a<<" "<<b<<endl;
    
    }
    
    
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:5: error: 'cin' was not declared in this scope
    8 |     cin>>x;
      |     ^~~
a.cc:6:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
    5 | #include <stdio.h>
  +++ |+#include <iostream>
    6 | int main(){
a.cc:10:9: error: 'cout' was not declared in this scope
   10 |         cout<<0<<" "<<0;
      |         ^~~~
a.cc:10:9: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:16:9: error: 'cout' was not declared in this scope
   16 |         cout<<a<<" "<<b<<endl;
      |         ^~~~
a.cc:16:9: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:16:26: error: 'endl' was not declared in this scope
   16 |         cout<<a<<" "<<b<<endl;
      |                          ^~~~
a.cc:6:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
    5 | #include <stdio.h>
  +++ |+#include <ostream>
    6 | int main(){
Language: C++

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


Compiler output:
a.cc: In function 'int main()':
a.cc:12:10: error: expected primary-expression before ')' token
   12 |       if()
      |          ^
Language: C++

#include <bits/stdc++.h>
int main()
{
    using namespace std;
    int X;
    cin >> X;
    int A(1), B(0);
    while (pow(A, 5) < X)
    {
        A++;
    }
    int T1 = X - pow(A - 1, 5);
    int T2 = pow(A, 5) - X;
    while (B != T1 && B != T2)
    {
        B++;
    }
    if (B == T1)
    {
        cout << A - 1 << ' ' << -B << endl;
    }
    else if (B == T2)
    {
        cout << A << ' ' << B << endl;
    }

Compiler output:
a.cc: In function 'int main()':
a.cc:25:6: error: expected '}' at end of input
   25 |     }
      |      ^
a.cc:3:1: note: to match this '{'
    3 | {
      | ^
Language: Java

import java.io.BufferedReader;
import java.io.InputStreamReader;

public class HelloWorld {
    public static void main(String[] args){
        int target = 0;

        try {
            BufferedReader reader= new BufferedReader(new InputStreamReader(System.in));
            target = Integer.parseInt(reader.readLine());
        }catch (Exception E){
            E.printStackTrace();
        }

        int min1 = (int)(Math.pow(target/2,1.0/5));
        int max1 = (int)(Math.pow(target,1.0/5));

        int a = max1;

        int judge = 1;
        while (a>=min1){
            double b=Math.pow(target-Math.pow(a,5),1/5);
            if(b-(int)(b)==0.0){
                System.out.print(a);
                System.out.print(" "+(-(int)(b)));
                judge = 0;
                break;
            }
            a-=1;
        }


        a=max1;
        if (judge==1){
            while (Math.pow(a,5)-Math.pow(a-1,5)<=target) {
                double b = Math.pow(target + Math.pow(a, 5), 1 / 5);
                if (b - (int) (b) == 0.0) {
                    System.out.print(a);
                    System.out.print((int)(b));
                    break;
                }
                a+=1;
            }
        }

    }
}


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

#include <stdio.h>
int main(){
  int x;
  scanf("%d",&x);
  (int i=x;i<=(-1)*x;i--){
    (int j=x;j<=(-1)*x;j--){
      int n=i-j;
      if(x%n==0){
        int m=i^4+i^3*j+i^2*j^2+i*j^3+j^4;
        if(x%m==0){
          if(n*m==x){
            printf("%d %d",i,j);
            return 0;
          }
        }
      }
    }
  }
    
}


Compiler output:
main.c: In function 'main':
main.c:5:7: error: expected ')' before 'i'
    5 |   (int i=x;i<=(-1)*x;i--){
      |   ~   ^~
      |       )
main.c:6:9: error: expected ')' before 'j'
    6 |     (int j=x;j<=(-1)*x;j--){
      |     ~   ^~
      |         )
main.c:7:7: error: expected expression before 'int'
    7 |       int n=i-j;
      |       ^~~
main.c:18:4: error: expected ';' before '}' token
   18 |   }
      |    ^
      |    ;
   19 | 
   20 | }
      | ~
Language: C

#include <stdio.h>
int main(){
  int x;
  scanf("%d",&x);
  int(i=x;i<=(-1)*x;i--){
    int (int j=x;j<=(-1)*x;j--){
      int n=i-j;
      if(x%n==0){
        int m=i^4+i^3*j+i^2*j^2+i*j^3+j^4;
        if(x%m==0){
          if(n*m==x){
            printf("%d %d",i,j);
            return 0;
          }
        }
      }
    }
  }
    
}


Compiler output:
main.c: In function 'main':
main.c:5:8: error: expected ')' before '=' token
    5 |   int(i=x;i<=(-1)*x;i--){
      |        ^
      |        )
Language: Java

import java.io.BufferedReader;
import java.io.InputStreamReader;

public class HelloWorld {
    public static void main(String[] args){
        int target = 0;

        try {
            BufferedReader reader= new BufferedReader(new InputStreamReader(System.in));
            target = Integer.parseInt(reader.readLine());
        }catch (Exception E){
            E.printStackTrace();
        }

        int min1 = (int)(Math.pow(target/2,1.0/5));
        int max1 = (int)(Math.pow(target,1.0/5));

        int a = max1;

        int judge = 1;
        while (a>=min1){
            double b=Math.pow(target-Math.pow(a,5),1/5);
            if(b-(int)(b)==0.0){
                System.out.print(a);
                System.out.print(" "+(-(int)(b)));
                judge = 0;
            }
            break;
        }
        a-=1;


        a=max1;
        if (judge==1){
            while (Math.pow(a,5)-Math.pow(a-1,5)<=target) {
                double b = Math.pow(target + Math.pow(a, 5), 1 / 5);
                if (b - (int) (b) == 0.0) {
                    System.out.print(a);
                    System.out.print((int)(b));
                    break;
                }
            } 
        }
        a+=1;
    }
}


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


#include <iostream>
#include <unordered_set>
using namespace std;
#include <unordered_map>
#include <vector>
#include <math.h> 
#include <stdio.h>
int main(){
    int x ;
    cin>>x;
    if(x==0){
        cout<<0<<" "<<0;
    }
    else{
        int b=-1;
    // cout<<pow(33,0.2)<<endl;
    int a= int((pow(x-1,0.2)));
    cout<<a<<" "<<b<<endl;
    
    }
    
    

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

x = int(input())

min_limit = int(x**0.2) + 1

hashd = {}
a = 0
b = 0

for n in range(min_limit+1):
    p = n**5
    hashd[p] = n
    
    if p==x:
        a = n
        b = 0
        break
    else:
        if abs(x-p) in hashd.keys():
            a = n
            b = hashd[x-p]
            
            if (p+hashd[x-p]==x):
                b = -b

print(a,b)



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

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

int main()
{
  int A,B,X,Y;
  cin >> X;
  Y=X/(pow(A,5)+pow(B,5));
  cout << A << B;
}

Compiler output:
a.cc:3:7: error: expected nested-name-specifier before 'namespasce'
    3 | using namespasce std;
      |       ^~~~~~~~~~
a.cc: In function 'int main()':
a.cc:8:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    8 |   cin >> X;
      |   ^~~
      |   std::cin
In file included from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:10:3: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   10 |   cout << A << B;
      |   ^~~~
      |   std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
Language: Java

import java.util.*;
 
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 = 1; i < X; i++){
              for(int j = 1; j > -X; j--){
                if((i*i*i*i*i) -(j*j*j*j*j) == X){
                  A = i;
                  B = j;
                }
              }

Compiler output:
Main.java:15: error: reached end of file while parsing
              }
               ^
1 error
Language: C++

#include<iostream>
#include<cmath>
using namespace std;
int main() {
	int x,a,b;
	cin >> x;
	for (int i = 1; i * i <= x; i++) {
		if (x % i == 0) {
			long long k = i;
			long long m = x / k * 16;
			long long a = 80 * k * k * k * k +m*20;
			if (a >= 0 && (sqrt(a) - (int)(sqrt(a)) <= 1e-8))
			{
				long long t = (int)(sqrt(a));
				if ((-10 * k * k + t) >= 0) {
					if (t % 10 == 0) {
						long long b = (t / 10 - k * k), l = 0;
						if (sqrt(b) - (long long)sqrt(b)) <= 1e-8) {
							l = (long long)(sqrt(b));
							if (l ^ k == 0) {
								cout << (l + k) / 2 << ' ' << (l - k) / 2 << endl; return 0;
							}
						}
					}
				}
			}
		}
	}
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:18:83: error: expected primary-expression before '<=' token
   18 |                                                 if (sqrt(b) - (long long)sqrt(b)) <= 1e-8) {
      |                                                                                   ^~
Language: C++

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

int main() {
  int X, a, b, A, B;
  cin >> X;
  int y = 0;
  a = 1;
  while(y != 0){
    A = pow(a, 5);
    c = abs(X - A);
    if(A == X){
      b = 0;
      break;
    }else if(A < X){
      int z = 0;
      b = 0;
      while(z != 0){
        B = pow(b, 5);
        if(B == c){
          b = 0 - b;
          break;
        }else if(B > c){
          break;
        }
        b++;
      }
      if(b != 0){
        break;
      }
      a++;
    }else{
      int z = 0;
      b = 0;
      while(z != 0){
        B = pow(b, 5);
        if(B == c){
          break;
        }else if(B > c){
          break;
        }
        b++;
      }
      if(b != 0){
        break;
      }
      a++;
    }
  }
  cout << a << b << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:11:5: error: 'c' was not declared in this scope
   11 |     c = abs(X - A);
      |     ^
Language: C++

using namespace std;
 
int main(){
  int x;
  cin>>x;
  int i,j;
  int flag=0;
  for(i=-120;i<=120;i++){
    for(j=-120;j<=120;j++){
      if(i*i*i*i*i-j*j*j*j*j==x){
        flag=1;
        break;
      }
    }
    if (flag==1) break;
  }
  cout <<i<<" "<<j<<endl;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:3: error: 'cin' was not declared in this scope
    5 |   cin>>x;
      |   ^~~
a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 | using namespace std;
a.cc:17:3: error: 'cout' was not declared in this scope
   17 |   cout <<i<<" "<<j<<endl;
      |   ^~~~
a.cc:17:3: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:17:21: error: 'endl' was not declared in this scope
   17 |   cout <<i<<" "<<j<<endl;
      |                     ^~~~
a.cc:1:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
  +++ |+#include <ostream>
    1 | using namespace std;
Language: C++

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

int toid(int a, int X){
  

int main() {
  int X, a, b, A, B;
  cin >> X;
  int y = 0;
  a = 1;
  while(y != 0){
    A = pow(a, 5);
    c = abs(X - A);
    if(A == X){
      b = 0;
      break;
    }else if(A < X){
      int z = 0;
      b = 0;
      while(z != 0){
        B = pow(b, 5);
        if(B == c){
          b = 0 - b;
          break;
        }else if(B > c){
          break;
        }
        b++;
      }
      if(b != 0){
        break;
      }
      a++;
    }else{
      int z = 0;
      b = 0;
      while(z != 0){
        B = pow(b, 5);
        if(B == c){
          break;
        }else if(B > c){
          break;
        }
        b++;
      }
      if(b != 0){
        break;
      }
      a++;
    }
  }
  cout << a << b << endl;
}


Compiler output:
a.cc: In function 'int toid(int, int)':
a.cc:7:9: warning: empty parentheses were disambiguated as a function declaration [-Wvexing-parse]
    7 | int main() {
      |         ^~
a.cc:7:9: note: remove parentheses to default-initialize a variable
    7 | int main() {
      |         ^~
      |         --
a.cc:7:9: note: or replace parentheses with braces to value-initialize a variable
a.cc:7:12: error: a function-definition is not allowed here before '{' token
    7 | int main() {
      |            ^
a.cc:54:2: error: expected '}' at end of input
   54 | }
      |  ^
a.cc:4:23: note: to match this '{'
    4 | int toid(int a, int X){
      |                       ^
a.cc:54:2: warning: no return statement in function returning non-void [-Wreturn-type]
   54 | }
      |  ^
Language: C

#include<stdio.h>

int main(){
  long x;
  scanf("%ld",&x);
  
  for(int a=0;i>0;i++){
    if(a<64){
      for(int b=-64;b<0;b++){
        if(a*a*a*a*a-b*b*b*b*b==x){printf("%d %d",a,b);return 0;}
        if(a*a*a*a*a-b*b*b*b*b-x>0){break;}
      }
    }
    if(a>=64){
      for(int b=1;b<=a;b++){
        if(a*a*a*a*a-b*b*b*b*b==x){printf("%d %d",a,b);return 0;}
        if(a*a*a*a*a-b*b*b*b*b-x<0){break;}
      }
    }
  }
}

Compiler output:
main.c: In function 'main':
main.c:7:15: error: 'i' undeclared (first use in this function)
    7 |   for(int a=0;i>0;i++){
      |               ^
main.c:7:15: note: each undeclared identifier is reported only once for each function it appears in
Language: C++

#include <iostream>
using namespace std;

int main(){
  int x;
  cin>>x;
  int i,j;
  int flag=0;
  for(i=-120,i<=120;i++){
    for(j=-120,j<=120;j++){
      if(i*i*i*i*i-j*j*j*j*j=x){
        flag=1;
        break;
      }
    }
    if (flag==1) break;
  }
  cout <<i<<" "<<j<<endl;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:24: error: expected ';' before ')' token
    9 |   for(i=-120,i<=120;i++){
      |                        ^
      |                        ;
a.cc:10:26: error: expected ';' before ')' token
   10 |     for(j=-120,j<=120;j++){
      |                          ^
      |                          ;
a.cc:11:19: error: lvalue required as left operand of assignment
   11 |       if(i*i*i*i*i-j*j*j*j*j=x){
      |          ~~~~~~~~~^~~~~~~~~~
Language: C++

#include<iostream>
#include<vector>
#include<algorithm>
#include<string>
#include<cstdio>
#include<cstring>
#include<cmath>
#include<queue>
#include<map>
using namespace std;                       
typedef long long ll;
ll a[105];
ll b[105];
  int main()
  {  ll x,t,t1,t2=0;
    cin>>x;
    memset(a,0,sizeof(a));
    memser(b,0,sizeof(b));
    for(int i=0;i<=100;i++)
     { a[i]=i*i*i*i*i;
       b[i]=-i*i*i*i*i;
   }
   cout<<b[1]<<endl;
     for(int i=0;i<=100;i++)
     {  t=pow(x+b[i],0.2);
         t1=pow(t,5);
        if(t1==x+b[i])
         {  t2=1;
            cout<<t<<" "<<-i<<endl;
            break;
		 }
		 }
      if(t2==1)
		return 0;
     for(int i=0;i<=100;i++)
     {  t=pow(a[i]+x,0.2);
        t1=pow(t,5);
        if(t1==a[i]+x)
         {  t2=1;
            cout<<t<<" "<<i<<endl;
            break;
		 }
		 }
 }
    

Compiler output:
a.cc: In function 'int main()':
a.cc:18:5: error: 'memser' was not declared in this scope; did you mean 'memset'?
   18 |     memser(b,0,sizeof(b));
      |     ^~~~~~
      |     memset
Language: Java

ipackage AtCoder2020May3Beginner;

import java.util.ArrayList;
import java.util.Collections;
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		// TODO Auto-generated method stub
		Scanner scn= new Scanner(System.in);
		int n =scn.nextInt();
		ArrayList<Integer> al = new ArrayList<>();
		for(int i=1;i*i<=n ;i++){
			if(n%i==0){
				al.add(i);
				al.add(n/i);
			}
		}
		Collections.sort(al);
	      
		for(int val : al){
			for(int i=0;i<=val;i++){
				//System.out.println(val);
				if(check(i,i-val,n)){
				      System.out.println(i+" "+(i-val));
				      return ;
				}
			}
		}
		System.out.println("a");

	}
	
	
	
	public  static  boolean check(long a , long b, int x){
		// System.out.println(a+" "+b);
		 long val1 = a*a*a*a*a;
		 long val2 = b*b*b*b*b;
		 if(val1-val2==(long)x){
			 return true;
		 }else{
			 return false;
		 }
	}

}

Compiler output:
Main.java:1: error: unnamed classes are a preview feature and are disabled by default.
ipackage AtCoder2020May3Beginner;
^
  (use --enable-preview to enable unnamed classes)
Main.java:3: error: class, interface, enum, or record expected
import java.util.ArrayList;
^
Main.java:4: error: class, interface, enum, or record expected
import java.util.Collections;
^
Main.java:5: error: class, interface, enum, or record expected
import java.util.Scanner;
^
4 errors
Language: C++

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

void solve(long long X){
    int k=0,frag=0;
for(int i=0; i<120; i++){
          ll a=(i*i*i*i*i);
    for(int j=1; j<200; j++){
        ll b=((i-j)*(i-j)*(i-j)*(i-j)*(i-j));
        if(a-b==X){
            k=b;
            cout<< i << " " << i-j <<endl;
            break;
   }     
    }
    if(a-k==X){
        frag=1;
        break;
    }

}
for(int i=-120; i<1; i++){
    if(frag=1)break;
    ll aa=(i*i*i*i*i);
    for(int j=1; j<200; j++){
        ll bb=((i-j)*(i-j)*(i-j)*(i-j)*(i-j));
        if(aa-bb==X){
            kk=bb;
            cout<< i << " " << i-j <<endl;
            break;
   }     
    }
    
    if(aa-kk==X)break;

}
}


int main(){
    long long X;
    scanf("%lld",&X);
    solve(X);
    return 0;
}


Compiler output:
a.cc: In function 'void solve(long long int)':
a.cc:29:13: error: 'kk' was not declared in this scope; did you mean 'k'?
   29 |             kk=bb;
      |             ^~
      |             k
a.cc:35:11: error: 'kk' was not declared in this scope; did you mean 'k'?
   35 |     if(aa-kk==X)break;
      |           ^~
      |           k
Language: C++

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

using namespace std;

int main() {

	int X;
	cin >> X;

	int Y = pow(X, 0.2);

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

	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:17: error: 'pow' was not declared in this scope
   12 |         int Y = pow(X, 0.2);
      |                 ^~~
Language: C++

#include<iostream>
using namespace std;
int main() {
	int x,a,b;
	cin >> x;
	for (int i = 1; i * i <= x; i++) {
		if (x % i == 0) {
			int k = i;
			int m = x / k * 16;
			int a = 80 * k * k * k * k +m*20;
			if (a >= 0 && (sqrt(a) - (int)(sqrt(a)) <= 1e-8))
			{
				int t = (int)(sqrt(a));
				if ((-10 * k * k + t) >= 0) {
					if (t % 10 == 0) {
						int b = (t / 10 - k * k), l = 0;
						if (sqrt(b) - (int)(sqrt(b)) <= 1e-8) {
							l = (int)(sqrt(b));
							if (l ^ k == 0) {
								cout << (l + k) / 2 << ' ' << (l - k) / 2 << endl; return 0;
							}
						}
					}
				}
			}
		}
	}
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:40: error: 'sqrt' was not declared in this scope
   11 |                         if (a >= 0 && (sqrt(a) - (int)(sqrt(a)) <= 1e-8))
      |                                        ^~~~
Language: Java

import java.util.*;

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; i++){
              for(int j = j < X; i++){
                if((i*i*i*i*i) -(j*j*j*j*j) == 33){
                  A = i;
                  B = j;
                }
              }
            }
            System.out.println(A + " "+ B);
          }
}

Compiler output:
Main.java:10: error: ';' expected
              for(int j = j < X; i++){
                                    ^
1 error
Language: C++

#include<iostream>
#include <bits/stdc++.h>
#include<string>
#include<algorithm>
using namespace std;
typedef pair<int,int> P;


int main(){
    int X;
    cin >>X;
    int a =1,n=X;
    vector<int> fact;
    long maxe =1;
    while(n >= a){
        if(n % a ==0){
            fact.push_back(a);
            maxe =a;
        }
        a++;
    }
    for(auto& e:fact){
        for(int i =0-e; i < (X+a)/maxe; i++){
            long a=i+e;
            long b=i;
            if(a*a*a*a +a*a*a*b +a*a*b*b +a*b*b*b +b*b*b*b == X/(a-b)){
                cout << a <<" " << b << endl;
                return 0;
            }
            else if(a*a*a*a +a*a*a*b +a*a*b*b +a*b*b*b +b*b*b*b>X/(a-b))break;

        }
    }
    return 0;

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

#include<bits/stdc++.h>
using namespace std;
long long int floorRoot5(long long int n)
{
	// Base cases
	if (n == 0 || n == 1)
	return n;

	// Do Binary Search for floor of 5th square root
	long long int low = 1, high = n, ans = 0;
	while (low <= high)
	{
		// Find the middle point and its power 5
		long lon gint mid = (low + high) / 2;
		long int mid5 = mid*mid*mid*mid*mid;

		// If mid is the required root
		if (mid5 == n)
			return mid;

		// Since we need floor, we update answer when
		// mid5 is smaller than n, and move closer to
		// 5'th root
		if (mid5 < n)
		{
			low = mid + 1;
			ans = mid;
		}
		else // If mid^5 is greater than n
			high = mid - 1;
	}
	return ans;
}
int main()
{
long long int n;
cin>>n;
long long int arr[]={-1,-32, -243, -1024, -3125, -7776, -16807, -32768, -59049, -100000, -161051, -248832, -371293, -537824, -759375, -1048576, -1419857, -1889568, -2476099, -3200000, -4084101, -5153632, -6436343, -7962624, -9765625, -11881376, -14348907, -17210368, -205111490,0, 1, 32, 243, 1024, 3125, 7776, 16807, 32768, 59049, 100000, 161051, 248832, 371293, 537824, 759375, 1048576, 1419857, 1889568, 2476099, 3200000, 4084101, 5153632, 6436343, 7962624, 9765625, 11881376, 14348907, 17210368, 20511149};
map<long long int,int>visi;
for(int i=0; i<57; ++i)
visi[arr[i]]=1;
for(int i=0; i<57; ++i)
{
if(visi[arr[i]-n])
{
int numi(floorRoot5(abs(arr[i]))),numi1(floorRoot5(abs(arr[i]-n)));
if(arr[i]<0)
cout<<-numi<<" ";
else
cout<<numi<<" ";
if(arr[i]-n<0)
cout<<-numi1;
else
cout<<numi1;
break;
}
}
}


Compiler output:
a.cc: In function 'long long int floorRoot5(long long int)':
a.cc:14:26: error: expected initializer before 'gint'
   14 |                 long lon gint mid = (low + high) / 2;
      |                          ^~~~
a.cc:15:33: error: 'mid' was not declared in this scope; did you mean 'mid5'?
   15 |                 long int mid5 = mid*mid*mid*mid*mid;
      |                                 ^~~
      |                                 mid5
Language: C++

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

int main() {
    int64_t x;
    cin>>x;
    for(int64_t i=1;i<133;i++){
        for(int64_t j=1;j<133;j++){
           int64_t a_jou = pow(i,5);
           int64_t b_jou = pow(j,5); 
        } 
        if (int64_t a_jou,int64_t b_jou;x!=a_jou-b_jou){
               continue;
           } else{
               cout << a_jou <<" "<<  b_jou<<endl;
               break;
           }
    }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:34: error: expected ';' before 'b_jou'
   12 |         if (int64_t a_jou,int64_t b_jou;x!=a_jou-b_jou){
      |                                  ^~~~~~
      |                                  ;
a.cc:12:35: error: 'b_jou' was not declared in this scope; did you mean 'a_jou'?
   12 |         if (int64_t a_jou,int64_t b_jou;x!=a_jou-b_jou){
      |                                   ^~~~~
      |                                   a_jou
a.cc:12:40: error: expected ')' before ';' token
   12 |         if (int64_t a_jou,int64_t b_jou;x!=a_jou-b_jou){
      |            ~                           ^
      |                                        )
a.cc:12:44: error: 'a_jou' was not declared in this scope
   12 |         if (int64_t a_jou,int64_t b_jou;x!=a_jou-b_jou){
      |                                            ^~~~~
a.cc:12:50: error: 'b_jou' was not declared in this scope
   12 |         if (int64_t a_jou,int64_t b_jou;x!=a_jou-b_jou){
      |                                                  ^~~~~
a.cc:14:14: error: 'else' without a previous 'if'
   14 |            } else{
      |              ^~~~
Language: C++

#include<bits/stdc++.h>
using namespace std;
int f(long int a,long int b){
  return a*a*a*a-a*a*a*b+a*a*b*b-a*b*b*b+b*b*b*b;
}
int main(){
  int x;
  cin>>x;
  int a;
  for(long int i=0;i<1000000000;i++){
    if(f(i,1-i)==x){
      a=i;
      break;
    }
    cout<<a<<" "<<1-a<<endl;
}

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

#include<bits/stdc++.h>
using namespace std;
int main(){
    long long int a;
    long long int x;
    map<long long int ,long long int> mp;
    cin >> x;
    for(long long int i=1;i<2005;i++){
        a=i*i*i*i*i;
        mp[i*i*i*i*i]=i;
        mp[-i*i*i*i*i]=-i;
    }
    long long int tmp:
    long long int A,B;
    for(long long int i=1;i<2005;i++){
        tmp=i*i*i*i*i;
        if(mp[tmp-x]>0){
            A=mp[tmp-x];
            B=i;
            break;
        }
        else if(mp[x-tmp]>0){
            A=mp[x-tmp];
            B=i;
            break;
        }
    }
    cout << A << " " << B << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:22: error: expected initializer before ':' token
   13 |     long long int tmp:
      |                      ^
a.cc:16:9: error: 'tmp' was not declared in this scope; did you mean 'mp'?
   16 |         tmp=i*i*i*i*i;
      |         ^~~
      |         mp
a.cc:18:13: error: 'A' was not declared in this scope
   18 |             A=mp[tmp-x];
      |             ^
a.cc:19:13: error: 'B' was not declared in this scope
   19 |             B=i;
      |             ^
a.cc:23:13: error: 'A' was not declared in this scope
   23 |             A=mp[x-tmp];
      |             ^
a.cc:24:13: error: 'B' was not declared in this scope
   24 |             B=i;
      |             ^
a.cc:28:13: error: 'A' was not declared in this scope
   28 |     cout << A << " " << B << endl;
      |             ^
a.cc:28:25: error: 'B' was not declared in this scope
   28 |     cout << A << " " << B << endl;
      |                         ^
Language: C

#include <stdio.h>
int main(){
  int x;
  scanf("%d",&x);
  int(i=x;i<=(-1)*x;i--){
    int (j=x;j<=(-1)*x;j--){
      int n=i-j;
      if(x%n==0){
        int m=i^4+i^3*j+i^2*j^2+i*j^3+j^4;
        if(x%m==0){
          if(n*m==x){
            printf("%d %d",i,j);
            return 0;
          }
        }
      }
    }
  }
    
}

Compiler output:
main.c: In function 'main':
main.c:5:8: error: expected ')' before '=' token
    5 |   int(i=x;i<=(-1)*x;i--){
      |        ^
      |        )
Language: C++

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

int main() {
    int64_t x;
    cin>>x;
    for(int64_t i=1;i<133;i++){
        for(int64_t j=1;j<133;j++){
           int64_t a_jou = pow(i,5);
           int64_t b_jou = pow(j,5); 
        } 
        if (x!=a_jou-b_jou){
               continue;
           } else{
               cout << a_jou <<" "<<  b_jou<<endl;
               break;
           }
    }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:16: error: 'a_jou' was not declared in this scope
   12 |         if (x!=a_jou-b_jou){
      |                ^~~~~
a.cc:12:22: error: 'b_jou' was not declared in this scope
   12 |         if (x!=a_jou-b_jou){
      |                      ^~~~~
Language: C++

#include <iostream>
#include <algorithm>
#include <fstream>
#include <stack>
#include <queue>
#include <string>
#include <deque>
#include <map>
#define  endl "\n"
using namespace std;

/*void FastInput() {
    ios_base::sync_with_stdio(false);
    cin.tie(NULL);
}
void OutputFile()
{
    freopen("output.txt","w",stdout);
}*/





//int a[100005];
//pair<int,int>p[100005];
int main()
{
    int x;
    cin>>x;
    int a=x-1;
    int i=1;
    if(x==1)
    {
        cout<<"0 -1"<<endl;
        return 0;
    }
    while(1)
    {
        if((int)pow(i,5)==a)
        {
            cout<<i<<" "<<-1;
            return 0;
        }
        i++;
    }

    return 0;
}



Compiler output:
a.cc: In function 'int main()':
a.cc:40:17: error: 'pow' was not declared in this scope
   40 |         if((int)pow(i,5)==a)
      |                 ^~~
Language: C++

#include<bits/stdc++.h>
using namespace std;
#define rep(i,n) for(ll i=0;i<(n);i++)
#define rrep(i,m,n) for(int i=(m);i<(n);i++)
#define fore(i,a) for(auto &i:a)
#define debug(a,b) cout << "debug : " << a << " , "<< b << endl
using ll=long long;
const ll INF=1LL<<60;
const ll mod=1E9+7;


int main(){
  ll x;
  cin >> x;
  bool f=true;
  rep(i,300){
    rep(j,300){
      if(i*i*i*i*i+j*j*j*j*j==x&&f){cout << i << " "<< -j;f=false;}
      if(i*i*i*i*i-j*j*j*j*j==x&&f){cout << i << " "<< j;f=false}
    }
  }
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:19:65: error: expected ';' before '}' token
   19 |       if(i*i*i*i*i-j*j*j*j*j==x&&f){cout << i << " "<< j;f=false}
      |                                                                 ^
      |                                                                 ;
Language: C++

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

using namespace std;



int main(){
    long long a, b, x;
    cin >> x;
    int absMax = pow(x, 0.25) + 1;
    for(a = -absMax; a!= absMax; a++)
        for(b = -absMax; b!= absMax; b++){
            if(a*a*a*a*a - b*b*b*b*b == x){
                goto endloop;
            }
        }
    endloop: cout << a << " " << b << endl;
    return 0 ;


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

#include <iostream>
#include <algorithm>
#include <fstream>
#include <stack>
#include <queue>
#include <string>
#include <deque>
#include <map>
#define  endl "\n"
using namespace std;

void FastInput() {
    ios_base::sync_with_stdio(false);
    cin.tie(NULL);
}
void OutputFile()
{
    freopen("output.txt","w",stdout);
}


string bigIntegr(string x,string y)
{
    string ans="";
    reverse(x.begin(),x.end());
    reverse(y.begin(),y.end());
    int result=0,carry=0,temp=0;

    for(int i=0;i<x.length();i++)
    {
        temp=x[i]-'0'+y[i]-'0';
        temp+=carry;
        result=temp%10;
        carry=temp/10;
        ans.push_back(result+'0');

    }
    if(carry>0)
        ans.push_back(carry+'0');
    reverse(ans.begin(),ans.end());
    return ans;
}

int root_calc(int num,int n)
{
  int temp_num;
  for(int i=2;i<=num/2;++i)
  {
    temp_num=1;
    for(int j=1;j<=n;++j)
      temp_num*=i;
    if(temp_num==num)
      return i;
  }
  return -1;
}

//int a[100005];
//pair<int,int>p[100005];
int main()
{
    int x;
    cin>>x;
    int a=x-1;
    int i=1;
    if(x==1)
    {
        cout<<"0 -1"<<endl;
        return 0;
    }
    while(1)
    {
        if((int)pow(i,5)==a)
        {
            cout<<i<<" "<<-1;
            return 0;
        }
        i++;
    }

    return 0;
}



Compiler output:
a.cc: In function 'int main()':
a.cc:73:17: error: 'pow' was not declared in this scope
   73 |         if((int)pow(i,5)==a)
      |                 ^~~
Language: C++

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

int main() {
  long long int x;
  cin>> x;
  int iti,ni;
  iti =ni=0;
  
  vector<long long int> koho(200);
  for (int i = 0; i < 200; i++) {koho.at(i)=i*i*i*i*i;}
  for (int i = 1; i < 200; i++) {
    for(int j = 0; j < i; j++) {
      if(x-koho.at(i)==koho.at(j))
      {iti=i;ni=j;break;}
    }
    if(x-koho.at(iti)==koho.at(ni)) break;
      }
  if(iti>0&&ni>0){cout<<iti<<" -"<<ni;}
  else if(iti>0&&ni==0){cout<<iti<<" "<<ni;}
  else {
    for (int i = 1; i < 200; i++) {
    for(int j = 0; j < i; j++) {
      if(koho.at(i)-x==koho.at(j))
      { iti=i;ni=j;break;}
    }
       if(koho.at(iti)-x==koho.at(ni)) break;
      }
    cout<<iti << " "<<ni<<;
  }
}  



Compiler output:
a.cc: In function 'int main()':
a.cc:29:27: error: expected primary-expression before ';' token
   29 |     cout<<iti << " "<<ni<<;
      |                           ^
Language: C++

#include<iostream>
#include<math.h>
#include<set>
#include<string.h>
#define ll long long
using namespace std;


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

  ll pent[100]={};
  for(ll i=0; i<100; i++) pent[i] = i*i*i*i*i;


  ll plus, minus;
  for(int i=0; i<100; i++)
    for(int j=0; j<100; j++){
      if(pent[i] == pent[j]+X){
        cout << i << " " << j << endl;
        return 0;
      }
      if(pent[i] == X-pent[j]){
        cout << i << " " << -j << endl;
        return 0;
      }
    }
  //cout << plus <<  " " <<minus << " "<< pent[10]<<  endl;
  return 0;
}
ackey:166$ g++ d2.cpp -o d2
ackey:166$ cat d2.cpp
#include<iostream>
#include<math.h>
#include<set>
#include<string.h>
#define ll long long
using namespace std;


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

  ll pent[1000]={};
  for(ll i=0; i<100; i++) pent[i] = i*i*i*i*i;


  ll plus, minus;
  for(int i=0; i<1000; i++)
    for(int j=0; j<1000; j++){
      if(pent[i] == pent[j]+X){
        cout << i << " " << j << endl;
        return 0;
      }
      if(pent[i] == X-pent[j]){
        cout << i << " " << -j << endl;
        return 0;
      }
    }
  //cout << plus <<  " " <<minus << " "<< pent[10]<<  endl;
  return 0;
}

Compiler output:
a.cc:32:1: error: 'ackey' does not name a type
   32 | ackey:166$ g++ d2.cpp -o d2
      | ^~~~~
a.cc:42:5: error: redefinition of 'int main()'
   42 | int main(){
      |     ^~~~
a.cc:9:5: note: 'int main()' previously defined here
    9 | int main(){
      |     ^~~~
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main()
{
long long   int n;
  cin>>n;
long long int poe[1021]={0};
for(int I=0;I<1021;I++)
 poe[I]=I*I*I*I*I;
int uu=0;
for(int i=0;i<1021;i++)
 {
    for(int j=0;j<=1020;j++)
        {
            if(poe[i]-poe[j]==x)
              { cout<<i<<" "<<j<<endl;uu=1;break;}
             if(poe[i]+poe[j]==x)
             {  cout<<i<<" "<<"-"<<j<<endl;uu=1;break;}
        }
     if(uu==1) break;
 }
  return 0;
} 

Compiler output:
a.cc: In function 'int main()':
a.cc:15:31: error: 'x' was not declared in this scope
   15 |             if(poe[i]-poe[j]==x)
      |                               ^
a.cc:17:32: error: 'x' was not declared in this scope
   17 |              if(poe[i]+poe[j]==x)
      |                                ^
Language: C++

#include <iostream>
#include <cstdio>
#include <cstring>
#include <vector>
#include <map>
#include <algorithm>

using namespace std;
using LL = long long;

map<LL, LL> v;

int main()
{
	LL x;
	scanf("%lld", &x);

	int x1 = 0, x2 = 0;
	for (int i = -500; i <= 500; ++i)
	{
		for (int j = -500; j <= 500; ++j)
		{
			if ((LL)pow(i, 5) - (LL)pow(j, 5) == x)
			{
				x1 = i, x2 = j;
				goto here;
			}
		}
	}
here:;
	cout << x1 << " " << x2 << endl;

	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:23:33: error: 'pow' was not declared in this scope
   23 |                         if ((LL)pow(i, 5) - (LL)pow(j, 5) == x)
      |                                 ^~~
Language: C++

#include <bits/stdc++.h>
#include <string>
#include <stdio.h>
#include <cstdlib>
#include <cmath>
#include <math.h>

using namespace std;

int main() {
    long a, b, x;
    float p ;
    cin >> x;
    for (int i =0; i >=0;i ++){
        p = pow(i^5+x,0.2);
        if (p == floor(p)){
            cout << pow(i^5+x,0.2) << i;
            break;
        }
    }
   cout << ;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:21:12: error: expected primary-expression before ';' token
   21 |    cout << ;
      |            ^
Language: C++

#include <bits/stdc++.h>
#define f(i,j,k) for(int i=j;i<k;i++)
using namespace std;
int main(){
    long long n,a=0,b,sum;
    cin>>n;
    vector <long long> y;
    for(int i=1,i<=sqrt(n);i++){
        if(n%i==0){
            y.push_back(i);
        }
    }
     while(1){
        f(i,0,y.size()){
            b=a-y[i];
            sum=a*a*a*a+a*a*a*b+a*a*b*b+a*b*b*b+b*b*b*b;
            if(sum==n/y[i]){
                cout<<a<<" "<<b<<endl;
                return 0;
            }
        }
        a++;
    }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:18: error: expected ';' before '<=' token
    8 |     for(int i=1,i<=sqrt(n);i++){
      |                  ^~
      |                  ;
a.cc:8:18: error: expected primary-expression before '<=' token
    8 |     for(int i=1,i<=sqrt(n);i++){
      |                  ^~
Language: C++

#include<bits/stdc++.h>
#define rep(i,n) for (int i = 0; i < n; i++)
#define PI 3.1415926535897932384626433832795028
#define INF (1<<29)
#define LINF (1LL<<60)
using namespace std;
using INT = long long;
using P = pair<int,int> ;

int main(){
    INT x;
    cin >> x;
    for(INT i=1;i<=64;i++){
        INT a = i*i*i*i*i;
        for(INT j=-64;j<=64;j++){
            INT b = j*j*j*j*j;
            if(a-b==x) {
                cout << i << " " << j << endl;
                return ;
            }
        }
    }
	return 0;
}



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

#include <bits/stdc++.h>

using namespace std;
#define rep(i,n) for (int i =0;i<(n);++i)
using ll = long long;
using P = pair<int, int>;
//int choose2(ll x){
	//	return x*(x-1)/2;}
const int INF = 1001001001;

int main() {
	int A,B;
	ll X, tmp;
	cin >>X;
	A = 0;
	int flug = 0;
	rep(i, 100) {
		rep(j, i) {
			if ((i*i*i*i*i+j*j*j*j*j) == X) {
				flug = 1;
				A = i;
				B = j * (-1);
				break;
			}
		}
	}
	while (flug == 0) {
		A++;
		B = 0;
		tmp = 0;
		while (tmp < (X / (A - B))) {
			tmp = (A + B) * (pow(A, 3) + pow(B, 3)) + A * A * B * B;
			if ((X % tmp == 0) && (X / tmp == A - B)) {
				flug = 1;
				break;
			}
			if (B >= A-1)break;
			else B++;
		}
	}
		
		
	cout << A << " " << B;


Compiler output:
a.cc: In function 'int main()':
a.cc:43:31: error: expected '}' at end of input
   43 |         cout << A << " " << B;
      |                               ^
a.cc:11:12: note: to match this '{'
   11 | int main() {
      |            ^
Language: C++

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

int main(){
    int x;
    cin >> x;
    if (x%5==0){
        int q=x/5;
        int p=x/q;
        int b=(q-p^4)/5;
        int a=b+p
        cout << a" "b <<endl;
    
    }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:9: error: expected ',' or ';' before 'cout'
   12 |         cout << a" "b <<endl;
      |         ^~~~
Language: C++

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

int main(){
  int X;
  cin >> X;
  for(int i = -100000; i < 500000; i++){
    for(int j = -1000000 j < i; j++){
      if((i*i*i*i*i - j*j*j*j*j) == X){
        cout << i << " " << j << endl;
        return 0;
      }
    }
  }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:25: error: expected ';' before 'j'
    8 |     for(int j = -1000000 j < i; j++){
      |                         ^~
      |                         ;
Language: C++

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

int main(){
    int x;
    cin >> x;
    if (x%5==0){
        int q=x/5;
        int p=x/q;
        int b=(q-p^4)/5;
        int a=b+p
        cout << a" "b <<endl
    
    }
    "for (int i=2; i<floor(sqrt(x)+1; i++){
        if (x%i!=0) continue;
        long long ex=0; //指数
        while (x%a==0){
            ++ex;
            x/=a;
        }
        res.push_back({a,ex});
    }
    if (N!=1) res.push_back({N, 1});
    return res;"
}

Compiler output:
a.cc:15:5: warning: missing terminating " character
   15 |     "for (int i=2; i<floor(sqrt(x)+1; i++){
      |     ^
a.cc:15:5: error: missing terminating " character
   15 |     "for (int i=2; i<floor(sqrt(x)+1; i++){
      |     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
a.cc:25:16: warning: missing terminating " character
   25 |     return res;"
      |                ^
a.cc:25:16: error: missing terminating " character
a.cc: In function 'int main()':
a.cc:12:9: error: expected ',' or ';' before 'cout'
   12 |         cout << a" "b <<endl
      |         ^~~~
a.cc:16:15: error: 'i' was not declared in this scope
   16 |         if (x%i!=0) continue;
      |               ^
a.cc:16:21: error: continue statement not within a loop
   16 |         if (x%i!=0) continue;
      |                     ^~~~~~~~
a.cc:18:18: error: 'a' was not declared in this scope
   18 |         while (x%a==0){
      |                  ^
a.cc:22:9: error: 'res' was not declared in this scope
   22 |         res.push_back({a,ex});
      |         ^~~
a.cc:22:24: error: 'a' was not declared in this scope
   22 |         res.push_back({a,ex});
      |                        ^
a.cc: At global scope:
a.cc:24:5: error: expected unqualified-id before 'if'
   24 |     if (N!=1) res.push_back({N, 1});
      |     ^~
a.cc:24:35: error: expected unqualified-id before ')' token
   24 |     if (N!=1) res.push_back({N, 1});
      |                                   ^
a.cc:25:5: error: expected unqualified-id before 'return'
   25 |     return res;"
      |     ^~~~~~
a.cc:26:1: error: expected declaration before '}' token
   26 | }
      | ^
Language: C++

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

int main() {
  int X;
  cin >> X;
  int A,B;
  
  if (std::pow(A,5)-std::pow(B,5) = X){
    cout << A << B << endl;
  }
    
}


Compiler output:
a.cc: In function 'int main()':
a.cc:9:20: error: lvalue required as left operand of assignment
    9 |   if (std::pow(A,5)-std::pow(B,5) = X){
      |       ~~~~~~~~~~~~~^~~~~~~~~~~~~~
Language: C++

#include <bits/stdc++.h>

using namespace std;

map< int64_t, int > prime_factor(int64_t n) {
	map< int64_t, int > ret;
	for (int64_t i = 2; i * i <= n; i++) {
		while (n % i == 0) {
			ret[i]++;
			n /= i;
		}
	}
	if (n != 1) ret[n] = 1;
	return ret;
}

int main() {
	map<long long , int > a;
	long long x;
	cin >> x;
	a=prime_factor(x);
	a.insert(make_pair(1, 1));
	auto iter = a.begin();

	while (1) {

		long long aa = 0;
		long long bb = 0;
		for (long i = 0; i <= 100; i++) {
			aa = i;
			bb = aa-iter->first;
			if (pow(aa, 5) - pow(bb, 5) == x) {
				cout << aa << " " << bb << endl;
				return 0;
			}
			if (pow(aa, 5) > x) { break; }
		}
		if (iter == a.end()) { break; }
		iter=next(iter, 1);
	}
}

Compiler output:
a.cc: In function 'int main()':
a.cc:21:25: error: no match for 'operator=' (operand types are 'std::map<long long int, int>' and 'std::map<long int, int>')
   21 |         a=prime_factor(x);
      |                         ^
In file included from /usr/include/c++/14/map:63,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:152,
                 from a.cc:1:
/usr/include/c++/14/bits/stl_map.h:331:7: note: candidate: 'std::map<_Key, _Tp, _Compare, _Alloc>& std::map<_Key, _Tp, _Compare, _Alloc>::operator=(const std::map<_Key, _Tp, _Compare, _Alloc>&) [with _Key = long long int; _Tp = int; _Compare = std::less<long long int>; _Alloc = std::allocator<std::pair<const long long int, int> >]'
  331 |       operator=(const map&) = default;
      |       ^~~~~~~~
/usr/include/c++/14/bits/stl_map.h:331:17: note:   no known conversion for argument 1 from 'std::map<long int, int>' to 'const std::map<long long int, int>&'
  331 |       operator=(const map&) = default;
      |                 ^~~~~~~~~~
/usr/include/c++/14/bits/stl_map.h:335:7: note: candidate: 'std::map<_Key, _Tp, _Compare, _Alloc>& std::map<_Key, _Tp, _Compare, _Alloc>::operator=(std::map<_Key, _Tp, _Compare, _Alloc>&&) [with _Key = long long int; _Tp = int; _Compare = std::less<long long int>; _Alloc = std::allocator<std::pair<const long long int, int> >]'
  335 |       operator=(map&&) = default;
      |       ^~~~~~~~
/usr/include/c++/14/bits/stl_map.h:335:17: note:   no known conversion for argument 1 from 'std::map<long int, int>' to 'std::map<long long int, int>&&'
  335 |       operator=(map&&) = default;
      |                 ^~~~~
/usr/include/c++/14/bits/stl_map.h:349:7: note: candidate: 'std::map<_Key, _Tp, _Compare, _Alloc>& std::map<_Key, _Tp, _Compare, _Alloc>::operator=(std::initializer_list<std::pair<const _Key, _Val> >) [with _Key = long long int; _Tp = int; _Compare = std::less<long long int>; _Alloc = std::allocator<std::pair<const long long int, int> >]'
  349 |       operator=(initializer_list<value_type> __l)
      |       ^~~~~~~~
/usr/include/c++/14/bits/stl_map.h:349:46: note:   no known conversion for argument 1 from 'std::map<long int, int>' to 'std::initializer_list<std::pair<const long long int, int> >'
  349 |       operator=(initializer_list<value_type> __l)
      |                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
Language: C++

#include<iostream>
#include<string>
#define MAX 100
typedef long long LL;
using namespace std;

int main()
{
	LL a, b;
	LL x;
	cin >> x;
	for (LL i = -MAX; i < MAX; i++)
	{
		for (LL j = -MAX; j < MAX; j++)
		{
			if (pow(i, 5) - pow(j, 5) == x)
			{
				a = i;
				b = j;
				break;
			}
		}
	}
	cout << a << ' '<< b << endl;
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:16:29: error: 'pow' was not declared in this scope
   16 |                         if (pow(i, 5) - pow(j, 5) == x)
      |                             ^~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main(){
  long long x;
  cin >> x;
  int x_5;
  x_4 = pow(x,0.5)+1;
  
  for(long long i = 0; i < x; i++) {
    long long b = pow(pow(x-pow(i,5),0.2),5);
    long long a = (long long)pow(i,5);
    if(b+a == x){
      cout << i << " " << -(long long)pow(b,0.2) << endl;
      break;
    }
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:3: error: 'x_4' was not declared in this scope; did you mean 'x_5'?
    7 |   x_4 = pow(x,0.5)+1;
      |   ^~~
      |   x_5