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

#include<bits/stdc++.h>
using namespace std;
#define ll         long long int
#define mod        1000000007
#define setbits(x) __builtin_popcountll(x)
#define zrobits(x) __builtin_ctzll(x)
#define inf        1e18
#define ps(x,y)    fixed<<setprecision(y)<<x

int main() {

#ifndef ONLINE_JUDGE
	freopen("input.txt", "r", stdin);
	freopen("output.txt", "w", stdout);
#endif

	ll int x;
	cin >> x;
	ll int a, b;

	for (int i = -120; i <= 120; i++)
	{
		for (int j = -120; j <= 120; j++)
		{
			a = i * i * i * i * i;
			b = j * j * j * j * j;
			if (a == x + b)
			{
				cout << i << " " << j;
				return 0;
			}
		}
	}
}

Compiler output:
a.cc: In function 'int main()':
a.cc:3:30: error: two or more data types in declaration of 'x'
    3 | #define ll         long long int
      |                              ^~~
a.cc:17:9: note: in expansion of macro 'll'
   17 |         ll int x;
      |         ^~
a.cc:18:16: error: 'x' was not declared in this scope
   18 |         cin >> x;
      |                ^
a.cc:3:30: error: two or more data types in declaration of 'a'
    3 | #define ll         long long int
      |                              ^~~
a.cc:19:9: note: in expansion of macro 'll'
   19 |         ll int a, b;
      |         ^~
a.cc:3:30: error: two or more data types in declaration of 'b'
    3 | #define ll         long long int
      |                              ^~~
a.cc:19:9: note: in expansion of macro 'll'
   19 |         ll int a, b;
      |         ^~
a.cc:25:25: error: 'a' was not declared in this scope
   25 |                         a = i * i * i * i * i;
      |                         ^
a.cc:26:25: error: 'b' was not declared in this scope
   26 |                         b = j * j * j * j * j;
      |                         ^
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:24: error: expected ')' before ';' token
    7 |   for(int a=0;a<200;a++;){
      |      ~                 ^
      |                        )
