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

#include <iostream>
#include <string>
#include <vector>
#include <algorithm>
#include <utility>
#define in(n, m) for (ll i=n; i<m;i++)
#define inj(n, m)for (ll j=n; j<m;j++)
#define ink(n, m)for (ll k=n; k<m;k++)
using namespace std;
using ll=long long;
using P =pair<ll, ll>;
const ll INF = 1LL << 60;
template<class T> inline bool chmax(T& a, T b) { if (a < b) { a = b; return true; } return false; }
template<class T> inline bool chmin(T& a, T b) { if (a > b) { a = b; return true; } return false; }


int main() {
	ll X;
	cin >> X;
	ll A, B;
	in(-118, 120) {
		inj(i, 120) {
			if (pow(j, 5) - pow(i, 5) == X) {
				A = j;
				B = i;
			}
		}
	}

	cout << A << " " << B << endl;
	return 0;
}


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

#include <bits/stsdc++.h>
using namespace std;
 
int main() {
  long long x;
  cin >> x;
  for(int i = 0; i < 70; i++){
    for(int j = -70; j < 70; j++){
      if(pow(i,5)-pow(j,5)==x){
        cout << i << " " << j;
        return 0;
      }
    }
  }
}

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

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

int main() {
  long long x;
  cin >> x;
  for(int i = 0; i < 70; i++){
    for(int j = -70; j < 70; j++){
      if(pow(i,5)-pow(j,5)==x){
        cout << i << " " < j;
        return 0;
      }
    }
  }
}

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

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

int main(void){

    int x;
    int a,b;
    int tmp;
    int i,j;

    if(scanf("%d",&x) != 1) return 1;

    for(i=0;i<=100;i++){
        for(j=0;j<=100;j++){
            if(pow(i,5) - pow(j,5) == x){
                a = i;
                b = j;
                break;
            }else if(pow(i,5) - pow(-j,5) == x){
                a = i;
                b = -j;
                break;
            }

        }
    }
    printf("%d %d",a,b);
    return 0;
}


Compiler output:
main.c:1:2: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token
    1 | e<stdio.h>
      |  ^
main.c: In function 'main':
main.c:11:8: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
   11 |     if(scanf("%d",&x) != 1) return 1;
      |        ^~~~~
main.c:3:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
    2 | #include<math.h>
  +++ |+#include <stdio.h>
    3 | 
main.c:11:8: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
   11 |     if(scanf("%d",&x) != 1) return 1;
      |        ^~~~~
main.c:11:8: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:27:5: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
   27 |     printf("%d %d",a,b);
      |     ^~~~~~
main.c:27:5: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:27:5: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:27:5: note: include '<stdio.h>' or provide a declaration of 'printf'
Language: C++

#include<iostream>
#include<algorithm>
#include<vector>
using namespace std;
typedef long long ll;
typedef pair<ll, ll> P;
ll inf = 1000000007;
int main() {
	ll x;
	cin >> x;
	for (int i = -300; i <= 300; i++) {
		for (int j = -300; j <= 300; 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:14:29: error: 'pow' was not declared in this scope
   14 |                         if (pow(i,5) -pow(j,5)== x) {
      |                             ^~~
Language: C++

#include <iostream>
#include <algorithm>
#include <string>
#include <vector>
#include <cmath>
#include <map>
#include <queue>
#include <set>
using namespace std;
#define ll long long
#define rep(i, n) for(int i = 0; i < n; i++)
#define P pair<int, int>

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

Compiler output:
a.cc: In function 'int main()':
a.cc:19:34: error: 'j' was not declared in this scope
   19 |         ll tmp = pow(i, 5) - pow(j, 5);
      |                                  ^
Language: C++

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


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

	bool isfinish = false;
	map<long, long> m;
	for (long i = -118; i <= 119; i++)
	{
		long i5;
		if (m.count(i) == 0)
		{
			i5 = (long)pow((double)i, 5.0);
			m.emplace(make_pair(i, i5));
		}
		else
		{
			i5 = m.at(i);
		}

		for (long j = -118; j <= 119; j++)
		{
			long j5;
			if (m.count(j) == 0)
			{
				j5 = (long)pow((double)j, 5.0);
				m.emplace(make_pair(j, j5));
			}
			else
			{
				j5 = m.at(j);
			}

			if (i5 - j5 == X)
			{
				cout << i << " " << j << endl;
				isfinish = true;
				break;
			}
		}

		if (isfinish)
			break;
	}



	return 0;
}



Compiler output:
a.cc: In function 'int main()':
a.cc:18:36: error: 'pow' was not declared in this scope
   18 |                         i5 = (long)pow((double)i, 5.0);
      |                                    ^~~
a.cc:31:44: error: 'pow' was not declared in this scope
   31 |                                 j5 = (long)pow((double)j, 5.0);
      |                                            ^~~
Language: C++

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


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

	bool isfinish = false;
	map<long, long> m;
	for (long i = -118; i <= 119; i++)
	{
		long i5;
		if (m.count(i) == 0)
		{
			i5 = pow(i, 5);
			m.emplace(make_pair(i, i5));
		}
		else
		{
			i5 = m.at(i);
		}

		for (long j = -118; j <= 119; j++)
		{
			long j5;
			if (m.count(j) == 0)
			{
				j5 = pow(j, 5);
				m.emplace(make_pair(j, j5));
			}
			else
			{
				j5 = m.at(j);
			}

			if (i5 - j5 == X)
			{
				cout << i << " " << j << endl;
				isfinish = true;
				break;
			}
		}

		if (isfinish)
			break;
	}


	int wait;
	cin >> wait;

	return 0;
}



Compiler output:
a.cc: In function 'int main()':
a.cc:18:30: error: 'pow' was not declared in this scope
   18 |                         i5 = pow(i, 5);
      |                              ^~~
a.cc:31:38: error: 'pow' was not declared in this scope
   31 |                                 j5 = pow(j, 5);
      |                                      ^~~
Language: C++

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

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

    ll ans_a = 0;
    ll ans_b = 0;
    for(int i = -200; i <= 200; i++){
        ll k = pow(i, 5);
        k -= x;
        if(k < 0){
            k = 0 - k;
            ll z = pow(k, 1.0 / 5.0);
            if(pow(z, 5) == k){
                ans_a = i;
                ans_b = 0 - z;
                break;
            }
        }else{
            ll z = pow(k, 1.0 / 5.0);
            if(pow(z, 5) == k){
                ans_a = i;
                ans_b = 0 - z;
                break;
            }
        }
    }

    cout << ans_a << " " << ans_b << endl;
}#include<bits/stdc++.h>
using namespace std;
typedef long long ll;

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

    ll ans_a = 0;
    ll ans_b = 0;
    for(int i = -200; i <= 200; i++){
        ll k = pow(i, 5);
        k -= x;
        if(k < 0){
            k = 0 - k;
            ll z = pow(k, 1.0 / 5.0);
            if(pow(z, 5) == k){
                ans_a = i;
                ans_b = 0 - z;
                break;
            }
        }else{
            ll z = pow(k, 1.0 / 5.0);
            if(pow(z, 5) == k){
                ans_a = i;
                ans_b = 0 - z;
                break;
            }
        }
    }

    cout << ans_a << " " << ans_b << endl;
}

