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

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

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

  
 int y=0;
 for(int i = -(10*10*10*2); i <= 10*10*10*2); i++) {
      
          for(int j = -(10*10*10*2); j <= (10*10*10*2); j++) {
              if((i*i*i*i*i)-(j*j*j*j*j) == X){
                  cout << i << " " << j << endl;
                  y =1;
                  break;
              }
          }
    if(y == 1){
      break;
    
    }
 }


 }


Compiler output:
a.cc: In function 'int main()':
a.cc:10:44: error: expected ';' before ')' token
   10 |  for(int i = -(10*10*10*2); i <= 10*10*10*2); i++) {
      |                                            ^
      |                                            ;
a.cc:10:47: error: 'i' was not declared in this scope
   10 |  for(int i = -(10*10*10*2); i <= 10*10*10*2); i++) {
      |                                               ^
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 = x_4; i > 0; 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
Language: C++

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

int center(int x) {
  int a;
  if (x % 2 == 0) {
    a = x / 2;
  }
  else {
    a = (x + 1) / 2;
  }
  return a;
}

int time(int a, int n) {
  int ans = 1;
  for (int i = 0; i < N; i++) {
    ans *= a;
  }
  return a;
}

int main() {
  int x;
  cin >> x;
  int a, b;
  bool finished = false;
  int num;
  for (int i = 2; i < x / 2 + 1; i++) {
    if (x % i == 0) {
      while (true) {
        a = center(x);
        b = x - a;
        num = (a - b) * (time(a, 4) + time(a, 3) * b + time(a, 2) * time(b, 2) + a * time(b, 3) + time(b, 4))
        if (num == x) {
          cout << a << b << endl;
          finished = true;
          break;
        }
        if (num > x) {
          break;
        }
        a++;
        b--;
      }
    }
    if (finished) {
      break;
    }
  }
}

Compiler output:
a.cc: In function 'int time(int, int)':
a.cc:17:23: error: 'N' was not declared in this scope
   17 |   for (int i = 0; i < N; i++) {
      |                       ^
a.cc: In function 'int main()':
a.cc:34:110: error: expected ';' before 'if'
   34 |         num = (a - b) * (time(a, 4) + time(a, 3) * b + time(a, 2) * time(b, 2) + a * time(b, 3) + time(b, 4))
      |                                                                                                              ^
      |                                                                                                              ;
   35 |         if (num == x) {
      |         ~~
Language: C++

#include <vector>
#include <iostream>
#include <string>
#include <algorithm>
using namespace std;
typedef std::pair<long long, long long> PAIR;
int main(int argc, char* argv[])
{
	//ABC166 D
	long long x;
	vector<pair<long long,long long>> s;
	long long a = 0, b = 0;
	// X
	// A5乗 - B5乗 = X
	// になる A と B を返す

	cin >> x;
	s.push_back(PAIR(0, 0));
	long long i = 1;
	while (INT_MAX >= i * i * i * i * i) {
		s.push_back(PAIR(i, i * i * i * i * i));
		s.push_back(PAIR((-i), (-i) * (-i) * (-i) * (-i) * (-i)));
		i++;
	}

	for (vector<pair<long long, long long>>::iterator ita = s.begin(); ita != s.end(); ita++) {
		for (vector<pair<long long, long long>>::iterator itb = s.begin(); itb != s.end(); itb++) {
			if (ita->second - itb->second == x) {
				a = ita->first;
				b = itb->first;
				break;
			}
		}
	}

	cout << a << " " << b;

	return 0;
}

Compiler output:
a.cc: In function 'int main(int, char**)':
a.cc:20:16: error: 'INT_MAX' was not declared in this scope
   20 |         while (INT_MAX >= i * i * i * i * i) {
      |                ^~~~~~~
a.cc:5:1: note: 'INT_MAX' is defined in header '<climits>'; this is probably fixable by adding '#include <climits>'
    4 | #include <algorithm>
  +++ |+#include <climits>
    5 | using namespace std;
Language: C++


#include <algorithm>
#include <fstream>
#include <iostream>
#include <string>
#include <sstream>
#include <vector>
#include <math.h>
using namespace std;

int main(){
    //std::ifstream in("input.txt");
    //std::cin.rdbuf(in.rdbuf());

    long long n;
    cin >> n;
    long cnt = 0;

    for (long i = -64;i<64;i++){
        for (long j = -64;j<64;j++){
            if (i*i*i*i*i-j*j*j*j*j==n){
                cout << i << " " << j <<endl;
                exit();
            }
        }
    }

    long i =63;
    long j =62;
    for (long ii = 0;ii<1000000000;ii++){
        ans=i*i*i*i*i-j*j*j*j*j;
        if (ans==n){
            cout << i << " " << j <<endl;
            exit();
        }else if(ans>n){
            j=j+1;
        }
        else{
            i=i+1;
        }
    }
}



Compiler output:
a.cc: In function 'int main()':
a.cc:23:21: error: too few arguments to function 'void exit(int)'
   23 |                 exit();
      |                 ~~~~^~
In file included from /usr/include/c++/14/cstdlib:79,
                 from /usr/include/c++/14/bits/stl_algo.h:71,
                 from /usr/include/c++/14/algorithm:61,
                 from a.cc:2:
/usr/include/stdlib.h:756:13: note: declared here
  756 | extern void exit (int __status) __THROW __attribute__ ((__noreturn__));
      |             ^~~~
a.cc:31:9: error: 'ans' was not declared in this scope; did you mean 'abs'?
   31 |         ans=i*i*i*i*i-j*j*j*j*j;
      |         ^~~
      |         abs
a.cc:34:17: error: too few arguments to function 'void exit(int)'
   34 |             exit();
      |             ~~~~^~
/usr/include/stdlib.h:756:13: note: declared here
  756 | extern void exit (int __status) __THROW __attribute__ ((__noreturn__));
      |             ^~~~
Language: C++

#include <cmath>
#include <iostream>
#include <functional>
#include <string>
#include <sstream>
#include <vector>
#include <algorithm>
#include <stdio.h>
#include <iomanip>
#include <math.h>
#include <list>
#include <numeric>
using namespace std;

long long combi(long long n, long long k) {
  if (n == k || k == 0)
    return 1;
  else {
    return combi(n - 1, k - 1) + combi(n - 1, k);
  }
}

long long gcd(int a, int b){
  if (a%b == 0){
    return(b);
  }
  else{
    return(gcd(b, a%b));
  }
}

int main(){    
  long long X;
  cin >> X;
  int A=10000,B=100000;

  for(int i=0;i<=100;i++){
    for(int j=1;j<=100;j++){
      if(X == pow(i,5)+pow(j,5)){
	A=i;
	B=j;
	break;
      }
    }
  }
  if(A!==10000 && B!=10000){
     cout << A <<" " << B*(-1) <<endl;
  }
  
  for(int i=0;i>=-100;i--){
    for(int j=1;j<=100;j++){
      if(X == pow(i,5)+pow(j,5)){
	A=i;
	B=j;
	break;
      }
    }
  }
  if(A!==10000 && B!=10000){
    cout << A <<" " << B <<endl;
  }
  
  for(int i=0;i<=100;i++){
    for(int j=1;j<=100;j++){
      if(X == pow(i,5)-pow(j,5)){
	A=i;
	B=j;
	break;
      }
    }
  }
  if(A!==10000 && B!=10000){
    cout << A <<" " << B <<endl;
  }

 
}
 


Compiler output:
a.cc: In function 'int main()':
a.cc:46:9: error: expected primary-expression before '=' token
   46 |   if(A!==10000 && B!=10000){
      |         ^
a.cc:59:9: error: expected primary-expression before '=' token
   59 |   if(A!==10000 && B!=10000){
      |         ^
a.cc:72:9: error: expected primary-expression before '=' token
   72 |   if(A!==10000 && B!=10000){
      |         ^
Language: C++

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

int main() {
    int x;
    int a,b;
    cin>>x;
    for(longlong i=0;i<1e9;i++){
        for(longlong j=0;j<1e9;j++){
           lomglong a_jou = pow(a,5);
           longlong b_jou = pow(b,5);
           if (x==a_jou-b_jou;){
               cout<<a_jou<<" "<<b_jou<<endl;
               break;
           } else{
               return 0;
           }
        }
    }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:10:9: error: 'longlong' was not declared in this scope
   10 |     for(longlong i=0;i<1e9;i++){
      |         ^~~~~~~~
a.cc:10:22: error: 'i' was not declared in this scope
   10 |     for(longlong i=0;i<1e9;i++){
      |                      ^
a.cc:11:21: error: expected ';' before 'j'
   11 |         for(longlong j=0;j<1e9;j++){
      |                     ^~
      |                     ;
a.cc:11:26: error: 'j' was not declared in this scope
   11 |         for(longlong j=0;j<1e9;j++){
      |                          ^
a.cc:12:12: error: 'lomglong' was not declared in this scope
   12 |            lomglong a_jou = pow(a,5);
      |            ^~~~~~~~
a.cc:13:20: error: expected ';' before 'b_jou'
   13 |            longlong b_jou = pow(b,5);
      |                    ^~~~~~
      |                    ;
a.cc:14:19: error: 'a_jou' was not declared in this scope
   14 |            if (x==a_jou-b_jou;){
      |                   ^~~~~
a.cc:14:25: error: 'b_jou' was not declared in this scope
   14 |            if (x==a_jou-b_jou;){
      |                         ^~~~~
a.cc:14:31: error: expected primary-expression before ')' token
   14 |            if (x==a_jou-b_jou;){
      |                               ^
Language: C++

#include <bits/stdc++.h>
#define INF 2e9
#define MOD 1000000007
using namespace std;
typedef long long llong;
typedef long double ldouble;

using Graph = vector<vector<int>>;

// int ctoi(const char c){
//   if('0' <= c && c <= '9') return (c-'0');
//   return -1;
// }

// int gcd(int a, int b){
//   int ma = max(a,b);
//   int mi = min(a,b);
//   if(mi == 0) return ma;

//   return gcd(mi, ma%mi);
// }

int main(){
  llong X;
  cin >> X;
  llong five = 5;
  cout << a << endl;
  for(llong i=0; i<=120; ++i){
    for(llong j=0; j<=120; ++j){
      if((llong)(pow(i, five)-pow(j, five)) == X){
        cout << i << " " << j << endl;
        return 0;
      }else if((llong)(pow(i, five) + pow(j, five)) == X){
        cout << i << " " << -j << endl;
        return 0;
      }
    }
  }
}


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

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

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

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

import java.util.Scanner;
import java.util.Random;

public class Main4 {
    public static void main(String args[]) {
        Scanner scan = new Scanner(System.in);
        int X = scan.nextInt();
        int A,B;
        Random rand = new Random();
        while(true){
            A = rand.nextInt(10000)-5000;
            B = rand.nextInt(10000)-5000;
            if((A^5-B^5)==X){
                System.out.println(A + " "+ B);
                break;
            }else if((B^5-A^5)==X){
                System.out.println(B +" " + A);
                break;
            }
        }
    }
}


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

#include <stdio.h>
#include <math.h>
int main (void){
  int X, a=1, b=1, c;
  scanf("%d", &X);
  while(1){
    for (a=1;a<=X;a++){
      for (b=1;b<=X;b++){
        c = pow(a, 5) - pow(b, 5);
        if(b<0){
          c = -c;
        }
        if (X==c){
          printf("%d", c);
        }
      }
    }
    break;
  }
  return 0;

Compiler output:
main.c: In function 'main':
main.c:20:3: error: expected declaration or statement at end of input
   20 |   return 0;
      |   ^~~~~~
Language: C++

def pow5(a)
  a*a*a*a*a
end

x=gets.to_i;
soi=Array.new()
soi.push(1)
i=2
while i*i<=x do
  if x%i==0 then
    soi.push(i)
    soi.push(x/i)
  end
  i+=1
end
soi.push(x)

a=0
b=0

for d in soi do
  a=d
  b=0

  40.times{
    if pow5(a)-pow5(b)==x then
      puts ("#{a} #{b}");
      return
    end
    a+=1
    b+=1
  }

  a=d
  b=0

  40.times{
    if pow5(a)-pow5(b)==x then
      puts ("#{a} #{b}");
      return
    end
    a-=1
    b-=1
  }
end


Compiler output:
a.cc:1:1: error: 'def' does not name a type
    1 | def pow5(a)
      | ^~~
a.cc:6:1: error: 'soi' does not name a type
    6 | soi=Array.new()
      | ^~~
a.cc:34:3: error: 'a' does not name a type
   34 |   a=d
      |   ^
a.cc:45:1: error: 'end' does not name a type
   45 | end
      | ^~~
Language: C++

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

int main(){
  int64_t N, insuu, a, b;
  cin >> N;
  if(N==1){ 
    cout << 0 << " " << -1;
  }
  else{
    for(int i = 2; i < sqrt(N)+1; i++){
      if(N%i==0){
        insuu = i;
        cout << insuu << endl;
        break;
      }
      else if(i == sqrt(N){
        insuu = 1;
      }
    }
    a = 0; 
    b = a - insuu;
    for(int i = 0; i < sqrt(sqrt(N)); i++){
      if((pow(a, 5)-pow(b, 5))==N){
        cout << a << " " << b;
        break;
      }
      else{
        a++; b++;
      }
    }
  }
} 
    





Compiler output:
a.cc: In function 'int main()':
a.cc:18:27: error: expected ')' before '{' token
   18 |       else if(i == sqrt(N){
      |              ~            ^
      |                           )
a.cc:21:5: error: expected primary-expression before '}' token
   21 |     }
      |     ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
using ll = long long;
using P = pair<ll, ll>;

const ll INF = 1e18;
const ll MOD = 1000000007;
const ll MX = 0; //最大値

ll dp[MX][MX];
inline void chmax(ll& a, ll b) {
  a = max(a, b);
}

#define rep(i,n) for(ll i=0; i<(ll)(n); i++)
#define ALL(x) (x).begin(),(x).end()
#define SIZE(x) ((ll)(x).size()) //sizeをsize_tからllに直しておく
#define MAX(x) *max_element(ALL(x))
#define PB push_back


int main(){
    ll x;
    cin >> x;
    
    vector<ll> v(100);
    rep(i, 100) v.at(i) = pow(i, 5);
    bool ans = false;
    
    rep(i, ){
        if (ans) break;
        ll a = abs(x - v.at(i));
        auto itr = find(v.begin(), v.end(), a);
        if (itr != v.end()) {
            int index = distance(v.begin(), itr);
            if (x - v.at(i) > 0) {
                index *= -1;
            }
            cout << i << " " << index << endl;
            ans = true;
        }
    }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:15:35: error: expected primary-expression before ')' token
   15 | #define rep(i,n) for(ll i=0; i<(ll)(n); i++)
      |                                   ^
a.cc:30:5: note: in expansion of macro 'rep'
   30 |     rep(i, ){
      |     ^~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main(){
    long long X,A,B;
    cin>>X;
    for(int i=0;i<100;i++){
    for(int j=-100;j<100;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:10:9: error: lvalue required as left operand of assignment
   10 |     if(A-B=X){
      |        ~^~
Language: C++

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

#include <set>
#include <map>
#include <iomanip>

using namespace std;

#define rep(i, n) for(long long i = 0; i < (long long)(n); i++)
#define rrep(i, n) for(long long i = (long long)(n - 1); i >= 0; i--)
#define all(x) (x).begin(),(x).end()

using ll = long long;

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

	vector<ll> A, B;
	for (ll i = 0; pow(i, 5) <= pow(10, 10); i++)
	{
		A.push_back(pow(i, 5));
	}
	int n = A.size();
	rep(i, n)
	{
		B.push_back(-A[i]);
	}

	auto solve = [&](ll a, vector<ll>& x)
	{
		auto p = find(all(x), a);
		if (p != x.end())
		{
			return distance(x.begin(), p);
		}

		return -1;
	};

	rep(i, n)
	{
		ll a = x + B[i];

		ll s = solve(a, A);
		if (s != -1)
		{
			cout << s << " " << -i << endl;
			return 0;
		}

		s = solve(a, B);
		if (s != -1)
		{
			cout << s << " " << -i << endl;
			return 0;
		}
	}

	rep(i, n)
	{
		ll a = x + A[i];

		ll s = solve(a, A);
		if (s != -1)
		{
			cout << s << " " << i << endl;
			return 0;
		}

		s = solve(a, B);
		if (s != -1)
		{
			cout << s << " " << i << endl;
			return 0;
		}
	}

	return 0;
}

Compiler output:
a.cc: In lambda function:
a.cc:43:24: error: inconsistent types 'long int' and 'int' deduced for lambda return type
   43 |                 return -1;
      |                        ^~
Language: C++

#define _GLIBCXX_DEBUG
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef string str;
typedef vector<ll> vel;
typedef vector<str> ves;
#define REP(i, a, b) for (ll i = (ll)(a); i < (ll)(b); i++)
#define rep(i, b) REP(i, 0, b)
const ll mod = 1000000007;
const double pi = 3.14159265358979;

int main() {
    ll x;
    cin >> x;
    REP(i, 1, x) {
        ll a = i*i*i*i*i;
        REP(j, -x, x) {
            ll b = j*j*j*j*j;
            if(a-b=x) {
                cout << i << " " << endl;
                break;
            }
        }
    }
}

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

#include<iostream>
#include <vector> 
#include <algorithm>
#include<iomanip>
#include<math.h>
#define SIZE_OF_ARRAY(array) (sizeof(array)/sizeof(array[0]))
using namespace std;


int main() {
    long long N;
    cin >> N;
    for (long long x = -1;; x++) {

        if (N == pow(x, 4) + 1){
            cout << x << endl;
            return 0;
    }
    return 0;
}

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

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



Compiler output:
a.cc:25:8: error: ISO C++ forbids declaration of 'ff' with no type [-fpermissive]
   25 | inline ff(ll x){
      |        ^~
Language: C++

#include <bits/stdc++.h>
using namespace std;
#define lli long long int
#define rep(i, n) ;for (int i = 0;i < (int)(n);i++)
#define rep2(i, s, n) ;for (int i = s; i < (int)(n);i++)
#define ALL(vec)  (vec).begin(),(vec).end()
#define pi 3.1415926535897932384626433832795
#define MAX_INF 9223372036854775807
#define MIN_INF (922337203685477587+1)
#define sosuu 1000000007

int main() {
  lli X;
  cin >> X;
  vector<lli> A(102+50);
  rep(i, 101+50{
  A[i]=i;
    rep(j, 4){
      A[i]*=i;
    }
  }
  
  rep(i, 101+50){
  rep(j, 101+50){
    if(A[i]-A[j]==X){
    cout << i <<" "<< j << endl;
  return 0;
  }
    
  if(A[i]+A[j]==X){
    cout << i <<" "<< -j << endl;
  return 0;
  }
    
    
  }
  }
}


Compiler output:
a.cc:38:2: error: unterminated argument list invoking macro "rep"
   38 | }
      |  ^
a.cc: In function 'int main()':
a.cc:16:3: error: 'rep' was not declared in this scope
   16 |   rep(i, 101+50{
      |   ^~~
a.cc:16:6: error: expected '}' at end of input
   16 |   rep(i, 101+50{
      |      ^
a.cc:12:12: note: to match this '{'
   12 | int main() {
      |            ^
Language: C++

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



Compiler output:
a.cc:25:8: error: ISO C++ forbids declaration of 'f' with no type [-fpermissive]
   25 | inline f(ll x){
      |        ^
Language: C++

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

int main(void){
  int x;
  double y;
  
  cin >> x;
  
  int i = 1;
  while(0){
    y = x + pow(i, 5.0);
    y = pow(y, 0.2);
    if(floor(y) == y)
      break;
    if(i > 0)
      i *= -1
    else
      i = (-1) * i + 1
  }
  cout << (int)y << ' ' << i;
     
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:18:14: error: expected ';' before 'else'
   18 |       i *= -1
      |              ^
      |              ;
   19 |     else
      |     ~~~~
Language: C

#include <stdio.h>
#include <stdlib.h>
#include <string.h>
 
int main(void){
	long long X,A,B,buff,L;
	int i,flag;
	char str[10000000],buf[10000000];
 
	fgets(str, sizeof(str), stdin);
	X=strtoll(strtok(str ," "),buf,10);

  	L=pow(double(X),0.2)+1
  	if(X!=1){
      A=2;B=0;flag=0;
      while(1){
          for(B=-L;B<A;B++){
              if( X%(A-B)==0){
                  buff=A*A*A*A + A*A*A*B + A*A*B*B + A*B*B*B + B*B*B*B;
                  if( X%buff==0){
                    	flag=1;
                    	break;
                  }
              }
          }
          if( flag==1) break;
          A++;
      }
      	printf("%lld %lld\n",A,B);
    }else{
   		printf("1 0\n");   
    }

	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:11:36: error: passing argument 2 of 'strtoll' from incompatible pointer type [-Wincompatible-pointer-types]
   11 |         X=strtoll(strtok(str ," "),buf,10);
      |                                    ^~~
      |                                    |
      |                                    char *
In file included from main.c:2:
/usr/include/stdlib.h:202:49: note: expected 'char ** restrict' but argument is of type 'char *'
  202 |                               char **__restrict __endptr, int __base)
      |                               ~~~~~~~~~~~~~~~~~~^~~~~~~~
main.c:13:11: error: implicit declaration of function 'pow' [-Wimplicit-function-declaration]
   13 |         L=pow(double(X),0.2)+1
      |           ^~~
main.c:4:1: note: include '<math.h>' or provide a declaration of 'pow'
    3 | #include <string.h>
  +++ |+#include <math.h>
    4 | 
main.c:13:11: warning: incompatible implicit declaration of built-in function 'pow' [-Wbuiltin-declaration-mismatch]
   13 |         L=pow(double(X),0.2)+1
      |           ^~~
main.c:13:11: note: include '<math.h>' or provide a declaration of 'pow'
main.c:13:15: error: expected expression before 'double'
   13 |         L=pow(double(X),0.2)+1
      |               ^~~~~~
main.c:13:11: error: too few arguments to function 'pow'
   13 |         L=pow(double(X),0.2)+1
      |           ^~~
main.c:13:31: error: expected ';' before 'if'
   13 |         L=pow(double(X),0.2)+1
      |                               ^
      |                               ;
   14 |         if(X!=1){
      |         ~~
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, b;
  ll i = 2;
  for( a=-1000; a<1000; a++ ) {
    for( b=-1000; b<1000; b++ ) {
      if ( a*a*a*a*a - b*b*b*b*b == X ) {
        cout << a << " " << b << endl;
        f = 1;
        break;
      }
    }
    if ( f == 1 ) break;
  }

//  cout << ans << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:15:9: error: 'f' was not declared in this scope
   15 |         f = 1;
      |         ^
a.cc:19:10: error: 'f' was not declared in this scope
   19 |     if ( f == 1 ) break;
      |          ^
Language: C++

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

int main()
{
	long int X;
  	long int A=LONG_MIN,B=LONG_MIN;
  	bool C=false;
  	while(C);
    {
      	A++; B++;
    	if(A*A*A*A*A-B*B*B*B*B=X)
        {
        	C=true;
        }
    }
  	cout << A <<" "<<B;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:12:21: error: lvalue required as left operand of assignment
   12 |         if(A*A*A*A*A-B*B*B*B*B=X)
      |            ~~~~~~~~~^~~~~~~~~~
Language: C++

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

int main()
{
	long int X;
  	long int A=LONG_MIN,B=LONG_MIN;
  	bool C=false
  	while(C)
    {
      	A++; B++;
    	if(A*A*A*A*A-B*B*B*B*B=X)
        {
        	C=true;
        }
    }
  	cout << A <<" "<<B;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:9: error: expected ',' or ';' before 'while'
    9 |         while(C)
      |         ^~~~~
Language: C++

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

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

#include <iostream>
#include <vector>
#include <string>
#include <algorithm>
#include <map>
#include <math.h>
#define rep(i,n) for (int i = 0; i < (n); ++i)
using namespace std;
using ll = long long;
int main()
{
	int x;
	cin >> x;
	ll a, b;
	a = b = 1;
	bool ok = false;
	bool minus = false;
	while (!ok) {
		if (abs(a - b) > x) {
			b = -1;
			minus = true;
		}
		if (pow(x + pow(b, 5), 0.2) < DBL_EPSILON)	a = round(pow(x + pow(b, 5), 0.2));
		if (pow(a, 5) - pow(b, 5) == x) {
			ok = true;
			break;
		}
		if (!minus)	b++;
		else {
			b--;
		}
	}
	cout << a << " " << b << endl;
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:23:47: error: 'DBL_EPSILON' was not declared in this scope
   23 |                 if (pow(x + pow(b, 5), 0.2) < DBL_EPSILON)      a = round(pow(x + pow(b, 5), 0.2));
      |                                               ^~~~~~~~~~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
#define rep(i,n) for(int i=1;i<=(int)(n);i++)
#define all(v) v.begin(),v.end()
#define rall(v) v.rbegin(),v.rend()
typedef long long ll;
#define _GLIBCXX_DEBUG
typedef vector<int> vec;
typedef vector<ll> lvec;
typedef vector<char>cvec;
typedef pair<ll, ll> LP;
typedef tuple<ll, ll, ll> LT;
typedef pair<int, int> P;
typedef tuple<int, int, int> T;
int main()	{
  int x;
  cin>>x;
  ll a,b;
  rep(a,x){
    b=a*a*a*a*a-x;
    c=pow(b,0.20)+0.5;
    if(c*c*c*c*c==b){
      cout<<a<<c<<endl;
      return 0;
    }
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:21:5: error: 'c' was not declared in this scope
   21 |     c=pow(b,0.20)+0.5;
      |     ^
Language: C

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

int main(void){
int x;
scanf("%d",&x);
int a,b;


//where b=0
for(int i=-64;i<=64;i++){
    if((int)pow(i,5)==x){printf("%d 0\n",i);return 0;}
    else if((int)pow(i,5)>x){break;}
}
where a=0
for(int i=-64;i<=64;i++){
    if(0-(int)pow(i,5)==x){printf("%d 0\n",i);return 0;}
    else if(0-(int)pow(i,5)>x){break;}
}

}

Compiler output:
main.c: In function 'main':
main.c:17:1: error: unknown type name 'where'
   17 | where a=0
      | ^~~~~
main.c:17:7: error: redeclaration of 'a' with no linkage
   17 | where a=0
      |       ^
main.c:9:5: note: previous declaration of 'a' with type 'int'
    9 | int a,b;
      |     ^
main.c:18:1: error: expected ',' or ';' before 'for'
   18 | for(int i=-64;i<=64;i++){
      | ^~~
main.c:18:15: error: 'i' undeclared (first use in this function)
   18 | for(int i=-64;i<=64;i++){
      |               ^
main.c:18:15: note: each undeclared identifier is reported only once for each function it appears in
main.c:18:24: error: expected ';' before ')' token
   18 | for(int i=-64;i<=64;i++){
      |                        ^
      |                        ;
main.c:18:24: error: expected statement before ')' token
main.c:20:32: error: break statement not within loop or switch
   20 |     else if(0-(int)pow(i,5)>x){break;}
      |                                ^~~~~
Language: C++

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

int main(){
  int x,a=0,b=0;
  cin>>x;
  while(a*a*a*a*a - b*b*b*b*b !==x){
    while(a>b){
      b++;
    }
    a++;
  }
  cout << a << b;
  
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:33: error: expected primary-expression before '=' token
    7 |   while(a*a*a*a*a - b*b*b*b*b !==x){
      |                                 ^
Language: C++

#include <iostream> // cout, endl, cin
#include <string> // string, to_string, stoi
#include <vector> // vector
#include <algorithm> // min, max, swap, sort, reverse, lower_bound, upper_bound
using namespace std;

int main() {
  int A, B, X;
  cin >> X;
  for(i = 0; i < 10000; i++){
    for(j = 0; j < 10000; j++){
      if(i ^ 5 - j ^ 5 == X){
      A = i;
        B = j;
        break;}
    }
  }
  cout << A << B << endl;
  
}
    
  





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

using namespace std;
#include <bits/stdc++.h>
#define rep(i, s) for (int i = 0; i < s; ++i)
#define repr(i, n) for(int i = n; i >= 0; i--)
#define FOR(i, m, n) for(int i = m; i < n; i++)
#define all(v) (v.begin(), v.end())
#define EACH(i, s) for (__typeof__((s).begin()) i = (s).begin(); i != (s).end(); ++i)
#define VEC(a, n) vector<int>a(n)
#define VECV(a,n,m) vector<vector<int>> a(n, vector<int>(m));
#define PQ(a) priority_queue<int>a
#define PQmin(a) priority_queue< int, :vector<int>, greater<int> >a
#define PAIR pair<int, int>
typedef long long ll;
typedef pair<ll, ll> l_l;
typedef pair<int, int> i_i;
#define EPS (1e-7)
#define INF (1e10)
#define PI (acos(-1))
const ll mod = 1000000007;
bool f(string s){
  bool ans=true;
  rep(i,s.size()/2){
    if(s[i]!=s[s.size()/2+i]){
      ans=false;
      break;
    }
  }
  return ans;
}
vector<int> calc(int n){
    a = 2;
  	vector<int> v;
    while (n >= a * a) {
        if (n % a == 0) {
          n /= a;
          if(v.back()!=a)
          	v.push_back(a);
        } else {
            a++;
        }
      return v
    }
}
int main(){
  ios::sync_with_stdio(false);
  cin.tie(0);
  ll X;
  cin>>X;
  vector<int>v=calc(X);
  rep(i,v.size())
    cout<<v[i]<<endl;

      

}


Compiler output:
a.cc: In function 'std::vector<int> calc(int)':
a.cc:31:5: error: 'a' was not declared in this scope
   31 |     a = 2;
      |     ^
a.cc:41:15: error: expected ';' before '}' token
   41 |       return v
      |               ^
      |               ;
   42 |     }
      |     ~          
a.cc:43:1: warning: control reaches end of non-void function [-Wreturn-type]
   43 | }
      | ^
Language: C++

#include <cstdio>
#include <cstring>
#include <vector>
#include <iostream>
#include <map>
#include <algorithm>
using namespace std;
const int N = 1e5+10;
int n,m;
int w[N];
bool st[N];
map<int,pair<int,int>>map1;
typedef long long ll;
int num[N];
int main()
{
	for(int i=0;i<=1000;i++)
	{
		int y=pow(i,5);
		num[i]=y;
	}
	for(int i=0;i<=1000;i++)
		for(int j=0;j<=1000;j++)
		{
			map1[num[i]-num[j]]={i,j};
			map1[num[i]+num[j]]={i,-j};
		}
	int x;
	cin>>x;
	cout<<map1[x].first<<" "<<map1[x].second<<endl;
	return 0;
}


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

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:11: error: invalid type argument of unary '*' (have 'int')
    7 |   while(a**5-b**5!==x){
      |           ^~
a.cc:7:16: error: invalid type argument of unary '*' (have 'int')
    7 |   while(a**5-b**5!==x){
      |                ^~
a.cc:7:20: error: expected primary-expression before '=' token
    7 |   while(a**5-b**5!==x){
      |                    ^
Language: C

#include<bits/stdc++.h>
using namespace std;
typedef long long lli;
int main()
{
	lli x; cin >> x;
	for(lli i = -2000; i <= 2000; i++)
	{
		lli tmp = x + (i * i * i * i * i);
		for(lli j = -2000; j <= 2000; j++)
		{
			if(tmp == j * j * j * j * j)
			{
				cout << j << ' ' << i << '\n';
				return 0;
			}
		}
	}
}

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

#include <stdio.h>

int main(){
  long long x,y;
  scanf("%lld",&x);
  
  if(x==1){
    printf("0 -1");
  }
  if(x==2){
    printf("1 -1");
  }
  
  for(long long i=3;i>0;i++){
    if(x%i==0){y=i;break;}
  }
  
  for(long long i=y/2;i>0;i++){
    if(i*i*i*i-i*i*i*(y-i)+i*i*(y-i)*(y-i)-i*(y-i)*(y-i)*(y-i)+(y-i)*(y-i)*(y-i)*(y-i)==x/y){printf("%lld %lld",i,i-y)}
  }
}

Compiler output:
main.c: In function 'main':
main.c:19:119: error: expected ';' before '}' token
   19 |     if(i*i*i*i-i*i*i*(y-i)+i*i*(y-i)*(y-i)-i*(y-i)*(y-i)*(y-i)+(y-i)*(y-i)*(y-i)*(y-i)==x/y){printf("%lld %lld",i,i-y)}
      |                                                                                                                       ^
      |                                                                                                                       ;
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:3:3: error: 'cin' was not declared in this scope
    3 |   cin >> X;
      |   ^~~
a.cc:4:3: error: 'll' was not declared in this scope
    4 |   ll a, b;
      |   ^~
a.cc:5:7: error: 'a' was not declared in this scope
    5 |   for(a = -1000; a <= 1000; a++){
      |       ^
a.cc:6:9: error: 'b' was not declared in this scope
    6 |     for(b = -1000; b <= 1000; b++){
      |         ^
a.cc:8:9: error: 'cout' was not declared in this scope
    8 |         cout << a << " " << b << endl;
      |         ^~~~
a.cc:8:34: error: 'endl' was not declared in this scope
    8 |         cout << a << " " << b << endl;
      |                                  ^~~~
Language: C++

#include<bits/stdc++.h>
using namespace std;
#define ll long long int
int main()
{
	ll x;
	cin>>x;
	map<ll,ll> map;
	map[0]=0;
	for(ll i=1;;i++){
		ll y=pow(i,5);
		if(y>1e18){
			break;
		}
		map[y]=i;
		map[-y]=-i;
	}
	for(ll i=-3981;;i++){
		ll y=pow(i,5);
		ll z=y-x;
		it=map.find(y);
		it2=map.find(z);
		if(it!=map.end()&&it2!=map.end()){
			ll a=map[y];
			ll b=map[z];
			if(a>b){
				swap(a,b);
			}
			cout<<a<<" "<<b<<endl;
			return 0;
		}
	}
}

Compiler output:
a.cc: In function 'int main()':
a.cc:21:17: error: 'it' was not declared in this scope; did you mean 'i'?
   21 |                 it=map.find(y);
      |                 ^~
      |                 i
a.cc:22:17: error: 'it2' was not declared in this scope
   22 |                 it2=map.find(z);
      |                 ^~~
Language: C++

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


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

#include<iostream>
#include <string>

using namespace std;

double table[201];

const int PIPOT = 100;

int main()
{
	int x;

	cin >> x;

	for (long i = -100; i <= 100; ++i)
	{
		table[i + PIPOT] = pow(i, 5);
	}

	int a, b;

	bool ans = false;

	for (int i = -100; i <= 100 && !ans; ++i)
	{
		for (int j = -100; j <= 100 && !ans; ++j)
		{
			if (table[i + PIPOT] - table[j + PIPOT] == x)
			{
				a = i;
				b = j;
				ans = true;
			}
		}
	}


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

	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:18:36: error: 'pow' was not declared in this scope
   18 |                 table[i + PIPOT] = pow(i, 5);
      |                                    ^~~
Language: C++

#include<iostream>
#include <string>

using namespace std;

double table[201];

const int PIPOT = 100;

int main()
{
	int x;

	cin >> x;

	for (long i = -100; i <= 100; ++i)
	{
		table[i + PIPOT] = pow(i, 5);
	}

	int a, b;


	for (int i = -100; i <= 100; ++i)
	{
		for (int j = -100; j <= 100; ++j)
		{
			if (table[i + PIPOT] - table[j + PIPOT] == x)
			{
				a = i;
				b = j;
				goto JAMP;
			}
		}
	}

	JAMP:

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

	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:18:36: error: 'pow' was not declared in this scope
   18 |                 table[i + PIPOT] = pow(i, 5);
      |                                    ^~~
Language: C

using System;

namespace _166_a
{
    class Program
    {
        static void Main(string[] args)
        {
            int c = 1000;
            int x = int.Parse(Console.ReadLine());
            for(int a = 0; a < c; a++)
            {
                for(int b = 0; b < c; b++)
                {
                    if((Math.Pow(a,5) - Math.Pow(b,5)) == x)
                    {
                        Console.WriteLine("{0} -{1}",a,b);
                    }
                }
            }
        }
    }
}


Compiler output:
main.c:1:1: error: unknown type name 'using'
    1 | using System;
      | ^~~~~
main.c:3:1: error: unknown type name 'namespace'
    3 | namespace _166_a
      | ^~~~~~~~~
main.c:4:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
    4 | {
      | ^
Language: C++

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

using namespace std;

long long int X, A, B;

void CALC(void) {

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

int main(void) {

	cin >> X;

	CALC();

	return 0;
}

Compiler output:
a.cc: In function 'void CALC()':
a.cc:15:29: error: 'pow' was not declared in this scope
   15 |                         if (pow(i, 5) - pow(j, 5) == X) { cout << i << " " << j << endl; return; }
      |                             ^~~
Language: C++

x = int(input())
for i in range(-100, 101):
    for j in range(-100, 101):
        if i**5 - j**5 == x:
            print(i, j)
            exit(0)


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

#include <bits/stdc++.h>
using namespace std;
#define int long long
#define All(v) (v).begin(),(v).end()
int dy[8] = {-1,0,1,0,-1,1,1,-1};
int dx[8] = {0,1,0,-1,1,1,-1,-1};
const int mod = 1000000007;
const int inf = mod*mod;
const int d5 = 1
signed main(){
    ios::sync_with_stdio(false);
    cin.tie(0);
    int x;
    cin>>x;
    set<int> a;
    for(int i=-200;i<=200;i++){
        int t=i*i*i*i*i;
        a.insert(t);
    }
    int n=0,m=0;
    bool ok=false;
    for(auto p:a){
        if(!ok){
            for(auto q:a){
                if(p-q==x){
                    n=p,m=q;
                    ok=true;
                    break;
                }
            }
        }
    }
    int r1=0,r2=0;
    for(int i=-200;i<200;i++){
        int t=i*i*i*i*i;
        if(t==n)r1=i;
        if(t==m)r2=i;
    }
    cout<<r1<<' '<<r2<<endl;
}

Compiler output:
a.cc:10:1: error: expected ',' or ';' before 'signed'
   10 | signed main(){
      | ^~~~~~
Language: C++

#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <iostream>
#include <vector>
#include <string>
#include <algorithm>
#include <stack>
#include <queue>
#include <set>
#include <map>
using namespace std;
typedef __int64 LL;
typedef vector<int> ivec;
typedef vector<string> svec;

const int MOD=1000000007;

int main(){
	LL x;
	cin>>x;
	
	for(LL i=0;i<1000;i++)
	{
		for(LL j=0;j<1000;j++)
		{
			if(i*i*i*i*i-j*j*j*j*j==x)
			{
				cout<<i<<" "<<j<<"\n";
				i=1000;
				break;
			}
			if(i*i*i*i*i+j*j*j*j*j==x)
			{
				cout<<i<<" "<<-j<<"\n";
				i=1000;
				break;
			}
		}
	}
	
	return 0;
}

Compiler output:
a.cc:13:9: error: '__int64' does not name a type; did you mean '__int64_t'?
   13 | typedef __int64 LL;
      |         ^~~~~~~
      |         __int64_t
a.cc: In function 'int main()':
a.cc:20:9: error: 'LL' was not declared in this scope
   20 |         LL x;
      |         ^~
a.cc:21:14: error: 'x' was not declared in this scope
   21 |         cin>>x;
      |              ^
a.cc:23:15: error: expected ';' before 'i'
   23 |         for(LL i=0;i<1000;i++)
      |               ^~
      |               ;
a.cc:23:20: error: 'i' was not declared in this scope
   23 |         for(LL i=0;i<1000;i++)
      |                    ^
a.cc:25:23: error: expected ';' before 'j'
   25 |                 for(LL j=0;j<1000;j++)
      |                       ^~
      |                       ;
a.cc:25:28: error: 'j' was not declared in this scope
   25 |                 for(LL j=0;j<1000;j++)
      |                            ^
Language: C++

#include "vector"
#include "set"
#include "map"
#include "unordered_set"
#include "unordered_map"
#include "string"
#include "iostream"
#include "algorithm"
#include "queue"

using namespace std;

#define ll long long
#define INF 2e9
#define INF2 4611686018427387904
//#define MOD 1000000007
#define MOD 998244353
#define MAX_SIZE 1000000000

typedef vector<int> vi;
typedef vector<ll> vll;
typedef pair<int, int> pii;

template<typename T>
ostream& operator<<(ostream& os, const vector<T>& v) { bool first = true; for (const auto& j: v) { if (!first) { os << " "; } first = false; os <<j; } os << "\n"; return os; }
template<typename T>
istream& operator>>(istream& is, vector<T>& v) { for (auto& elem : v) { is >> elem; } return is; }

vector<ll> f;
void set_f(int n) { f.resize(n+1); f[0] = 1; for (int i=1; i<= n; i++) { f[i] = (f[i-1] * i) % MOD;} }
ll nod(ll a, ll b) { if (b == 0) { return a; } else { return nod(b, a % b); } }
ll pw(ll x, ll n, ll m=MOD) { if (n == 0) { return 1;} if (n%2 == 0) { return pw((x*x) % m, n/2, m); } return (pw(x, n-1, m) * x) % m; }
ll dv(ll a, ll b) { return (a * pw(b, MOD - 2)) % MOD; }
ll c_n_k(int n, int k) { if (k > n) { return 0; } if (k < 0) { return 0; } return dv(dv(f[n], f[k]), f[n-k]); }

void solve() {
    ll x;
    cin >> x;

    for (ll a=0; a * a * a * a <= x; a++) {
        double y = a * a * a * a * a - x;
        ll sign = 1;
        if (y < 0) {
            sign = -1;
            y = -y;
        }
        ll b = round(pow(y, 0.2));
        if (sign) {
            b = -b;
        }

        //cout << a << ' ' << y << ' ' << b << endl;

        if (a * a * a * a * a - b * b * b * b * b == x) {
            cout << a << ' ' << b;
            return;
        }
    }
}

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

    if (0) {
        int tests;
        cin >> tests;
        for (int t = 1; t <= tests; t++) {
            //cout << "Case #" << t << ": ";
            solve();
            //cout << "\n";
        }
    } else {
        solve();
        cout << endl;
    }

    return 0;
}

Compiler output:
a.cc: In function 'void solve()':
a.cc:47:22: error: 'pow' was not declared in this scope; did you mean 'pw'?
   47 |         ll b = round(pow(y, 0.2));
      |                      ^~~
      |                      pw
a.cc:47:16: error: 'round' was not declared in this scope
   47 |         ll b = round(pow(y, 0.2));
      |                ^~~~~
Language: C++

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

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

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

//#pragma GCC optimize("Ofast")
//#pragma GCC optimize ("unroll-loops")
//#pragma GCC target("avx,avx2,fma")
#include<bits/stdc++.h>
#include<ext/pb_ds/assoc_container.hpp>
#include<ext/pb_ds/tree_policy.hpp>
using namespace __gnu_pbds;
#define mod 998244353
#define fi first
#define se second
#define pii pair<int,int>
#define int long long
#define endl '\n'
#define pll pair<long long,long long>
#define LONGLONG_MAX 100000000000000
using namespace std;
template <typename T>
using ordered_set = tree<T, null_type, less<T>, rb_tree_tag, tree_order_statistics_node_update>;
long long power(long long a,long long b){
    long long ans=1;
    while(b>0){
        if(b&1){ans=(ans*a)%mod;}
                a=(a*a)%mod;
                b>>=1;
        }
    return ans;
        
}

int32_t main(){
    ios_base::sync_with_stdio(false);
    cin.tie(NULL);
    cout.tie(NULL);
    int x;
    cin>>x;
    for(int i=-300;i<=300;i++){
        for(int j=i+1;j<n;j++){
            if(j*j*j*j*j-i*i*i*i*i==x){
                cout<<j<<" "<<i;
                return 0;
            }
            if(j*j*j*j*j-i*i*i*i*i==-x){
                cout<<i<<" "<<j;
                return 0;
            }
        }
    }
    return 0;
}


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

import math
x = int(input())
for b in range(-10000, 10000):
    v = b ** 5 + x
    p = pow(v, 0.2)
    if v == pow(p, 5):
       print(int(pow(v, 0.2)), b)
       break

Compiler output:
a.cc:1:1: error: 'import' does not name a type
    1 | import math
      | ^~~~~~
a.cc:1:1: note: C++20 'import' only available with '-fmodules-ts'
Language: C++

32
3 1 4 1 5 9 2 6 5 3 5 8 9 7 9 3 2 3 8 4 6 2 6 4 3 3 8 3 2 7 9 5

Compiler output:
a.cc:1:1: error: expected unqualified-id before numeric constant
    1 | 32
      | ^~
Language: C++

#include<bits/stdc++.h>
#include<time.h>
#include<cctype>
#include<iostream>
#include<ostream>
#include<cstdio>
#include<algorithm>
#include<iomanip>
#include<cstring>
#include<string>
#include<cmath>
#include<stack>
#include<queue>
#include<vector>
#include<set>
#include<map>
using namespace std;
typedef long long ll;
const int inf=0x3f3f3f3f;//1061109567
const int INF=0x7fffffff;//2147483647
const int SUP=0x80000000;//-2147483648
#define MAX 1000000
ll a[MAX]={0},b[MAX]={0};
int main()
{
    int n;
    ll t
    ll sum=0;
    cin>>n;
    for(ll i=1;i<=n;i++)
    {
        cin>>t;
        if(i+t<100000)a[i+t]++;
        if(i-t>=1)b[i-t]++;
    }
    for(int i=1;i<=n;i++)
    {
        sum+=a[i]*b[i];
    }
    cout<<sum<<endl;
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:28:5: error: expected initializer before 'll'
   28 |     ll sum=0;
      |     ^~
a.cc:32:14: error: 't' was not declared in this scope
   32 |         cin>>t;
      |              ^
a.cc:38:9: error: 'sum' was not declared in this scope
   38 |         sum+=a[i]*b[i];
      |         ^~~
a.cc:40:11: error: 'sum' was not declared in this scope
   40 |     cout<<sum<<endl;
      |           ^~~