a.cc:7:25: error: expected primary-expression before ')' token
    7 |   for(int a=0;a<200;a++;){
      |                         ^
Language: C++

#include <bits/stdc++.h>
#define REP(i, n) for(int i = 0; i < n; 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 INF 2e9
#define ALL(v) v.begin(), v.end()
using namespace std;
typedef long long ll;
int main()
{
  ll X; cin >> X;
  
  REP(i,-118,120){
    FOR(j,-119,119){
      if(i*i*i*i*i - j*j*j*j*j == X){
		cout << i << " " << j <<endl;
		return 0;
      }
    }
  }
}

Compiler output:
a.cc:13:17: error: macro "REP" passed 3 arguments, but takes just 2
   13 |   REP(i,-118,120){
      |                 ^
a.cc:2:9: note: macro "REP" defined here
    2 | #define REP(i, n) for(int i = 0; i < n; i++)
      |         ^~~
a.cc: In function 'int main()':
a.cc:13:3: error: 'REP' was not declared in this scope
   13 |   REP(i,-118,120){
      |   ^~~
Language: C++

#include <iostream> // cout, endl, cin
#include <string> // string, to_string, stoi
#include <vector> // vector
#include <algorithm> // min, max, swap, sort, reverse, lower_bound, upper_bound
#include <utility> // pair, make_pair
#include <tuple> // tuple, make_tuple
#include <cstdint> // int64_t, int*_t
#include <cstdio> // printf
#include <map> // map
#include <queue> // queue, priority_queue
#include <set> // set
#include <stack> // stack
#include <deque> // deque
#include <unordered_map> // unordered_map
#include <unordered_set> // unordered_set
#include <bitset> // bitset
#include <cctype> // isupper, islower, isdigit, toupper, tolower
#define int long long
using namespace std;
signed main() {
	int X;
	cin >> X;

	for (int A = -1000; A <= 1000; A++) {
		for (int B = -1000; B <= 1000; B++) {
			if (X == 1) {
				cout << 0 << " " << -1 << endl;
			}
			else (A*A*A*A*A - B*B*B*B*B == X) {
				cout << A << " " << B << endl;
				return 0;
			}
			
		}
	}
}

Compiler output:
a.cc: In function 'int main()':
a.cc:29:58: error: expected ';' before '{' token
   29 |                         else (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
#include <utility> // pair, make_pair
#include <tuple> // tuple, make_tuple
#include <cstdint> // int64_t, int*_t
#include <cstdio> // printf
#include <map> // map
#include <queue> // queue, priority_queue
#include <set> // set
#include <stack> // stack
#include <deque> // deque
#include <unordered_map> // unordered_map
#include <unordered_set> // unordered_set
#include <bitset> // bitset
#include <cctype> // isupper, islower, isdigit, toupper, tolower
#define int long long
using namespace std;
signed main() {
	int X;
	cin >> X;

	for (int A = -10000; A <= 10000; A++) {
		for (int B = -10000; B <= 10000; B++) {
			if (pow(A, 5) - pow(B, 5) == X) {
				cout << A << " " << B << endl;
				return 0;
			}
		}
	}
}

Compiler output:
a.cc: In function 'int main()':
a.cc:26:29: error: 'pow' was not declared in this scope
   26 |                         if (pow(A, 5) - pow(B, 5) == 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
#include <utility> // pair, make_pair
#include <tuple> // tuple, make_tuple
#include <cstdint> // int64_t, int*_t
#include <cstdio> // printf
#include <map> // map
#include <queue> // queue, priority_queue
#include <set> // set
#include <stack> // stack
#include <deque> // deque
#include <unordered_map> // unordered_map
#include <unordered_set> // unordered_set
#include <bitset> // bitset
#include <cctype> // isupper, islower, isdigit, toupper, tolower
#define int long long
using namespace std;
signed main() {
	int X;
	cin >> X;

	for (int A = -10000; A <= 10000; A++) {
		for (int B = -10000; B <= 10000; B++) {
			if (pow(A, 5) - pow(B, 5) == X) {
				cout << A << " " << B << endl;
			}
		}
	}
}

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

#include <algorithm>
#include <bitset>
#include <tuple>
#include <cstdint>
#include <cstdio>
#include <cctype>
#include <assert.h>
#include <stdlib.h>
#include <stdio.h>
#include <cassert>
#include <cfloat>
#include <climits>
#include <cmath>
#include <complex>
#include <ctime>
#include <deque>
#include <fstream>
#include <functional>
#include <iomanip>
#include <iostream>
#include <iterator>
#include <list>
#include <limits>
#include <map>
#include <memory>
#include <queue>
#include <random>
#include <set>
#include <stack>
#include <string>
#include <unordered_map>
#include <unordered_set>
#include <utility>
#include <vector>
#define ArraySizeOf(array)     (sizeof(array) / sizeof(array[0]))
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
#define REP(i,n) for(int i=1;i<n;i++)
#define rev(i,n) for(int i=n-1;i>=0;i--)
#define _GLIBCXX_DEBUG
int INF = 1e9+7;
unsigned NthDayOfWeekToDay(unsigned n, unsigned dow, unsigned dow1)
{
unsigned day;
if(dow < dow1) dow += 7;
day = dow - dow1;
day += 7 * n - 6;
return day;
}
unsigned DayToWeekNumber(unsigned day)
{
  return (day - 1) / 7 + 1;
}
unsigned AnotherDayOfWeek(unsigned day, unsigned day0, unsigned dow0)
{
  return (dow0 + 35 + day - day0) % 7;
}
using namespace std;
signed main(){
  int x; cin>>x;
  for(i=-10000;i<10000;i++){
    for(j=-10000;j<10000;j++){
      if(pow(i,5)-pow(j,5)==x)cout<<i<<" "<<j<<endl;
    }
  }
}

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

#include <algorithm>
#include <climits>
#include <complex>
#include <functional>
#include <iostream>
#include <map>
#include <memory>
#include <queue>
#include <regex>
#include <set>
#include <sstream>
#include <stack>
#include <string>
#include <thread>
#include <tuple>
#include <type_traits>
#include <vector>

#include <stdio.h>using ll = long long;
using namespace std;

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

int main() {
    ios::sync_with_stdio(false);
    ll x;
    cin >> x;

    for (int i = -120; i < 120; i++) {
        for (int j = -120; j < 120; j++) {
            if (to5(i) - to5(j) == x) {
                cout << i << " " << j << endl;
                return 0;
            }
        }
    }
    cout << -1 << endl;
    return 0;
}


Compiler output:
a.cc:19:25: warning: extra tokens at end of #include directive
   19 | #include <stdio.h>using ll = long long;
      |                         ^~
a.cc:19:10: fatal error: stdio.h>usin: No such file or directory
   19 | #include <stdio.h>using ll = long long;
      |          ^~~~~~~~~~~~~~
compilation terminated.
Language: C++


#include <bits/stdc++.h>
using namespace std;
using ll = long long;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
#define all(x) (x).begin(),(x).end()
const ll INF = 1LL << 60;


//x^5-1 = (x^4+x^3+x^2+x+1)(x-1)
//a^5-b^5のaを固定した時に差が一番小さくなるのはb-a-1のとき
//このときa^5-b^5は(a^4+a^3b+a^2b^2+ab^3+b^4)になる
//ここでa^4が出てくるため10^9の4乗根までのaを見れば良い
int main(){
    ll x;
    cin >> x;
    for(int a=1; a<1000; a++){
        ll a5=1;
        rep(i,5) a5 *= a;
        for(int b=-1000; b<1000; b++){
            ll b5=1;
            rep(i,5) b5 *= b;
            if(a5-b5 == x){
                cout << a b << endl;
                return 0;
            }
        }
    }


   

}

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

#include <bits/stdc++.h>

using namespace std;

std::vector<pair<unsigned long long, unsigned long long>> prime_factors(unsigned long long number)
{
    std::vector<pair<unsigned long long,unsigned long long>> result;
    unsigned long long root = static_cast<unsigned long long>(std::sqrt(number));
    int count = 0;
    int leng = 0;
    int flag = 0;
    while (number % 2 == 0) {
        if(count == 0) {
            result.push_back(pair<unsigned long long, unsigned long long>(2,0));
            count += 1;
            flag = 1;
        }
        result[leng].second += 1;
        number = number / 2;
    }
    if (flag == 1) {
        leng++;
        flag = 0;
    }

    for (unsigned int i = 3; i <= root; i+=2) {
        count = 0;
        while (number % i == 0) {
            if(count == 0) {
                result.push_back(pair<unsigned long long, unsigned long long>(i,0));
                count += 1;
                flag = 1;
            }
            result[leng].second += 1;
            number = number /i;
        }
        if (flag == 1) {
            leng++;
            flag = 0;
        }
    }

    if(number > 2) {
        result.push_back(pair<unsigned long long, unsigned long long>(number,1));
    }

    return result;
}

unsigned long long func(unsigned long long a, unsigned long long b){
    return (a - b)*(pow(a,4) + pow(a,3) * pow(b,1) + pow(a,2) * pow(b,2) + pow(a,1) * pow(b,3) + pow(b,4));
}
int main(void)
{
    unsigned long long X;
    cin >> X;
    for(unsigned long long i = 0;i < 1000; i++) {
        for(unsigned long long j = -1000;j < 1000; j++) { 
        if(func(i,j) == X) {
            cout << i << " " << j << endl;
            break;
        } 
    }
    return 0;

}

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

#include <bits/stdc++.h>

using namespace std;

std::vector<pair<unsigned long long, unsigned long long>> prime_factors(unsigned long long number)
{
    std::vector<pair<unsigned long long,unsigned long long>> result;
    unsigned long long root = static_cast<unsigned long long>(std::sqrt(number));
    int count = 0;
    int leng = 0;
    int flag = 0;
    while (number % 2 == 0) {
        if(count == 0) {
            result.push_back(pair<unsigned long long, unsigned long long>(2,0));
            count += 1;
            flag = 1;
        }
        result[leng].second += 1;
        number = number / 2;
    }
    if (flag == 1) {
        leng++;
        flag = 0;
    }

    for (unsigned int i = 3; i <= root; i+=2) {
        count = 0;
        while (number % i == 0) {
            if(count == 0) {
                result.push_back(pair<unsigned long long, unsigned long long>(i,0));
                count += 1;
                flag = 1;
            }
            result[leng].second += 1;
            number = number /i;
        }
        if (flag == 1) {
            leng++;
            flag = 0;
        }
    }

    if(number > 2) {
        result.push_back(pair<unsigned long long, unsigned long long>(number,1));
    }

    return result;
}

unsigned long long function(unsigned long long a, unsigned long long b){
    return (a - b)*(pow(a,4) + pow(a,3) * pow(b,1) + pow(a,2) * pow(b,2) + pow(a,1) * pow(b,3) + pow(b,4));
}
int main(void)
{
    unsigned long long X;
    cin >> X;
    for(unsigned long long i = 0;i < 1000; i++) {
        if(function(i,i+1) == X) {
            cout << i << " " << i + 1 << endl;
        } 
    }
    return 0;

}

Compiler output:
a.cc: In function 'int main()':
a.cc:58:12: error: reference to 'function' is ambiguous
   58 |         if(function(i,i+1) == X) {
      |            ^~~~~~~~
In file included from /usr/include/c++/14/functional:59,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:53,
                 from a.cc:1:
/usr/include/c++/14/bits/std_function.h:111:11: note: candidates are: 'template<class _Signature> class std::function'
  111 |     class function;
      |           ^~~~~~~~
a.cc:50:20: note:                 'long long unsigned int function(long long unsigned int, long long unsigned int)'
   50 | unsigned long long function(unsigned long long a, unsigned long long b){
      |                    ^~~~~~~~
Language: C++

#include <bits/stfc++.h>

using namespace std;

std::vector<pair<unsigned long long, unsigned long long>> prime_factors(unsigned long long number)
{
    std::vector<pair<unsigned long long,unsigned long long>> result;
    unsigned long long root = static_cast<unsigned long long>(std::sqrt(number));
    int count = 0;
    int leng = 0;
    int flag = 0;
    while (number % 2 == 0) {
        if(count == 0) {
            result.push_back(pair<unsigned long long, unsigned long long>(2,0));
            count += 1;
            flag = 1;
        }
        result[leng].second += 1;
        number = number / 2;
    }
    if (flag == 1) {
        leng++;
        flag = 0;
    }

    for (unsigned int i = 3; i <= root; i+=2) {
        count = 0;
        while (number % i == 0) {
            if(count == 0) {
                result.push_back(pair<unsigned long long, unsigned long long>(i,0));
                count += 1;
                flag = 1;
            }
            result[leng].second += 1;
            number = number /i;
        }
        if (flag == 1) {
            leng++;
            flag = 0;
        }
    }

    if(number > 2) {
        result.push_back(pair<unsigned long long, unsigned long long>(number,1));
    }

    return result;
}

unsigned long long function(unsigned long long a, unsigned long long b){
    return (a - b)*(pow(a,4) + pow(a,3) * pow(b,1) + pow(a,2) * pow(b,2) + pow(a,1) * pow(b,3) + pow(b,4));
}
int main(void)
{
    unsigned long long X;
    cin >> X;
    for(unsigned long long i = 0;i < 1000; i++) {
        if(function(i,i+1) == X) {
            cout << i << " " << i + 1 << endl;
        } 
    }
    return 0;

}

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

#include <bits/stfc++.h>

using namespace std;

std::vector<pair<unsigned long long, unsigned long long>> prime_factors(unsigned long long number)
{
    std::vector<pair<unsigned long long,unsigned long long>> result;
    unsigned long long root = static_cast<unsigned long long>(std::sqrt(number));
    int count = 0;
    int leng = 0;
    int flag = 0;
    while (number % 2 == 0) {
        if(count == 0) {
            result.push_back(pair<unsigned long long, unsigned long long>(2,0));
            count += 1;
            flag = 1;
        }
        result[leng].second += 1;
        number = number / 2;
    }
    if (flag == 1) {
        leng++;
        flag = 0;
    }

    for (unsigned int i = 3; i <= root; i+=2) {
        count = 0;
        while (number % i == 0) {
            if(count == 0) {
                result.push_back(pair<unsigned long long, unsigned long long>(i,0));
                count += 1;
                flag = 1;
            }
            result[leng].second += 1;
            number = number /i;
        }
        if (flag == 1) {
            leng++;
            flag = 0;
        }
    }

    if(number > 2) {
        result.push_back(pair<unsigned long long, unsigned long long>(number,1));
    }

    return result;
}

int function(int a, int b){
    return (a - b)*(pow(a,4) + pow(a,3) * pow(b,1) + pow(a,2) * pow(b,2) + pow(a,1) * pow(b,3) + pow(b,4));
}
int main(void)
{
    unsigned long long X;
    cin >> X;
    for(int i = 0;i < 1000; i++) {
        if(function(i,i+1) == X) {
            cout << i << " " << i + 1 << endl;
        } 
    }
    return 0;

}

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

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

const int INF = 2e9;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:14:25: error: 'x' was not declared in this scope
   14 |             if(a - b == x){
      |                         ^
Language: C++

#include <bits/stdc++.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;
  for(int a = 0; a < 1000 ; a++){
    ll a5 = 1;
    rep(i,5) a5 *=a;
    for(int b = -1000; b < 1000; b++){
      ll b5 = 1;
      rep(i,5) b5 *= b;
      if(a5 - b5 ==x){
        printf("%d %d\n",a,b);
        retrun 0;
      }
    }
  }
  return 0;
}

Compiler output:
a.cc:4:12: error: 'Long' does not name a type; did you mean 'long'?
    4 | using ll = Long Long;
      |            ^~~~
      |            long
a.cc: In function 'int main()':
a.cc:10:5: error: 'll' was not declared in this scope
   10 |     ll a5 = 1;
      |     ^~
a.cc:2:14: error: 'i' was not declared in this scope
    2 | #define rep (i,n) for(int i = 0; i < (n); i++)
      |              ^
a.cc:11:5: note: in expansion of macro 'rep'
   11 |     rep(i,5) a5 *=a;
      |     ^~~
a.cc:2:16: error: 'n' was not declared in this scope
    2 | #define rep (i,n) for(int i = 0; i < (n); i++)
      |                ^
a.cc:11:5: note: in expansion of macro 'rep'
   11 |     rep(i,5) a5 *=a;
      |     ^~~
a.cc:13:9: error: expected ';' before 'b5'
   13 |       ll b5 = 1;
      |         ^~~
      |         ;
a.cc:15:10: error: 'a5' was not declared in this scope; did you mean 'a'?
   15 |       if(a5 - b5 ==x){
      |          ^~
      |          a
a.cc:15:15: error: 'b5' was not declared in this scope; did you mean 'b'?
   15 |       if(a5 - b5 ==x){
      |               ^~
      |               b
a.cc:17:9: error: 'retrun' was not declared in this scope
   17 |         retrun 0;
      |         ^~~~~~
Language: C++

#include <iostream>

#define rep(i, n) for (int i = 0; i < (int)(n); i++)

using namespace std;

int main() {
	int A =0, B=0, X;
	cin >> X;

	bool flg = false;
	rep(i, X+1) {
		int a;
		//cout << ".";
		a = pow(i, 5);
		int b = X - a;
		rep (j, b+1) {
			int t = j * j*j*j*j;
			if (b < t)break;
			//cout << a << "," << t <<","<<b<<endl;
			if (abs(b) == t) {
				if (b > 0)j *= -1;

				A = i;
				B = j;
				flg = true;
				break;
				
			}
		}

		if (flg)break;

	}

	cout << A << " "<< B;
	//cin >> A;
	return 0;
}

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

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

#define rep(i, n) for (int i = 0; i < (int)(n); i++)

using namespace std;

int main() {
	int A =0, B=0, X;
	cin >> X;

	bool flg = false;
	rep(i, X+1) {
		int a;
		//cout << ".";
		a = pow(i, 5);
		int b = X - a;
		rep (j, b+1) {
			int t = j * j*j*j*j;
			if (b < t)break;
			//cout << a << "," << t <<","<<b<<endl;
			if (abs(b) == t) {
				if (b < 0)j *= -1;

				A = i;
				B = j;
				flg = true;
				break;
				
			}
		}

		if (flg)break;

	}

	cout << A << " "<< B;
	//cin >> A;
	return 0;
}

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

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

int n;
llsol=0,x;
ll A[200005];
map<ll,ll> M; //diff

int main() {
    cin >> n;
    for (int i=1;i<=n;i++) {
        cin >> A[i];
        M[i-A[i]]++;
    }

    for (int i=1;i<=n;i++) {
        x=i+A[i];
        sol+=M[x];
        if (A[i]==0) sol--;
    }
    cout << sol;
}



Compiler output:
a.cc:6:1: error: 'llsol' does not name a type
    6 | llsol=0,x;
      | ^~~~~
a.cc: In function 'int main()':
a.cc:18:9: error: 'x' was not declared in this scope
   18 |         x=i+A[i];
      |         ^
a.cc:19:9: error: 'sol' was not declared in this scope
   19 |         sol+=M[x];
      |         ^~~
a.cc:22:13: error: 'sol' was not declared in this scope
   22 |     cout << sol;
      |             ^~~
Language: C++

#include <iostream>
#include <stack>
#include <queue>
#include <vector>
#include <algorithm>
#include <string>
#include <iomanip>
#include <functional>
#include <map>



using namespace std;

int main(void) {
	int x; cin >> x;
	int a, b;
	long double c;
	int n = 0;
	while (true) {
		b = pow(n, 5);
		c = pow(x + b, 0.2);
		a = pow(x + b, 0.2);
		if (a == c) {
			cout << a << " " << b << endl;
			return 0;
		}
		b = pow(-n, 5);
		c = pow(x + b, 0.2);
		a = pow(x + b, 0.2);
		if (a == c) {
			cout << a << " " << b << endl;
			return 0;
		}
		n++;
	}

	return 0;
}

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

//by The_One_Solver
#include<bits/stdc++.h>
using namespace std;
long long n,l,p,c,z;
bool a;
int main()
{
    set<long long>st;
   set<long long >::iterator it;
    cin>>n;
 
    for(int long long=-120;i<=120;i++)
   {
 
             c=n+(i*i*i*i*i);
             p=c;
             st.clear();
            for (long long d = 2; d * d <=p ; d++)
            {
                if(p%d==0&&d*d!=p)
                {
                    st.insert(d);
                    st.insert(p/d);
                }
                if(d*d==p)
                st.insert(d);
 
            }
            if (p > 1)
                st.insert(c);
            for(it=st.begin();it!=st.end();it++)
            {
                z=*it;
                if((z*z*z*z*z)-(i*i*i*i*i)==n)
                {
                    cout<<*it<<" "<<i;
                    a=1;
                }
                if(a)break;
            }
    if(a)break;
   }
   if(!a)cout<<n<<" "<<0;
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:22: error: expected unqualified-id before '=' token
   12 |     for(int long long=-120;i<=120;i++)
      |                      ^
a.cc:12:22: error: expected ';' before '=' token
   12 |     for(int long long=-120;i<=120;i++)
      |                      ^
      |                      ;
a.cc:12:22: error: expected primary-expression before '=' token
a.cc:12:28: error: 'i' was not declared in this scope; did you mean 'it'?
   12 |     for(int long long=-120;i<=120;i++)
      |                            ^
      |                            it
a.cc:12:34: error: expected ')' before ';' token
   12 |     for(int long long=-120;i<=120;i++)
      |        ~                         ^
      |                                  )
a.cc:12:35: error: 'i' was not declared in this scope; did you mean 'it'?
   12 |     for(int long long=-120;i<=120;i++)
      |                                   ^
      |                                   it
Language: C

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

int main(){
  int x;
  cin >> x;
  map <int,int> z5;
  for(int i = -1000; i<1000;i++){
    z5[i]=pow(i,5);
  }
  for(int a = 0;a < 1000; a++){
    for(int b = -1000; b<1000;b++){
      int z = z5[a]-z5[b];
      if(z==x){
	printf("%d %d",a,b);
	return 0;
      }
    }
  }
}

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

#include <iostream>
#inlcude <math.h>

using namespace std;

int main(void)
{
  int X, a, b1, b2;
  
  cin >> X;
  
  for(a=0;;++a)
  {
    for(b1=b2=0;b1<a;++b1,--b2)
    {
      if(abs(X/(a-b1)) < 1E-8)
      {
      	if((int)(X/(a-b1)) == pow(a,4) + b1*pow(a,3) + pow(a,2)*pow(b1,2) + a*pow(b1,3) + pow(b1,4))
        {    
          printf("%d %d\n", a, b1);
          return 0;
        }
      }
      if(abs(X/(a-b2)) < 1E-8)
      {
        if((int)(X/(a-b2)) == pow(a,4) + b2*pow(a,3) + pow(a,2)*pow(b2,2) + a*pow(b2,3) + pow(b2,4))
        {    
          printf("%d %d\n", a, b2);
          return 0;
        }
      }
    }
  }
  return 0;
}


Compiler output:
a.cc:2:2: error: invalid preprocessing directive #inlcude; did you mean #include?
    2 | #inlcude <math.h>
      |  ^~~~~~~
      |  include
a.cc: In function 'int main()':
a.cc:18:31: error: 'pow' was not declared in this scope
   18 |         if((int)(X/(a-b1)) == pow(a,4) + b1*pow(a,3) + pow(a,2)*pow(b1,2) + a*pow(b1,3) + pow(b1,4))
      |                               ^~~
a.cc:26:31: error: 'pow' was not declared in this scope
   26 |         if((int)(X/(a-b2)) == pow(a,4) + b2*pow(a,3) + pow(a,2)*pow(b2,2) + a*pow(b2,3) + pow(b2,4))
      |                               ^~~
Language: C++

#include <iostream>

using namespace std;

int main(void)
{
  int X, a, b1, b2;
  
  cin >> X;
  
  for(a=0;;++a)
  {
    for(b1=b2=0;b1<a;++b1,--b2)
    {
      if(abs(X/(a-b1)) < 1E-8)
      {
      	if((int)(X/(a-b1)) == pow(a,4) + b1*pow(a,3) + pow(a,2)*pow(b1,2) + a*pow(b1,3) + pow(b1,4))
        {    
          printf("%d %d\n", a, b1);
          return 0;
        }
      }
      if(abs(X/(a-b2)) < 1E-8)
      {
        if((int)(X/(a-b2)) == pow(a,4) + b2*pow(a,3) + pow(a,2)*pow(b2,2) + a*pow(b2,3) + pow(b2,4))
        {    
          printf("%d %d\n", a, b2);
          return 0;
        }
      }
    }
  }
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:17:31: error: 'pow' was not declared in this scope
   17 |         if((int)(X/(a-b1)) == pow(a,4) + b1*pow(a,3) + pow(a,2)*pow(b1,2) + a*pow(b1,3) + pow(b1,4))
      |                               ^~~
a.cc:25:31: error: 'pow' was not declared in this scope
   25 |         if((int)(X/(a-b2)) == pow(a,4) + b2*pow(a,3) + pow(a,2)*pow(b2,2) + a*pow(b2,3) + pow(b2,4))
      |                               ^~~
Language: C++

#include <iostream>

using namespace std;

int main(void)
{
  int X, a, b1, b2;
  
  cin >> X;
  
  for(a=0;;++a)
  {
    for(b1=b2=0;b1<a;++b1,--b2)
    {
      if(abs(X/(a-b1)) < 1E-8)
      {
      	if((int)(X/(a-b1)) == pow(a,4) + b1*pow(a,3) + pow(a,2)*pow(b1,2) + a*pow(b1,3) + pow(b1,4))
        {    
          printf("%d %d\n", a, b1);
          return 0;
        }
        if((int)(X/(a-b1)) == pow(a,4) + b2*pow(a,3) + pow(a,2)*pow(b2,2) + a*pow(b2,3) + pow(b2,4))
        {    
          printf("%d %d\n", a, b2);
          return 0;
        }

      }
    }
  }
  
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:17:31: error: 'pow' was not declared in this scope
   17 |         if((int)(X/(a-b1)) == pow(a,4) + b1*pow(a,3) + pow(a,2)*pow(b1,2) + a*pow(b1,3) + pow(b1,4))
      |                               ^~~
a.cc:22:31: error: 'pow' was not declared in this scope
   22 |         if((int)(X/(a-b1)) == pow(a,4) + b2*pow(a,3) + pow(a,2)*pow(b2,2) + a*pow(b2,3) + pow(b2,4))
      |                               ^~~
Language: C++

#include <iostream>
#include <math.h>

using namespace std;

int main(void)
{
  int X, a, b1, b2;
  
  cin >> X;
  
  for(a=0;;++a)
  {
    for(b1=b2=0;b1<a;++b1,--b2)
    {
      if(abs(X/(a-b1)) < 1E-8)
      {
      	if((int)(X/(a-b1)) == pow(a,4) + b1*pow(a,3) + pow(a,2)*pow(b1,2) + a*pow(b1,3) + pow(b1,4))
        {    
          printf("%d %d\n", a, b1)
          return 0;
        }
        if((int)(X/(a-b1)) == pow(a,4) + b2*pow(a,3) + pow(a,2)*pow(b2,2) + a*pow(b2,3) + pow(b2,4))
        {    
          printf("%d %d\n", a, b2)
          return 0;
        }

      }
    }
  }
  
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:20:35: error: expected ';' before 'return'
   20 |           printf("%d %d\n", a, b1)
      |                                   ^
      |                                   ;
   21 |           return 0;
      |           ~~~~~~                   
a.cc:25:35: error: expected ';' before 'return'
   25 |           printf("%d %d\n", a, b2)
      |                                   ^
      |                                   ;
   26 |           return 0;
      |           ~~~~~~
Language: C++

//インクルード(アルファベット順)
#include<algorithm>//sort,二分探索,など
#include<bitset>//固定長bit集合
#include<cmath>//pow,logなど
#include<complex>//複素数
#include<deque>//両端アクセスのキュー
#include<functional>//sortのgreater
#include<iomanip>//setprecision(浮動小数点の出力の誤差)
#include<iostream>//入出力
#include<iterator>//集合演算(積集合,和集合,差集合など)
#include<map>//map(辞書)
#include<numeric>//iota(整数列の生成),gcdとlcm(c++17)
#include<queue>//キュー
#include<set>//集合
#include<stack>//スタック
#include<string>//文字列
//#include<unordered_map>//イテレータあるけど順序保持しないmap
//#include<unordered_set>//イテレータあるけど順序保持しないset
#include<utility>//pair
#include<vector>//可変長配列
#include<valarray>//なんとなく追加
//メモ：表示桁数を大きくする　　cout << fixed << setprecision(20) << cm << endl;
using namespace std;
typedef long long ll;

//マクロ
//forループ関係
//引数は、(ループ内変数,動く範囲)か(ループ内変数,始めの数,終わりの数)、のどちらか
//Dがついてないものはループ変数は1ずつインクリメントされ、Dがついてるものはループ変数は1ずつデクリメントされる
#define REP(i,n) for(ll i=0;i<(ll)(n);i++)
#define REPD(i,n) for(ll i=n-1;i>=0;i--)
#define FOR(i,a,b) for(ll i=a;i<=(ll)(b);i++)
#define FORD(i,a,b) for(ll i=a;i>=(ll)(b);i--)
//xにはvectorなどのコンテナ
#define ALL(x) (x).begin(),(x).end() //sortなどの引数を省略したい
#define SIZE(x) ((ll)(x).size()) //sizeをsize_tからllに直しておく
#define MAX(x) *max_element(ALL(x)) //最大値を求める
#define MIN(x) *min_element(ALL(x)) //最小値を求める
//定数
#define INF 1000000000000 //10^12:極めて大きい値,∞
#define MOD 1000000007 //10^9+7:合同式の法
#define MAXR 100000 //10^5:配列の最大のrange(素数列挙などで使用)
//略記
#define PB push_back //vectorヘの挿入
#define MP make_pair //pairのコンストラクタ
#define F first //pairの一つ目の要素
#define S second //pairの二つ目の要素
#define PI acos(-1.0)
#define answer(ans) cout<<ans<<endl;




signed main() {
 ll X;
 int A=0,B=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){
        cout << i << " " << j << endl;
        return 0 ;
    }
}
}


Compiler output:
a.cc: In function 'int main()':
a.cc:65:2: error: expected '}' at end of input
   65 | }
      |  ^
a.cc:54:15: note: to match this '{'
   54 | signed main() {
      |               ^
Language: Java

import java.util.*;

public class Main{
    public static void main(String[] args){
	Scanner sc = new Scanner(System.in);
	long X = sc.nextLong();
	for(int a = -120 ; a < 120 ; a++){
      for(int b = -120 ; b < 120 ; b++){
        if(gojyou(a) - gojyou(b) == X){
          System.out.println(a + " " + b);
          return;
        }
      }
    }
	System.out.println(fa + " " + fb);
	}
  static long gojyou(int a){
    long a2 = (long)a;
  return Math.pow(a2 , 5l);
} 
} 

Compiler output:
Main.java:15: error: cannot find symbol
	System.out.println(fa + " " + fb);
	                   ^
  symbol:   variable fa
  location: class Main
Main.java:15: error: cannot find symbol
	System.out.println(fa + " " + fb);
	                              ^
  symbol:   variable fb
  location: class Main
Main.java:19: error: incompatible types: possible lossy conversion from double to long
  return Math.pow(a2 , 5l);
                 ^
3 errors
Language: C++

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

int main(void) 
{
    int x;
    cin >> x;
    int a = 0, b = 0;
    for (int a = -120; a <= 120; a++)
    {
        int isFound = false;
        for (int b = -120; b <= 120; b++)
        {
            long long n = pow(a, 5) - pow(b, 5);
            if (n == x)
            {
                std::cout << a << " " << b << std::endl;
                isFound = true;
                break;
            }
        }
        if (true == isFound) break;
    }

    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:17:27: error: 'pow' was not declared in this scope
   17 |             long long n = pow(a, 5) - pow(b, 5);
      |                           ^~~
Language: C++

#include<iostream>
#include<algorithm>
#include<string>
#include<map>
#define rep(i, n) for(int i=0; i<n; i++)
using namespace std;
const int inf = 1001001001;
typedef long long ll;

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

Compiler output:
a.cc:25:1: error: expected declaration before '}' token
   25 | }
      | ^
Language: C++

#include <cstdio>
#include <algorithm>
#include <vector>
#include <set>
#include <queue>
#include <algorithm>
#include <cstdlib>
#include <cstring>
#include <cmath>
#include <iostream>
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef unsigned long long ull;
 
#define pb push_back
#define mk make_pair
#define f0(i,b) for(int i=0;i<(b);i++)
#define f1(i,b) for(int i=1;i<=(b);i++)
#define f2(i,a,b) for(int i=(a);i<=(b);i++)
#define sf(a) scanf("%d",&a);
#define sfl(a) scanf("%lld",&a);
#define pf(a) printf("%d\n",a);
#define pfl(a) printf("%lld\n",a);
#define TEST int test; cin >> test;while(test--)
#define ii pair<int,int>
#define iil pair<ll,ll>
#define loop(i,a,b) for(int i = a ; i < b ; i++)
#define INF 2147483647
 
 
int dx8[] = {0, 0, 1, 1, 1, -1, -1, -1};
int dy8[] = {1,-1, 1, -1, 0, 0, -1, 1};
int dx4[] = {0, 0, 1, -1};
int dy4[] = {1, -1, 0, 0};
const double pi = acos(-1.0);
 
ll power(ll x, unsigned long long y)
{
    ll res = 1;     // Initialize result
 
    while (y > 0)
    {
        // If y is odd, multiply x with result
        if (y & 1)
            res = (res*x);
 
        // y must be even now
        y = y>>1; // y = y/2
        x = (x*x);  // Change x to x^2
    }
    return res;
}
 
void solve()
{
    ll n;
    cin >> n;
    for(ll i = -1000 ; i <= 1000; i++)
    {
        for(ll j = -1000 ; j <= 1000; j++)
        {
            if(power(i,5) - power(j,5) == n)
            {
                cout << i << " " << j << endl;
                return;
            }
//            else if(power(i,5) - power(-j,5) == n)
//            {
//                cout << i << " -" << j << endl;
//                return;
//            }
//            else if(power(-i,5) - power(j,5) == n)
//            {
//                cout << "-" << i << " " << j << endl;
//                return;
//            }
//            else if(power(-i,5) - power(-j,5) == n)
//            {
//                cout << "-" << i << " -" << j << endl;
//                return;
//            }
        }
    }
}
 
int main()
{
    ios_base::sync_with_stdio(0);
    cin.tie(NULL);
    cout.tie(NULL);
    //freopen("input.txt", "r", stdin);
    //freopen("output.txt", "w", stdout);
    //TEST
    solve();
    return 0;

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

#include <cstdio>
#include <algorithm>
#include <vector>
#include <set>
#include <queue>
#include <algorithm>
#include <cstdlib>
#include <cstring>
#include <cmath>
#include <iostream>
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef unsigned long long ull;
 
#define pb push_back
#define mk make_pair
#define f0(i,b) for(int i=0;i<(b);i++)
#define f1(i,b) for(int i=1;i<=(b);i++)
#define f2(i,a,b) for(int i=(a);i<=(b);i++)
#define sf(a) scanf("%d",&a);
#define sfl(a) scanf("%lld",&a);
#define pf(a) printf("%d\n",a);
#define pfl(a) printf("%lld\n",a);
#define TEST int test; cin >> test;while(test--)
#define ii pair<int,int>
#define iil pair<ll,ll>
#define loop(i,a,b) for(int i = a ; i < b ; i++)
#define INF 2147483647
 
 
int dx8[] = {0, 0, 1, 1, 1, -1, -1, -1};
int dy8[] = {1,-1, 1, -1, 0, 0, -1, 1};
int dx4[] = {0, 0, 1, -1};
int dy4[] = {1, -1, 0, 0};
const double pi = acos(-1.0);
 
ll power(ll x, unsigned long long y)
{
    ll res = 1;     // Initialize result
 
    while (y > 0)
    {
        // If y is odd, multiply x with result
        if (y & 1)
            res = (res*x);
 
        // y must be even now
        y = y>>1; // y = y/2
        x = (x*x);  // Change x to x^2
    }
    return res;
}
 
void solve()
{
    ll n;
    cin >> n;
    for(ll i = -1000 ; i <= 1000; i++)
    {
        for(ll j = -1000 ; j <= 1000; j++)
        {
            if(power(i,5) - power(j,5) == n)
            {
                cout << i << " " << j << endl;
                return;
            }
//            else if(power(i,5) - power(-j,5) == n)
//            {
//                cout << i << " -" << j << endl;
//                return;
//            }
//            else if(power(-i,5) - power(j,5) == n)
//            {
//                cout << "-" << i << " " << j << endl;
//                return;
//            }
//            else if(power(-i,5) - power(-j,5) == n)
//            {
//                cout << "-" << i << " -" << j << endl;
//                return;
//            }
        }
    }
}
 
int main()
{
    ios_base::sync_with_stdio(0);
    cin.tie(NULL);
    cout.tie(NULL);
    //freopen("input.txt", "r", stdin);
    //freopen("output.txt", "w", stdout);
    //TEST
    solve();
   
    return 0;

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

#include <iostream>
using namespace std;
using Int = int64_t;
constexpr Int MOD = 1e9 + 7;
template< typename T >
T pow(T x, T n, T = MOD) {
  T ret = 1;
  while(n > 0) {
    if(n & 1) (ret *= x) %= p;
    (x *= x) %= p;
    n >>= 1;
  }
  return ret;
}
int main() {
    Int X;
    cin >> X;
    for (Int A = -118; A <= 119; A++) {
        for (Int B = -119; B <= 118; B++) {
            if (pow(A, (Int)5) - pow(B, (Int)5) == X) {
                cout << A << " " << B << endl;
                return 0;
            }
        }
    }
}

Compiler output:
a.cc: In function 'T pow(T, T, T)':
a.cc:9:29: error: 'p' was not declared in this scope
    9 |     if(n & 1) (ret *= x) %= p;
      |                             ^
a.cc:10:17: error: 'p' was not declared in this scope
   10 |     (x *= x) %= p;
      |                 ^
Language: C++

#include <iostream>
using namespace std;
using Int = int64_t;
constexpr Int MOD = 1e9 + 7;
template< typename T >
T pow(T x, T n, const T &p = (T)MOD) {
  T ret = 1;
  while(n > 0) {
    if(n & 1) (ret *= x) %= p;
    (x *= x) %= p;
    n >>= 1;
  }
  return ret;
}
int main() {
    Int X;
    cin >> X;
    for (Int A = -118; A <= 119; A++) {
        for (Int B = -119; B <= 118; B++) {
            if (pow(A, 5LL) - pow(B, 5LL) == X) {
                cout << A << " " << B << endl;
                return 0;
            }
        }
    }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:20:20: error: no matching function for call to 'pow(Int&, long long int)'
   20 |             if (pow(A, 5LL) - pow(B, 5LL) == X) {
      |                 ~~~^~~~~~~~
a.cc:6:3: note: candidate: 'template<class T> T pow(T, T, const T&)'
    6 | T pow(T x, T n, const T &p = (T)MOD) {
      |   ^~~
a.cc:6:3: note:   template argument deduction/substitution failed:
a.cc:20:20: note:   deduced conflicting types for parameter 'T' ('long int' and 'long long int')
   20 |             if (pow(A, 5LL) - pow(B, 5LL) == X) {
      |                 ~~~^~~~~~~~
a.cc:20:34: error: no matching function for call to 'pow(Int&, long long int)'
   20 |             if (pow(A, 5LL) - pow(B, 5LL) == X) {
      |                               ~~~^~~~~~~~
a.cc:6:3: note: candidate: 'template<class T> T pow(T, T, const T&)'
    6 | T pow(T x, T n, const T &p = (T)MOD) {
      |   ^~~
a.cc:6:3: note:   template argument deduction/substitution failed:
a.cc:20:34: note:   deduced conflicting types for parameter 'T' ('long int' and 'long long int')
   20 |             if (pow(A, 5LL) - pow(B, 5LL) == X) {
      |                               ~~~^~~~~~~~
Language: C++

mi :: Int
mi = -200

ma :: Int
ma = 200

main = do
  x <-read <$> getLine 
  let (a,b) = solve x
  print a
  print b


ok ::Int -> (Int,Int) -> Bool
ok x (a,b) = a*a*a*a*a-b*b*b*b*b == x

solve :: Int -> (Int,Int)
solve = solve' mi mi

solve' :: Int -> Int -> Int -> (Int,Int)
solve' n m x
  | ok x (n,m) = (n,m)
  | n == ma   = solve' mi (m+1) x
  | m == ma   = (0,0)
  | otherwise  = solve' (n+1) m x

Compiler output:
a.cc:18:14: warning: missing terminating ' character
   18 | solve = solve' mi mi
      |              ^
a.cc:18:14: error: missing terminating ' character
   18 | solve = solve' mi mi
      |              ^~~~~~~
a.cc:20:6: warning: missing terminating ' character
   20 | solve' :: Int -> Int -> Int -> (Int,Int)
      |      ^
a.cc:20:6: error: missing terminating ' character
   20 | solve' :: Int -> Int -> Int -> (Int,Int)
      |      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
a.cc:21:6: warning: missing terminating ' character
   21 | solve' n m x
      |      ^
a.cc:21:6: error: missing terminating ' character
   21 | solve' n m x
      |      ^~~~~~~
a.cc:23:22: warning: missing terminating ' character
   23 |   | n == ma   = solve' mi (m+1) x
      |                      ^
a.cc:23:22: error: missing terminating ' character
   23 |   | n == ma   = solve' mi (m+1) x
      |                      ^~~~~~~~~~~~
a.cc:25:23: warning: missing terminating ' character
   25 |   | otherwise  = solve' (n+1) m x
      |                       ^
a.cc:25:23: error: missing terminating ' character
   25 |   | otherwise  = solve' (n+1) m x
      |                       ^~~~~~~~~~~
a.cc:1:1: error: 'mi' does not name a type
    1 | mi :: Int
      | ^~
Language: C

// --------------------<optimizations>--------------------
#pragma GCC optimize("O3")
//(UNCOMMENT WHEN HAVING LOTS OF RECURSIONS)\
#pragma comment(linker, "/stack:200000000")
//(UNCOMMENT WHEN TRYING TO BRUTEFORCE WITH A LOT OF LOOPS)\
#pragma GCC optimize("unroll-loops")

#pragma GCC optimize("Ofast")
#pragma GCC target("avx,avx2,fma")
#pragma GCC optimization ("unroll-loops")

#include<bits/stdc++.h>

using namespace std;

#define int long long
#define ll long long
#define mp make_pair
#define pb push_back
#define eb emplace_back
#define pii pair<ll,ll>
#define vpii vector<pair<ll,ll> >
#define F first
#define S second
#define ld long double
#define built __builtin_popcountll
#define mst(a,i) memset(a,i,sizeof(a))
#define all(x) x.begin(),x.end()
#define itit(it,a) for(auto it=(a).begin(); it!=(a).end(); it++)
#define rep(i,a,b) for(ll i=a; i<b; i++)
#define repr(i,a,b) for(ll i=a; i>b; i--)
#define reprr(i,a,b) for(ll i=a; i>=b; i--)
#define pi 3.14159265358979323846264338327950288419716939937510582097494459230
ll max3(ll x,ll y,ll z) {return max(max(x,y),z);}
ll min3(ll x,ll y,ll z) {return min(min(x,y),z);}
const ll N=1e5+10,M=2e5+10,M2=1e6+10,mod=1e9+7,inf=1e17+10;
const int INF=1e9+7;
void add(int& a, int b) {a+=b;if(a>=mod){a-=mod;}}


int X[] = {0, 1, 0, -1};
int Y[] = {-1, 0, 1, 0};
//assic value of ('0'-'9') is(48 - 57) and (a-z) is (97-122) and (A-Z) is(65-90) and 32 for space
ll power(ll x,ll n){ll result=1;while(n>0){if(n%2==1)result=(result*x)%mod; x=((x%mod)*(x%mod))%mod;n=n/2;}return result;}


void solve(){
    int x;
    cin >> x;
    vector<int> v;
    for(int i=1; i<=100; i++){
        v.push_back(pow(i,5));
    }
    for(int i=0; i<100; i++){
        for(int j=i+1; j<100; j++){
            if(v[j]-v[i]==x){
                cout << j+1 << " " << i+1;
                exit(0);
            }
        }
    }
}

int32_t main()
{
    ios::sync_with_stdio(0);
    cin.tie(0);
    cout.tie(0);
    int t=1;
    //cin >> t;
    while(t--){
        solve();
    }
    return 0;
}


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

using namespace std;

int main() {
  int X;
  cin >> X;
  int a,b;
  for (int i = 1; ;i++) {
    for (int j = - (i - 1); j < i; j++) {
      if(i*i*i*i*i - j*j*j*j*j == X) {
        a = i;
        b = j;
        goto OUT;
      }
    }
  }
OUT:
  cout << a << " " << b << endl;
}

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

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

int main()
{
	long long  i,j,m;
	cin>>m>>k;

	for(i=-100;i<=100;i++)
	{
	    for(j=-100;j<=100;j++)
	    {
	    	if(i*i*i*i*i-j*j*j*j*j==m)
	    	{
			cout<<i<<" "<<j<<endl;
	    	return 0;
		    }
		}
	}
	
	
	
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:17: error: 'k' was not declared in this scope
    9 |         cin>>m>>k;
      |                 ^
Language: C

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

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