Compiler output:
a.cc:33:2: error: stray '#' in program
   33 | }#include<bits/stdc++.h>
      |  ^
a.cc:33:3: error: 'include' does not name a type
   33 | }#include<bits/stdc++.h>
      |   ^~~~~~~
a.cc:37:5: error: redefinition of 'int main()'
   37 | int main(){
      |     ^~~~
a.cc:5:5: note: 'int main()' previously defined here
    5 | int main(){
      |     ^~~~
Language: C++

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


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

	bool isfinish = false;
	map<long, long> m;
	for (long i = -118; i <= 119; i++)
	{
		long i5;
		if (m.count(i) == 0)
		{
			i5 = (long)pow(i, 5);
			m.emplace(make_pair(i, i5));
		}
		else
		{
			i5 = m.at(i);
		}

		for (long j = -118; j <= 119; j++)
		{
			long j5;
			if (m.count(j) == 0)
			{
				j5 = (long)pow(j, 5);
				m.emplace(make_pair(j, j5));
			}
			else
			{
				j5 = m.at(j);
			}

			if (i5 - j5 == X)
			{
				cout << i << " " << j << endl;
				isfinish = true;
				break;
			}
		}

		if (isfinish)
			break;
	}


	return 0;
}



Compiler output:
a.cc: In function 'int main()':
a.cc:18:36: error: 'pow' was not declared in this scope
   18 |                         i5 = (long)pow(i, 5);
      |                                    ^~~
a.cc:31:44: error: 'pow' was not declared in this scope
   31 |                                 j5 = (long)pow(j, 5);
      |                                            ^~~
Language: C++

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


int main(){
  ll x;
  cin>>x;
  for(ll i=-5e3;i<=5e3;i++){
    ll b5=pow(i,5);
    ll a=pow(x+b5,0.2);
    if((11)pow(a,5)==x+b5){
      cout<<a<<' '<<i;
    }
  }
  

  
 }

Compiler output:
a.cc: In function 'int main()':
a.cc:12:12: error: expected ')' before 'pow'
   12 |     if((11)pow(a,5)==x+b5){
      |       ~    ^~~
      |            )
Language: Java

//package D;

import java.io.*;
import java.util.*;
import static java.lang.Math.*;

public class Solution {
    long X;
    static long MX = 100000000000007L;
    List<Long> ps, ns;

    void solve(){
        ps = new ArrayList<>(); ns = new ArrayList<>();
        ps.add(0L); ns.add(0L);
        for(long a=1; pow(a, 5) < MX; a++){
            ps.add((long)pow(a, 5));
        }
        for(long a=-1; pow(a, 5)*-1 < MX; a--){
            ns.add((long)pow(a, 5));
        }
        for(int i=0; i<ps.size(); i++){
            for(int j=i; j<ps.size(); j++){
                long ai = ps.get(i), aj = ps.get(j);
                if(aj - ai == X){
                    System.out.println(j + " " + i);
                    return;
                }
            }
        }

        for(int i=0; i<ps.size(); i++){
            for(int j=0; j<ns.size(); j++){
                long ai = ps.get(i), aj = ns.get(j);
                if(ai - aj == X){
                    System.out.println(i + " " + j*-1);
                    return;
                }
            }
        }
    }

    public Solution() throws Exception {
        //System.setIn(new FileInputStream("d.in"));
        Scanner sc = new Scanner(new BufferedReader(new InputStreamReader(System.in)));
        X = sc.nextLong();
        solve();
    }

    static public void main(String[] args) throws Exception {
        Solution m = new Solution();
    }
}


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


import java.io.*;
import java.util.*;
import static java.lang.Math.*;

public class Solution {
    long X;
    static long MX = 100000000000007L;
    List<Long> ps, ns;

    void solve(){
        ps = new ArrayList<>(); ns = new ArrayList<>();
        ps.add(0L); ns.add(0L);
        for(long a=1; pow(a, 5) < MX; a++){
            ps.add((long)pow(a, 5));
        }
        for(long a=-1; pow(a, 5)*-1 < MX; a--){
            ns.add((long)pow(a, 5));
        }
        for(int i=0; i<ps.size(); i++){
            for(int j=i; j<ps.size(); j++){
                long ai = ps.get(i), aj = ps.get(j);
                if(aj - ai == X){
                    System.out.println(j + " " + i);
                    return;
                }
            }
        }

        for(int i=0; i<ps.size(); i++){
            for(int j=0; j<ns.size(); j++){
                long ai = ps.get(i), aj = ns.get(j);
                if(ai - aj == X){
                    System.out.println(i + " " + j*-1);
                    return;
                }
            }
        }
    }

    public Solution() throws Exception {
        //System.setIn(new FileInputStream("d.in"));
        Scanner sc = new Scanner(new BufferedReader(new InputStreamReader(System.in)));
        X = sc.nextLong();
        solve();
    }

    static public void main(String[] args) throws Exception {
        Solution m = new Solution();
    }
}


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

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

int main(void) {
  long long int x;
  long long int a,b;
  scanf("%lld", &x);
  //scanf("%d", &b):
  int m;
  int tmp;
  int flag=0;

  for(int i = 0;i<120;i++){
    a = i+1;
    tmp = a;
    a = a*a*a*a*a;
    b = a-x;
    if(b > 0){

      for(int j = 1;j<100;j++){
        int c = 0;
        c = b-(j*j*j*j*nnnn);
        if(c == 0){
          m = j;
          flag =1;
          break;
        }
        }
        if(flag == 1){
          break;
      }
    }
    else{
    for(int k = -1;k > -100;k--){
      int d = 0;
      d = b-(k*k*k*k*k);
      if(d == 0){
        m = k;
        flag =1;
        break;
      }
    }
    if(flag == 1){
      break;
    }
  }

  }
  printf("%d %d\n",tmp,m);



  return 0;
}


Compiler output:
main.c: In function 'main':
main.c:24:24: error: 'nnnn' undeclared (first use in this function)
   24 |         c = b-(j*j*j*j*nnnn);
      |                        ^~~~
main.c:24:24: note: each undeclared identifier is reported only once for each function it appears in
Language: C++

#include <iostream>

long long x;

using namespace std;

long long c[400];
map<long long, int> d;

int main()
{
	cin >> x;
    for (long long i = 0; i <= 120; i++) c[i] = i * i * i * i * i;
    for (int i = 0; i <= 120; i++) d[c[i]] = i;
    for (int a = 0; a <= 120; a++)
    {
      long long wait = c[a] - x;
      if (d.find(wait) != d.end()) cout << a << " " << d[wait], exit(0);
      if (d.find(-wait) != d.end()) cout << a << " " << -d[wait], exit(0);
    }
}


Compiler output:
a.cc:8:1: error: 'map' does not name a type
    8 | map<long long, int> d;
      | ^~~
a.cc: In function 'int main()':
a.cc:14:36: error: 'd' was not declared in this scope
   14 |     for (int i = 0; i <= 120; i++) d[c[i]] = i;
      |                                    ^
a.cc:18:11: error: 'd' was not declared in this scope
   18 |       if (d.find(wait) != d.end()) cout << a << " " << d[wait], exit(0);
      |           ^
a.cc:19:11: error: 'd' was not declared in this scope
   19 |       if (d.find(-wait) != d.end()) cout << a << " " << -d[wait], exit(0);
      |           ^
Language: C++

#pragma GCC optimize("O2")
// #include <bits/stdc++.h>
#include <iostream>
#include <vector>
#include <functional>
#include <numeric>
#include <algorithm>
using namespace std;
#define mod 1000000007
long long f_pow(long long a, long long b) {
	long long  res = 1, temp = a;
	while (b) {
		if (b & 1)res = res * temp % mod;
		temp = temp * temp % mod;
		b >>= 1;
	}
	return res;
}



int main() {
	ios::sync_with_stdio(0);
	cin.tie(0);
#ifndef ONLINE_JUDGE
	freopen("input.txt", "r", stdin);
	freopen("output.txt", "w", stdout);
#endif

	long long x ;
	cin >> x ;
	long long a , b ;
	for (long long i = -100 ; i <= 100 ; i++) {
		for (long long j = -100 ; j <= 100 ; j++) {
			if (f_pow(i, 5) - f_pow(j, 5) == x)
				// if (i * i * i * i * i - j * j * j * j * j  == x ) {
				a = i ;
			b = j ;
			break;
		}
	}
}

cout << a << " " << b << "\n";


return 0 ;
}


Compiler output:
a.cc:44:1: error: 'cout' does not name a type
   44 | cout << a << " " << b << "\n";
      | ^~~~
a.cc:47:1: error: expected unqualified-id before 'return'
   47 | return 0 ;
      | ^~~~~~
a.cc:48:1: error: expected declaration before '}' token
   48 | }
      | ^
Language: C++

//author: zekigurbuz (Zeki Gurbuz) 2020
#pragma GCC optimize ("O3")
#pragma GCC target ("sse4")
#include <bits/stdc++.h>
using namespace std;

typedef long long ll;
typedef pair<int,int> pii;

#define mp make_pair
#define pb push_back
#define lb lower_bound
#define all(x) begin(x),end(x)

const int N = 1e5 + 10;
const int M = 1e9 + 7;

ll gcd(ll a,ll b){return b?gcd(b,a%b):a;}
ll lcm(ll a,ll b){return a/gcd(a,b)*b;}

template<class T>void ckmin(T&a,T b){a=min(a,b);}
template<class T>void ckmax(T&a,T b){a=max(a,b);}

void precomp() {

}

ll five(ll x) {
	return x * x * x * x * x;
}


void solve() {
	ll x; cin >> x;
	for (ll a = -120LL; a <= 120LL; ++a) {
		for (ll b = =120LL; b <= 120LL; ++b) {
			if (five(a) - five(b) == x) {
				cout << a << " " << b << endl;
			}
		}
	}
}

int main() {
	ios_base::sync_with_stdio(0); cin.tie(0);
	precomp();
	int t = 1; // cin >> t;
	for (int i = 1; i <= t; ++i) {
		solve();
	}
	return 0;
}



Compiler output:
a.cc: In function 'void solve()':
a.cc:36:29: error: expected primary-expression before '=' token
   36 |                 for (ll b = =120LL; b <= 120LL; ++b) {
      |                             ^
Language: C++

#include <bits/stdc++.h>
#define ll long long
#define pii pair<int,int>
#define fastcin  ios_base::sync_with_stdio(false); cin.tie(NULL);
using namespace std;

int main(){

	fastcin
	
	ll x;
	cin >> x;	
	
	while(true){
		ll a = x + pow(d, 5);
		double b = pow(a, 1/5.0); 
		ll c = (ll)b;
		if(b-c == 0){
			cout << b << ' ' << d << endl;	
			break;
		}
		d--;
	}
	
	      
	return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:15:32: error: 'd' was not declared in this scope
   15 |                 ll a = x + pow(d, 5);
      |                                ^
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 main()
{
    int x;
    cin>>x;
    if(x==1)
    {
        cout<<"0 -1";
        return 0;
    }
    int f=x-1,s=-1;
    for(int i=1;i<100000;i++)
    {
        if(pow(i,5)==f)
        {
            cout<<i<<" "<<-1;
            return 0;
        }
    }



    return 0;
}



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

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

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

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

#include<bits/stdc++.h>
using namespace std;
#define int long long int
#define ld long double
#define mod 1000000007
#define endl "\n"
#define pb push_back
#define mp make_pair
#define ff first
#define ss second
#define MAXX 1000000000000000000

int32_t main()
{
    ios_base::sync_with_stdio(false);
	cin.tie(NULL);
	
	int x,i,j,n,m;
	cin >> x;
	for(i=1;i<=3987;i++)
	{
		n = pow(i,5);
		m = x - n;

		j = pwo(m, 0.2);

		if(pow(j,5) == m)
		{
			cout << i << " "<<j<<endl;
			return 0;
		}

	}
	
	
	
	return 0;
}

Compiler output:
a.cc: In function 'int32_t main()':
a.cc:25:21: error: 'pwo' was not declared in this scope; did you mean 'pow'?
   25 |                 j = pwo(m, 0.2);
      |                     ^~~
      |                     pow
Language: C++

#include <iostream>
#include <cmath>
using namespace std;
long long int a,b,X;
int main()
{
    cin>>X;
    for(b=-120;b<=120;b++)
    {
        for(a=-120;a<=120;a++)
        {
        if(aaaaa==X+bbbbb)
        {
            cout<<a<<" "<<b;
            return 0;
        }
        }
    }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:12: error: 'aaaaa' was not declared in this scope
   12 |         if(aaaaa==X+bbbbb)
      |            ^~~~~
a.cc:12:21: error: 'bbbbb' was not declared in this scope
   12 |         if(aaaaa==X+bbbbb)
      |                     ^~~~~
Language: C

#include<stdio.h>
#include<math.h.
int main(){
  int x;
  scanf("%d",&x);
  for (int i=-200;i<200;i++){
    for (int j=i+1;j<200;j++) {
      if (pow(i,5)-pow(j,5)==x) {
        printf("%d %d",i,j);
        return 0;
      }
    }
  }
}

Compiler output:
main.c:2:17: error: missing terminating > character
    2 | #include<math.h.
      |                 ^
main.c:2:9: fatal error: math.h.: No such file or directory
    2 | #include<math.h.
      |         ^
compilation terminated.
Language: C++

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

int main() {
    ll X;
    cin >> X;
    rep(i, 150){
        for(ll j=-i; j<=; 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:10:25: error: expected primary-expression before ';' token
   10 |         for(ll j=-i; j<=; j++){
      |                         ^
a.cc:11:37: error: 'x' was not declared in this scope
   11 |             if(i*i*i*i*i-j*j*j*j*j==x){
      |                                     ^
Language: C++

/*
auth - @sportykush
*/

#include <bits/stdc++.h>
#include <ext/pb_ds/assoc_container.hpp> 
#include <ext/pb_ds/tree_policy.hpp> 
 
using namespace __gnu_pbds;
using namespace std;
 
typedef long long int int;
typedef long double ld;
typedef tree<ll,null_type,less<ll>,rb_tree_tag,tree_order_statistics_node_update> ordered_set; 
 
//#define mp make_pair
#define bug(v)                    cerr<<#v<<" = "<<(v)<<endl;
#define ERASE(x)                  x.erase(unique(x.begin(),x.end()),x.end())
#define pb                        emplace_back
#define vii                       vector<int>
#define vll                       vector<ll>
#define vpll                      vector< pair <ll,ll> >
#define pll                       pair <ll,ll>
#define pii                       pair <int,int>
#define pq                        priority_queue< int >
#define khtm                      "\n"
#define F                         first
#define S                         second
#define fr(i,a,n)                 for(i=a;i<n;i++)
#define mem(arr,l)                memset(arr,l,sizeof arr)
#define ALL(x)                    x.begin(), x.end()
#define frr(i,a,n)                for(i=n-1;i>=a;i--)
#define fast                      ios::sync_with_stdio(0);cin.tie(0);cout.tie(0);
#define testcase                  ll T; cin>>T; while(T--)

int power(int a,int n)
{
 int res=1;
 while(n)
{
 if(n%2)
  res*=a;
  a=a*a;
  n/=2;
}
return res;
}

int32_t main()
{
    fast;
    int x;
    cin>>x;
    int a,b;
    int p,q;
    for(int i=1;i<=800;i++)
    {
        for(int j=-800;j<=800;j++)
        {
            a=power(i,(int)5);
            b=power(j,(int)5);
            if(a-b==x)
            {
              p=i;
              q=j;
             break;
             }
        }
        if(a-b==x)
         break;
    }
    cout<<p<<" "<<q<<"\n";
      return 0;
}


Compiler output:
a.cc:12:19: error: multiple types in one declaration
   12 | typedef long long int int;
      |                   ^~~
a.cc:12:23: error: declaration does not declare anything [-fpermissive]
   12 | typedef long long int int;
      |                       ^~~
a.cc:14:14: error: 'll' was not declared in this scope; did you mean 'ld'?
   14 | typedef tree<ll,null_type,less<ll>,rb_tree_tag,tree_order_statistics_node_update> ordered_set;
      |              ^~
      |              ld
a.cc:14:32: error: 'll' was not declared in this scope; did you mean 'ld'?
   14 | typedef tree<ll,null_type,less<ll>,rb_tree_tag,tree_order_statistics_node_update> ordered_set;
      |                                ^~
      |                                ld
a.cc:14:34: error: template argument 1 is invalid
   14 | typedef tree<ll,null_type,less<ll>,rb_tree_tag,tree_order_statistics_node_update> ordered_set;
      |                                  ^
a.cc:14:81: error: template argument 1 is invalid
   14 | typedef tree<ll,null_type,less<ll>,rb_tree_tag,tree_order_statistics_node_update> ordered_set;
      |                                                                                 ^
a.cc:14:81: error: template argument 3 is invalid
Language: C++

#include <bits/stdc++.h>
using namespace std;
#define mem(a, b) memset(a, (b), sizeof(a))
#define fore(i,a) for(int i=0;i<a;i++)
#define fore1(i,j,a) for(int i=j;i<a;i++)
#define print(ar) for(int i=0;i<ar.size();i++)cout<<ar[i]<<" ";
#define END cout<<'\n'
const double pi=acos(-1.0);
 
typedef pair<int, int> PII;
 
typedef vector<long long> VI;
 
typedef vector<string> VS;
 
typedef vector<PII> VII;
 
typedef vector<VI> VVI;
 
typedef map<int,int> MPII;
 
typedef set<int> SETI;
 
typedef multiset<int> MSETI;
 
typedef long int li;
 
typedef unsigned long int uli;
 
typedef long long int ll;
 
typedef unsigned long long int  ull;
ll fastexp (ll a, ll b, ll n) {
  ll res = 1;
  while (b) {
      if (b & 1) res = res*a%n;
      a = a*a%n;
      b >>= 1;
  }
  return res;
}
void fast(){
ios::sync_with_stdio(0);
cin.tie(0);
cout.tie(0);
}
//VI vect[2020202];
int main()
 {  fast();
	int t, n, k;

	    cin >> n;
	 fore1(i,-200,201){
       fore1(j.-200,201){
         if(pow(i,5)-pow(j,5)==n)
         {cout<<i<<" "<<j<<endl;break;)}}}
	  
	

Compiler output:
a.cc:54:24: error: macro "fore1" requires 3 arguments, but only 2 given
   54 |        fore1(j.-200,201){
      |                        ^
a.cc:5:9: note: macro "fore1" defined here
    5 | #define fore1(i,j,a) for(int i=j;i<a;i++)
      |         ^~~~~
a.cc: In function 'int main()':
a.cc:54:8: error: 'fore1' was not declared in this scope
   54 |        fore1(j.-200,201){
      |        ^~~~~
a.cc:56:43: error: expected '}' at end of input
   56 |          {cout<<i<<" "<<j<<endl;break;)}}}
      |                                           ^
a.cc:49:2: note: to match this '{'
   49 |  {  fast();
      |  ^
Language: C++

#include <bits/stdc++.h>
#include <algorithm>
using namespace std;
 
#define ll long long
#define int long long
#define rep(i,a,b) for (int i = a; i < b; ++i)
#define mod 1000000007
typedef pair<ll,ll> pll;
#define F first
#define S second
#define printer(v) for(auto f: v) cout<<f<<" "
#define pb push_back
#define mp make_pair
#define all(c) c.begin(), c.end()
#define ipair pair<int,int>
#define tr(container, it) for(typeof(container.begin()) it = container.begin(); it != container.end(); it++)

signed main(){
    ios_base::sync_with_stdio(false);
    cin.tie(NULL); cout.tie(NULL); 
    // cout << setprecision(12) << fixed;
    int x; cin>>x;
    for(int a=-1000; a<=1000; a++){
    	for(int b=-1000; b<=1000; 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:26:39: error: 'X' was not declared in this scope
   26 |                 if(pow(a,5)-pow(b,5)==X){
      |                                       ^
Language: C++

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

   int main()
   {
     long long int x;
     int flag=0,a,b;
     
     for(int i=-120;i<=120;i++)
       for(int j=-120;j<=120;j++)
         if(pow(i,5)-pow(j,5)==x)
         {
           flag=1;break;}
     if(flag == 1)
       cout<<i<<" "<<j;
     
     return 0;
   }

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

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

int main(){
	ios::sync_with_stdio(false);
	cin.tie(0);
	ll x;cin>>x;
	for(ll i=0;i<=200;i++){
		for(ll j=-200;j<=i;j++){
			if(i*i*i*i*i-j*j*j*j*j==x){cout<<i<<" "<<j<<'\n';break;}
		}
	}
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:9: error: 'll' was not declared in this scope
    7 |         ll x;cin>>x;
      |         ^~
a.cc:7:19: error: 'x' was not declared in this scope
    7 |         ll x;cin>>x;
      |                   ^
a.cc:8:15: error: expected ';' before 'i'
    8 |         for(ll i=0;i<=200;i++){
      |               ^~
      |               ;
a.cc:8:20: error: 'i' was not declared in this scope
    8 |         for(ll i=0;i<=200;i++){
      |                    ^
a.cc:9:23: error: expected ';' before 'j'
    9 |                 for(ll j=-200;j<=i;j++){
      |                       ^~
      |                       ;
a.cc:9:31: error: 'j' was not declared in this scope; did you mean 'jn'?
    9 |                 for(ll j=-200;j<=i;j++){
      |                               ^
      |                               jn
Language: C++

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

int main() {
  long long X;
  int Ansi, Ansj, A=0;
  cin >> X;
  for(int i=-200; i<=200; i++){
    for(int j=-200; j<=200; j++){
      if(pow(i,5)-pow(j,5)==X){
        Ansi=i;
        ANsj=j;
        A=1;
        break;
      }
    }
    if(A==1) break;
  }
   cout << Ansi << " " << Ansj << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:9: error: 'ANsj' was not declared in this scope; did you mean 'Ansj'?
   13 |         ANsj=j;
      |         ^~~~
      |         Ansj
Language: C++

#include<bits/stdc++.h>
 
#define rep(i,n) for(int i = 0;i < n;++i)
#define all(v) v.begin(),v.end()
using namespace std;
using ll = long long;
typedef pair<int,int> P;
 
const int INF = 1001001001;

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

    ll x;
    cin >> x;
    ll a,b;
    rep(i,400){
        rep(j,400){
            int ans,ansb;
            x = i - 200;
            y = j - 200;
            ans = x*x*x*x*x;

            ansb = y*y*y*y*y;

            if(ansb + ans == x){
                a = i;
                b = -j;
                break;
            }
            if(ans - ansb == x){
                a = i;
                b = j;
                break;
            }
        }
    }
    cout << a << " " << b << endl;
    cout << endl;
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:23:13: error: 'y' was not declared in this scope
   23 |             y = j - 200;
      |             ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef pair<int,int>P;
const double eps = 1e-8;
const int NINF = 0xc0c0c0c0;
const int INF  = 0x3f3f3f3f;
const ll  mod  = 1e9 + 7;
const ll  maxn = 1e6 + 5;

int main(){
	ios::sync_with_stdio(false);
	cin.tie(0);
	ll x;cin>>x;
	for(int i=0;i<=200;i++){
		for(int j=-200;j<=i;j++){
			if(pow(i,5)-pow(j,5)==x){cout<<i<<" "j<<'\n';break;}
		}
	}
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:17:59: error: unable to find string literal operator 'operator""j' with 'const char [2]', 'long unsigned int' arguments
   17 |                         if(pow(i,5)-pow(j,5)==x){cout<<i<<" "j<<'\n';break;}
      |                                                           ^~~~
Language: C++

#include <iostream>
using namespace std;
int main(){
  int x,a,b;
  bool ok = false;
  cin >> x;
  for(a=0;a<=100;a++){
    for(b=-100;b<=100;b++){
      if(pow(a,5)-pow(b,5)==x){
        ok = true;
        break;
      }
    }
    if(ok){
      break;
    }
  }
  cout << a << b;
}

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

#include <iostream>
#include <string>
#include <vector>
 
using namespace std;
int main(void) {
  long long x;
  int a = 0, b = 0;
  int flag = 0;
  cin >> x;
  long long m[1001];
  for (int i = 0; i <= 1000; i++) {
  	m[i] = i*i*i*i*i;
  }
  
  for (int i = 0; i < 1001; i++) {
    for (int j = 0; j < 1001; j++) {
    	if (m[i] - m[j] == x){
          a = i;
          b = j;
          flag = 1;
          break;
        } else if (m[i] + m[j] == x){
          a = i;
          b = j;
          flag = 1;
          break;
    }
    if (flag) {
       break;
    }
  }
  
  cout << a << " " << b << endl;
  return 0;
}

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

#include<iostream>
#include<cstring>
#include<vector>
#include<cstdio>
#include<algorithm>
using namespace std;
typedef long long ll;
ll pow(int x,int y){
ll ans=1;
for(int i=1;i<=y;i++)ans*=x;
return ans;
}
int main(){
int x;
cin>>x;
if(x==1){
    cout<<0<<' '<<-1;
    return 0;
}
for(int i=0;i<sqrt(x);i++){
    for(int j=-i;j<i;j++){
        if(pow(i,5)-pow(j,5)==x){

                cout<<i<<' '<<j;

    break;}
    }
}


return 0;
}


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

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

	ll A = 1;
	ll B;
	int judge = 0;

	while(A<=100){
		B = 0;
		while(B<=100){
			if(A*A*A*A*A-B*B*B*B*B==X){
				judge++;
				cout << "\n" << A << " " << B;
				break;
			}
			else if(A*A*A*A*A+B*B*B*B*B==X){
				judge++;
				B = B*(-1)
				cout << "\n" << A << " " << B;
				break;
			}
			B++;
		}
		if(judge == 1)
			break;

		A++;
	}

	cin >> judge;
	
	return 0;	
}

Compiler output:
a.cc: In function 'int main()':
a.cc:24:43: error: expected ';' before 'cout'
   24 |                                 B = B*(-1)
      |                                           ^
      |                                           ;
   25 |                                 cout << "\n" << A << " " << B;
      |                                 ~~~~
Language: C++

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

long long times5(int a)
{
    return a * a * a * a * a;
}
int n = 120;
int main()
{
    long long x;
    cin >> x;
    long long s, t;
    rep(i, n)
    {
        rep(j, n)
        {
            long long a = times5(i) - times5(j);
            long long b = times5(i) + times5(j);
            if (a == x)
            {
                s = i;
                t = j;
                cout << s << " " << t << endl;
                return;
            }
            if (b == x)
            {
                s = i;
                t = -j;
                cout << s << " " << t << endl;
                return;
            }
        }
    }
}


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

#include <iostream>

inline long long GetMulti(int val)
{
  return (long long)val * val * val * val * val;
}

int main()
{
  unsigned int X;
  std::cin >> X;
  while(x <= 0)
  {
    
  }
  
  for(int A = -200; ; ++A)
  {
    const long long mulA = GetMulti(A);
    const long long result = mulA - X;
    
    if(result < 0)
    {
      long long mulB = 0;
      for(int B = 0; mulB >= result; --B)
      {
        mulB = GetMulti(B);
        if(result == mulB)
        {
          std::cout << A << " " << B << std::endl;
          return 0;
        }
      }
    }
    else
    {
      long long mulB = 0; 
      for(int B = 0; mulB <= result; ++B)
      {
        long long mulB = GetMulti(B);
        if(result == mulB)
        {
          std::cout << A << " " << B << std::endl;
          return 0;
        }
      }
    }
  }
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:12:9: error: 'x' was not declared in this scope
   12 |   while(x <= 0)
      |         ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(){
  	ios::sync_with_stdio(false); cin.tie(0); cou.tie(0);
    int x,t,c; cin>>x; t=x; c=0;
    c=100; 
    for(int i=c;i>=-c;i--){
        for(int j=c;j>=-c;j--){
            int u=pow(i,5)-pow(j,5); 
            if(u==x) {cout<<i<<" "<<j; return 0;}
        }
    }
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:4:50: error: 'cou' was not declared in this scope; did you mean 'cos'?
    4 |         ios::sync_with_stdio(false); cin.tie(0); cou.tie(0);
      |                                                  ^~~
      |                                                  cos
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(){
  	ios::sync_with_stdio(false); cin.tie(0); cou.tie(0);
    int x,t,c; cin>>x; t=x; c=0;
    c=250; 
    for(int i=c;i>=-c;i--){
        for(int j=c;j>=-c;j--){
            int u=pow(i,5)-pow(j,5); 
            if(u==x) {cout<<i<<" "<<j; return 0;}
        }
    }
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:4:50: error: 'cou' was not declared in this scope; did you mean 'cos'?
    4 |         ios::sync_with_stdio(false); cin.tie(0); cou.tie(0);
      |                                                  ^~~
      |                                                  cos
Language: C++

#include <iostream>
#include <cmath>

using namespace std;

int main(){
    int x;
    cin >> x;
    int a, b;
    for(a = 0; a < 130; a++){
        __int64 a5 = a*a*a*a*a;
        if(a5 < x){
            for(b = 0; b < 130; b--){
                __int64 b5 = b*b*b*b*b;
                if(a5 > x + b5) break;
                else if(a5 == x + b5){
                    cout << a << " " << b;
                    return 0;
                }
            }
        }
        else if(a5 > x){
            for(b = 0; ; b++){
                __int64 b5 = b*b*b*b*b;
                if(a5 < x + b5) break;
                else if(a5 == x + b5){
                    cout << a << " " << b;
                    return 0;
                }
            }
        }
        else{
            b = 0;
            cout << a << " " << b;
            return 0;
        }
    }
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:9: error: '__int64' was not declared in this scope; did you mean '__ynf64'?
   11 |         __int64 a5 = a*a*a*a*a;
      |         ^~~~~~~
      |         __ynf64
a.cc:12:12: error: 'a5' was not declared in this scope; did you mean 'a'?
   12 |         if(a5 < x){
      |            ^~
      |            a
a.cc:14:24: error: expected ';' before 'b5'
   14 |                 __int64 b5 = b*b*b*b*b;
      |                        ^~~
      |                        ;
a.cc:15:29: error: 'b5' was not declared in this scope; did you mean 'b'?
   15 |                 if(a5 > x + b5) break;
      |                             ^~
      |                             b
a.cc:24:24: error: expected ';' before 'b5'
   24 |                 __int64 b5 = b*b*b*b*b;
      |                        ^~~
      |                        ;
a.cc:25:29: error: 'b5' was not declared in this scope; did you mean 'b'?
   25 |                 if(a5 < x + b5) break;
      |                             ^~
      |                             b
Language: C

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

int main(void) {
  int x;
  scanf("%d", &x);
  for(int a = -118;a < 120;a++) {
    for(int b = -119;b < a;b++) {
      if(pow(a, 5) - pow(b, 5) == x) goto result;
    }
  }
  result:
  printf("%d %d\n", a, b);
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:13:21: error: 'a' undeclared (first use in this function)
   13 |   printf("%d %d\n", a, b);
      |                     ^
main.c:13:21: note: each undeclared identifier is reported only once for each function it appears in
main.c:13:24: error: 'b' undeclared (first use in this function)
   13 |   printf("%d %d\n", a, b);
      |                        ^
Language: C++

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

long long X;
long long a[1000000000];
queue<long long> que;


int main () {
  cin >> X;

  for(int i = 1; i <= X; i++) {
    if((X % i == 0) && (X % 3 == i % 3)) {
      que.push(i);
    }
  }

  int A = 0;
  int B;
  bool f = false;

  while(true) {
    while(true) {
      B = A - que.front();
      if(pow(A, 5) - pow(B, 5) == X) {
        cout << A << " " << B << endl;
        f = true;
        break;
      }
      if(f) break;
      A++;
    }
    que.pop();
  }

  return 0;
}

Compiler output:
/tmp/ccG78t69.o: in function `main':
a.cc:(.text+0xbb): relocation truncated to fit: R_X86_64_PC32 against symbol `que' defined in .bss section in /tmp/ccG78t69.o
a.cc:(.text+0xf2): relocation truncated to fit: R_X86_64_PC32 against symbol `que' defined in .bss section in /tmp/ccG78t69.o
a.cc:(.text+0x1c5): relocation truncated to fit: R_X86_64_PC32 against symbol `que' defined in .bss section in /tmp/ccG78t69.o
/tmp/ccG78t69.o: in function `__static_initialization_and_destruction_0()':
a.cc:(.text+0x1dd): relocation truncated to fit: R_X86_64_PC32 against symbol `que' defined in .bss section in /tmp/ccG78t69.o
a.cc:(.text+0x1f6): relocation truncated to fit: R_X86_64_PC32 against symbol `que' defined in .bss section in /tmp/ccG78t69.o
collect2: error: ld returned 1 exit status
Language: C++

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


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

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

using namespace std;
using ll = long long;

vector<ll> divisor(ll n) {
    vector<ll> res;
    for (ll i = 1; i * i <= n; ++i) {
        if (n % i == 0 ) {
            res.push_back(i);
            if (n / i != i) res.push_back(n / i);
        }
    }
    sort(all(res));
    return res;
}

ll g(ll a, ll b) {
    return a*a*a*a + a*a*a * b + a*a * b*b + a * b*b*b + b*b*b*b;
}


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

    vector<ll> f = divisor(x);
    vector<ll> d = f;

    rep(i, d.size()) d.push_back(f[i] * (-1));

    ll a, b;
    for (auto e: d) {
        ll s = x / e;

        bool ok = false;

        for (ll i = -1000; i <= 1000; ++i) {
            a = e + i;
            b = i;
            ll t = g(a, b);

            if (s == t) {
                ok = true;
                break;
            }
        }

        if (ok) break;
    }

    cout << a << " " << b << endl;
}


Compiler output:
a.cc: In function 'std::vector<long long int> divisor(ll)':
a.cc:15:10: error: 'all' was not declared in this scope; did you mean 'std::filesystem::perms::all'?
   15 |     sort(all(res));
      |          ^~~
      |          std::filesystem::perms::all
In file included from /usr/include/c++/14/filesystem:51,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:200,
                 from a.cc:1:
/usr/include/c++/14/bits/fs_fwd.h:158:7: note: 'std::filesystem::perms::all' declared here
  158 |       all               =  0777,
      |       ^~~
Language: C

#include <stdio.h>
 
int main(void) {
    long long X, i, j;
    scanf("%lld", &X);
    b=0;
    for (i=-5400; i<=5400; i++) {
        for (j=-5400; j<=5400; j++) {
            if (i*i*i*i*i-j*j*j*j*j==X) {
                printf("%lld %lld", i, j);
                return 0;
            }
        }
    }
    return -1;
}

Compiler output:
main.c: In function 'main':
main.c:6:5: error: 'b' undeclared (first use in this function)
    6 |     b=0;
      |     ^
main.c:6:5: 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;
  
  for(i=-119;i<119;i++){
    for(j=-119;j<119;j++){
      if(x==i*i*i*i*i-j*j*j*j*j){
        cout<<i<<j<<endl;
        return 0;
      }
    }
  }
}

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

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

int main(){
    long x;
    cin >> x;
    long a=-1000;
	long b = -1000;
    long fact =0;
	for(;a<1000;a++){
      for(;b<1000;b++){
        long fact = pow(a,5) - pow(b,5);
        if(fact == x){
          cout << a << " " << b << endl;
          return;
        }
      }
    }
}
    
}


Compiler output:
a.cc: In function 'int main()':
a.cc:15:11: error: return-statement with no value, in function returning 'int' [-fpermissive]
   15 |           return;
      |           ^~~~~~
a.cc: At global scope:
a.cc:21:1: error: expected declaration before '}' token
   21 | }
      | ^
Language: C++

#include <iostream>
#include <cmath>

using namespace std;

int main(){
    int x;
    cin >> x;
    int a, b;
    for(a = 0; a < 130; a++){
        unsigned int a5 = pow(a, 5);
        b = round(pow(abs(a5-x), 0.2));
        unsigned int b5 = pow(b, 5);
        if(a5 - b5 == x){
            cout << a << " " << b;
            return 0;
        }
        else if(a5 + b5 == x){
            cout << a << " -" << b;
            return 0;
        }
    }
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:26: error: call of overloaded 'abs(unsigned int)' is ambiguous
   12 |         b = round(pow(abs(a5-x), 0.2));
      |                       ~~~^~~~~~
In file included from /usr/include/c++/14/cstdlib:79,
                 from /usr/include/c++/14/ext/string_conversions.h:43,
                 from /usr/include/c++/14/bits/basic_string.h:4154,
                 from /usr/include/c++/14/string:54,
                 from /usr/include/c++/14/bits/locale_classes.h:40,
                 from /usr/include/c++/14/bits/ios_base.h:41,
                 from /usr/include/c++/14/ios:44,
                 from /usr/include/c++/14/ostream:40,
                 from /usr/include/c++/14/iostream:41,
                 from a.cc:1:
/usr/include/stdlib.h:980:12: note: candidate: 'int abs(int)'
  980 | extern int abs (int __x) __THROW __attribute__ ((__const__)) __wur;
      |            ^~~
In file included from /usr/include/c++/14/cstdlib:81:
/usr/include/c++/14/bits/std_abs.h:137:3: note: candidate: 'constexpr __float128 std::abs(__float128)'
  137 |   abs(__float128 __x)
      |   ^~~
/usr/include/c++/14/bits/std_abs.h:85:3: note: candidate: 'constexpr __int128 std::abs(__int128)'
   85 |   abs(__GLIBCXX_TYPE_INT_N_0 __x) { return __x >= 0 ? __x : -__x; }
      |   ^~~
/usr/include/c++/14/bits/std_abs.h:79:3: note: candidate: 'constexpr long double std::abs(long double)'
   79 |   abs(long double __x)
      |   ^~~
/usr/include/c++/14/bits/std_abs.h:75:3: note: candidate: 'constexpr float std::abs(float)'
   75 |   abs(float __x)
      |   ^~~
/usr/include/c++/14/bits/std_abs.h:71:3: note: candidate: 'constexpr double std::abs(double)'
   71 |   abs(double __x)
      |   ^~~
/usr/include/c++/14/bits/std_abs.h:61:3: note: candidate: 'long long int std::abs(long long int)'
   61 |   abs(long long __x) { return __builtin_llabs (__x); }
      |   ^~~
/usr/include/c++/14/bits/std_abs.h:56:3: note: candidate: 'long int std::abs(long int)'
   56 |   abs(long __i) { return __builtin_labs(__i); }
      |   ^~~