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

#include <iostream>
#include <string>
#include <algorithm>
#include <vector>
#include <numeric>
#include <stdio.h>
#include <stack>
#include <queue>
#include <cstdio>

using namespace std;

#define Int int64_t

void printVec(std::vector<int>& vec) {
	std::cout << "";
	for (auto it = vec.begin(); it != vec.end(); ++it) {
		std::cout << *it << " ";
	}
	std::cout << std::endl;
}

template<typename T>
void remove(std::vector<T>& vector, unsigned int index)
{
	vector.erase(vector.begin() + index);
}




int main() {
	Int s; cin >> s;
	Int x1 = 0, x2, x3 = 0;
	Int y1 = 0, y3, y2 = 0;
	Int c, d;
	long double z;
	z = sqrt(s);

	if (Int(z) == z) {
		x2 = Int(z);
		y3 = Int(z);
		cout << x1 << " " << y1 << " " << x2 << " " << y2 << " " << x3 << " " << y3 << endl;
	}
	else {
		for (Int i = (Int(z)) + 1; i > 0; i--) {
			if (s % i == 0) {
				x2 = i;
				y3 = s / i;
				cout << x1 << " " << y1 << " " << x2 << " " << y2 << " " << x3 << " " << y3 << endl;
				break;
				cout << "A";
			}
		}
	}

	return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:38:13: error: 'sqrt' was not declared in this scope
   38 |         z = sqrt(s);
      |             ^~~~
Language: C++

#include<fstream>
#include<string>
#include<iostream>
#include<sstream>
#include<iterator>
#include<cmath>
 
using namespace std;
 
int main(){
 long long int S;
 cin >> S;
 int x[3]={0};
 int y[3]={0};
 int N = 1000000000;
 int i;
 for(i=N;i>0;--i){
   if(S%i==0){
     x[1]=i;
     y[2]=S/i;
     break;
    cout << x[0] " " << y[0] << " " << x[1] << " " << y[1] << " " << x[2] << " " << y[2] << endl;
   }
 }
  return 0;
}

 


Compiler output:
a.cc: In function 'int main()':
a.cc:22:17: error: expected ';' before string constant
   22 |     cout << x[0] " " << y[0] << " " << x[1] << " " << y[1] << " " << x[2] << " " << y[2] << endl;
      |                 ^~~~
      |                 ;
Language: Java


import java.util.ArrayList;
import java.util.List;
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		try (Scanner sc = new Scanner(System.in)) {
			long s = sc.nextLong();

			long rootS = (long) Math.sqrt((double) s);
			if (rootS * rootS == s) {
				System.out.println("0 " + rootS + " " + rootS + " 0 0 0");
				return;
			}

			if(isPrimeNumber(s)) {
				System.out.println("0 " + 1 + " " + s + " 0 0 0");
			}

			long s1 = 1;
			long s2 = 1;
			for (long i : bunkai(s)) {
				if (s1 < s2) {
					s1 *= i;
				} else {
					s2 *= i;
				}
			}

			System.out.println("0 " + s1 + " " + s2 + " 0 0 0");
		}
	}

	private static boolean isPrimeNumber(long num) {
		if (1 >= num)
			return false;

		if (2 == num)
			return true;

		long n = (long) Math.sqrt(num);
		for (long i = 2; i <= n; ++i) {
			if (0 == (num % i))
				return false;
		}
		return true;
	}

	private static List<Long> bunkai(long num) {
		List<Long> result = new ArrayList<Long>();

		while (num % 2 == 0) {
			result.add(2l);
			num /= 2;
		}

		long i = 3;
		while (num != 1) {
			if (num % i == 0) {
				result.add(i);
				num /= i;
			} else {
				i += 2;
			}
		}

		return result;
	}


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

#include<fstream>
#include<string>
#include<iostream>
#include<sstream>
#include<iterator>
#include<cmath>
 
using namespace std;
 
int main(){
 long long int S;
 cin >> S;
 int x[3]={0};
 int y[3]={0};
 int N = 1000000000;
 int i;
 for(i=N;i>0;--i){
   if(S%i==0){
     x[1]=i;
     y[2]=S/i;
     break;
   }
 }
  return 0;
}

  
  
  
  
  
  
  
  
  
  
 cout << 3*r*r << endl;
  return 0;
}

Compiler output:
a.cc:37:2: error: 'cout' does not name a type
   37 |  cout << 3*r*r << endl;
      |  ^~~~
a.cc:38:3: error: expected unqualified-id before 'return'
   38 |   return 0;
      |   ^~~~~~
a.cc:39:1: error: expected declaration before '}' token
   39 | }
      | ^
Language: Java

import java.util.*;

public class Main {
    public static void main(String[] args) throws Exception {
        
        Scanner sc = new Scanner(System.in);
        long S = sc.nextLong();
        long N = 3;
        long T = S % 1000000000;
        S = S / 1000000000
        
        
        
        System.out.println(S + " 0 0 " + T + " 0 0");
    }
}

Compiler output:
Main.java:10: error: ';' expected
        S = S / 1000000000
                          ^
1 error
Language: Java

import java.util.*;

public class Main {
  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    long area;
    if(area % 2 == 0) {
      System.out.println("0 0 " + area/2 + " 0 0 " + 2);
    } else {
      area++;
      System.out.println("0 0 " + area/2 + " 1 1 " + 2);
    }
  }
}


Compiler output:
Main.java:7: error: variable area might not have been initialized
    if(area % 2 == 0) {
       ^
1 error
Language: Java

import java.util.Scanner;
public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		System.out.println("0 0 1 0 1 " + sc.nextLong(););
	}
}


Compiler output:
Main.java:5: error: ')' or ',' expected
		System.out.println("0 0 1 0 1 " + sc.nextLong(););
		                                               ^
Main.java:5: error: illegal start of expression
		System.out.println("0 0 1 0 1 " + sc.nextLong(););
		                                                ^
2 errors
Language: C++

#include <bits/stdc++.h>
using namespace std;
#define rep(i,N) for(int i=0,i##_max=(N);i<i##_max;++i)
#define repp(i,l,r) for(int i=(l),i##_max=(r);i<i##_max;++i)
#define per(i,N) for(int i=(N)-1;i>=0;--i)
#define perr(i,l,r) for(int i=r-1,i##_min(l);i>=i##_min;--i)
#define all(arr) (arr).begin(), (arr).end()
#define SP << " " <<
#define SPF << " "
#define SPEEDUP cin.tie(0);ios::sync_with_stdio(false);
#define MAX_I INT_MAX //1e9
#define MIN_I INT_MIN //-1e9
#define MAX_UI UINT_MAX //1e9
#define MAX_LL LLONG_MAX //1e18
#define MIN_LL LLONG_MIN //-1e18
#define MAX_ULL ULLONG_MAX //1e19
  typedef long long ll;
  typedef pair<int,int> PII;
  typedef pair<char,char> PCC;
  typedef pair<ll,ll> PLL;
  typedef pair<char,int> PCI;
  typedef pair<int,char> PIC;
  typedef pair<ll,int> PLI;
  typedef pair<int,ll> PIL; 
  typedef pair<ll,char> PLC; 
  typedef pair<char,ll> PCL; 

inline void YesNo(bool b){ cout << (b?"Yes" : "No") << endl;}
inline void YESNO(bool b){ cout << (b?"YES" : "NO") << endl;}
inline void Yay(bool b){ cout << (b?"Yay!" : ":(") << endl;}

//約数列挙O(root n)
vector<PLL> divisor(ll n){
  vector<PLL> v;
  for(ll i=1; i<=sqrt(n); i++){
    if(n%i == 0){
      v.push_back(PLL(i,n/i));
    }
  }
  return v;
}


int main(void){
  SPEEDUP
  cout << setprecision(15);
  ll S;cin >> S;
  cout << 0 SP 0 SPF;
  ll x1,y1,x2,y2;
  for(ll sX = sqrt(S); sX<=1e9; ++sX){
    rep(n,200){
      ll X = (sX-n)*(sX+n);
      ll Y = X-S;
      if(Y<0)break;
      vector<PLL> d = divisor(Y);
      for(auto &a : d) if(a.first <= 1e9 && a.second <= 1e9){
        cout << sX-n SP a.first SPF;
        cout << a.second SP sX+n << endl;
        return 0;
      }
  }
  //S以上でx1*y2(x1<=1e9, y2<=1e9となる最小の組を見つける
  return 0;
}


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

#include <bits/stdc++.h>
using namespace std;
 
typedef long long int ll;
typedef std::vector<ll> vi;
typedef pair < ll , ll > pll;
 
ll MOD = 1e9+7;
 
#define pb push_back
#define mp make_pair
 
ll mx(ll a , ll b){if (a > b) return a;return b;}
ll mx(ll a , ll b , ll c){if (mx(a,c) > b) return mx(a,c);return b;}
ll mn(ll a , ll b){return a + b - mx(a , b);}
ll mod (ll x ){if (x % MOD < 0) return(mod (x + MOD));return x % MOD;}
 
ll gcd (ll x , ll y){
	if (y == 0)return x;
	return gcd( y , x%y );
}
 
ll lcm(ll x, ll y, ll z){
 	
 	if (x <= 0 or y <= 0 or z <= 0) return 0 ;

	ll l = x * y / gcd(x , y);
	return l * z / gcd( l , z); 
}
 
bool ip(ll x){
 
	for (ll i = 2; i <= sqrt(x) ; i ++){
		if (x % i == 0 )return false;
	}
	return true;
}
 

ll n;
vi arr;

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

 	ll d =  1e18;
 	ll l = 1e9;
 	ll a , b;
 	ll my = 1e9;
 	ll mx = n/l+1;
 	
 	while (mx*my-n > l){
 		mx --;
 	}

 	if (s == 1e18){
 		cout << 0 << " " << 0 << " " << 1e9 << " " << 0 << " " << 0 << " " << 1e9 ;
 		return 0;
 	}
 	b = mx*my - n;
 	a = 1;

 	cout << 0 << " " << 0 << " " << a << " " << my << " " << mx << " " << b ;


	return 0;
 
}

Compiler output:
a.cc: In function 'int main()':
a.cc:60:13: error: 's' was not declared in this scope
   60 |         if (s == 1e18){
      |             ^
Language: Java

import java.util.Scanner;

public class Triangle {
	public static void main(String args[]) {
		Scanner sc = new Scanner(System.in);
		long S = sc.nextLong();

		System.out.println("0 0 "+S+" 0 0 1");


	}
}


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

#include <bits/stdc++.h>
#define INF INT_MAX
#define endl '\n'
#define ll long long int
#define N 1500
using namespace std;

inline void init()
{
//	cout << setprecision(20);
	ll s;
	cin >> s;
	cout << "0 0 ";
		cout << "1000000000 1 " << (ceil((double)s/1000000000))*1000000000-s << " " << ceil((double)s/1000000000) << endl;
	}
}

inline void solve()
{
}

int main()
{
	//freopen("input.in","r",stdin);
	ios_base::sync_with_stdio(false);
	cin.tie(0);
	init();
	solve();
	cout << flush;

	return 0;
}


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

#include <bits/stdc++.h>
using namespace std;
#define rep(i,N) for(int i=0,i##_max=(N);i<i##_max;++i)
#define repp(i,l,r) for(int i=(l),i##_max=(r);i<i##_max;++i)
#define per(i,N) for(int i=(N)-1;i>=0;--i)
#define perr(i,l,r) for(int i=r-1,i##_min(l);i>=i##_min;--i)
#define all(arr) (arr).begin(), (arr).end()
#define SP << " " <<
#define SPF << " "
#define SPEEDUP cin.tie(0);ios::sync_with_stdio(false);
#define MAX_I INT_MAX //1e9
#define MIN_I INT_MIN //-1e9
#define MAX_UI UINT_MAX //1e9
#define MAX_LL LLONG_MAX //1e18
#define MIN_LL LLONG_MIN //-1e18
#define MAX_ULL ULLONG_MAX //1e19
  typedef long long ll;
  typedef pair<int,int> PII;
  typedef pair<char,char> PCC;
  typedef pair<ll,ll> PLL;
  typedef pair<char,int> PCI;
  typedef pair<int,char> PIC;
  typedef pair<ll,int> PLI;
  typedef pair<int,ll> PIL; 
  typedef pair<ll,char> PLC; 
  typedef pair<char,ll> PCL; 

inline void YesNo(bool b){ cout << (b?"Yes" : "No") << endl;}
inline void YESNO(bool b){ cout << (b?"YES" : "NO") << endl;}
inline void Yay(bool b){ cout << (b?"Yay!" : ":(") << endl;}

//約数列挙O(root n)
vector<PLL> divisor(ll n){
  vector<PLL> v;
  for(ll i=1; i<=sqrt(n); i++){
    if(n%i == 0){
      v.push_back(PLL(i,n/i));
    }
  }
  return v;
}


int main(void){
  SPEEDUP
  cout << setprecision(15);
  ll S;cin >> S;
  cout << 0 SP 0 SPF;
  ll x1,y1,x2,y2;
  for(ll sX = sqrt(S); sX<=1e9; ++sX){
    ll X = sX*sX;
    ll Y = X-S;
    if(Y<0)continue;
    vector<PLL> d = divisor(Y);
    for(auto &a : d) if(a.first <= 1e9 && a.second <= 1e9){
      cout << sX SP a.first SPF;
      cout << a.second SP sX << endl;
      return 0;
    }
    ll X = (sX-1)*(sX+1);
    ll Y = X-S;
    if(Y<0)continue;
    vector<PLL> d = divisor(Y);
    for(auto &a : d) if(a.first <= 1e9 && a.second <= 1e9){
      cout << sX-1 SP a.first SPF;
      cout << a.second SP sX+1 << endl;
      return 0;
    }
  }
  //S以上でx1*y2(x1<=1e9, y2<=1e9となる最小の組を見つける
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:60:8: error: redeclaration of 'll X'
   60 |     ll X = (sX-1)*(sX+1);
      |        ^
a.cc:51:8: note: 'll X' previously declared here
   51 |     ll X = sX*sX;
      |        ^
a.cc:61:8: error: redeclaration of 'll Y'
   61 |     ll Y = X-S;
      |        ^
a.cc:52:8: note: 'll Y' previously declared here
   52 |     ll Y = X-S;
      |        ^
a.cc:63:17: error: redeclaration of 'std::vector<std::pair<long long int, long long int> > d'
   63 |     vector<PLL> d = divisor(Y);
      |                 ^
a.cc:54:17: note: 'std::vector<std::pair<long long int, long long int> > d' previously declared here
   54 |     vector<PLL> d = divisor(Y);
      |                 ^
Language: Java

import java.util.*;

class Main{
    public static void main(String[] args){
        Scanner sc = new Scanner (System.in);
        int s = sc.nextInt()/2;
        final int x1 = 0;
        final int y1 = 0;
        final int x2 = 0;
        final int y2 = 1;
        final int y3 = 0;
        int x3 = 0;
        while(x3*y2/2 != s){
            x3++;
        }

        System.out.println(x1+" "+y1+" "+x2+" "+y2+" "+x3+" "+y3);
    }
}import java.util.*;

class Main{
    public static void main(String[] args){
        Scanner sc = new Scanner (System.in);
        int s = sc.nextInt()/2;
        final int x1 = 0;
        final int y1 = 0;
        final int x2 = 0;
        final int y2 = 1;
        final int y3 = 0;
        int x3 = 0;
        while(x3*y2/2 != s){
            x3++;
        }

        System.out.println(x1+" "+y1+" "+x2+" "+y2+" "+x3+" "+y3);
    }
}

Compiler output:
Main.java:19: error: class, interface, enum, or record expected
}import java.util.*;
 ^
1 error
Language: C++

import math
S = int(input())
axis = [1, 1, 1, 1, 1, 1]
I = 0
for i in range(math.floor(math.sqrt(2 * S)), 0, -1):
    if 2 * S % i == 0:
        I = i
        break

axis[2] = 1 + I
axis[5] = 1 + int(2 * S / I)
print(axis)

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++

include<iostream>

using namespace std;

int main(void) {
	int s,a;
	cin >> s;
	int i=1;
	while(i*i < s)i++;
	a = i * i;
	cout << "0 0 1 " << i << " " << i << " " << a-s << endl;
}



Compiler output:
a.cc:1:1: error: 'include' does not name a type
    1 | include<iostream>
      | ^~~~~~~
a.cc: In function 'int main()':
a.cc:7:9: error: 'cin' was not declared in this scope
    7 |         cin >> s;
      |         ^~~
a.cc:11:9: error: 'cout' was not declared in this scope
   11 |         cout << "0 0 1 " << i << " " << i << " " << a-s << endl;
      |         ^~~~
a.cc:11:60: error: 'endl' was not declared in this scope
   11 |         cout << "0 0 1 " << i << " " << i << " " << a-s << endl;
      |                                                            ^~~~
Language: C++

#include<iostream>
#include<string>
#include<vector>
#include<algorithm>
#include<bits/stdc++.h>
#include<cmath>
#include<bitset>
#define ll long long
#define FOR(i,a,b) for(int i=(a);i<(b);++i)
#define FFOR(i,a,b) for(int i=(a);i<=(b);++i)
#define REP(i,n)  FOR(i,0,n)
#define RREP(i,n)  FFOR(i,0,n)
#define SORT(V) sort((V).begin(),(V).end())
#define INF ((1LL<<62)-(1LL<<31))
#define MOD 1000000007
using namespace std;

int main(){
  ll S;
  cin>>S;
  ll X,Y,XX,YY;
  else{
    XX=sqrt(S)+1;
    Y=XX;
    if(XX==Y*(XX*Y-S)){
      XX+=1;
      X=XX*Y-S;
      YY=1;
    }
    else{
      YY=XX*Y-S;
      X=1;
    }
  }
  cout<<X<<" "<<Y<<" "<<XX<<" "<<YY<<" "<<0<<" "<<0<<endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:22:3: error: 'else' without a previous 'if'
   22 |   else{
      |   ^~~~
Language: C++

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

const long long inf = 1e9;

inline long long read(){
    char c=getchar();long long x=0,f=1;
    while(c<'0'||c>'9'){if(c=='-')f=-1;c=getchar();}
    while(c>='0'&&c<='9'){x=x*10+c-'0';c=getchar();}
    return x*f;
}

long long s, a, b;

int main()
{
    //freopen("C:/Users/MACHENIKE/Desktop/data.in","r",stdin);
    s = read();
    if (s <= inf) {printf("0 0 0 1 %lld 0", s); return 0;}
    a = sqrt(s) + 1;
    b = a * a - x;
    printf("0 0 %lld %lld 1 %lld", a, b, a);
    return 0;
}



Compiler output:
a.cc: In function 'int main()':
a.cc:21:17: error: 'x' was not declared in this scope
   21 |     b = a * a - x;
      |                 ^
Language: C++

//include
//------------------------------------------
#include <vector>
#include <list>
#include <map>
#include <set>
#include <deque>
#include <queue>
#include <stack>
#include <bitset>
#include <algorithm>
#include <functional>
#include <numeric>
#include <utility>

#include <sstream>
#include <iostream>
#include <iomanip>
#include <cstdio>
#include <cmath>
#include <cstdlib>
#include <cctype>
#include <string>
#include <cstring>
#include <ctime>

#include <stdexcept>

using namespace std;

// type alias
using ll = long long;
using ull = unsigned long long;

//conversion
//------------------------------------------
inline int toint(string s) { int v; istringstream sin(s); sin >> v; return v; }
template<class t> inline string tostring(t x) { ostringstream sout; sout << x; return sout.str(); }

//debug
#define DUMP(x)  cerr << #x << " = " << (x) << endl
#define DEBUG(x) cerr << #x << " = " << (x) << " (l" << __line__ << ")" << " " << __file__ << endl

inline ll floor(ll a, ull b)
{
	ll llb = b;
	if (a >= 0)
	{
		return a / llb;
	}
	else
	{
		return - ( (-a + llb - 1) / llb);
	}
}

inline ll ceil(ll a, ull b)
{
	ll llb = b;
	if (a >= 0)
	{
		return (a + llb - 1) / llb;
	}
	else
	{
		return - (-a / llb);
	}
}

inline ll getLowestOneBit(ll a)
{
	return a & (-a);
}

inline ll getHighestOneBit(ll a)
{
	while ((a & (a - 1)) != 0)
	{
		a = a & (a - 1);
	}
	return a;
}

inline bool isPower2(ull a)
{
	if (a == 0)
	{
		return false;
	}
	return !(a & (a - 1));
}

inline ll getSpecifiedBit(ll a, unsigned bit)
{
	return (a & (1LL << bit)) >> bit;
}

// computational complexity: o(log(max(a, b))) 
inline ull getGcd(ull a, ull b)
{
	if (b == 0)
	{
		return a;
	}
	return getGcd(b, a % b);
}

template<class Integer>
inline Integer getPower(Integer base, ull exponential)
{
	Integer result = 1;
	while (exponential >= 1)
	{
		if (exponential & 1)
		{
			result = result * base;
		}
		base = base * base;
		exponential >>= 1;
	}

	return result;
}

ll dfs(ll currNode, const vector<set<ll>>& edges, vector<ll>& lengths, vector<bool>& haveChecked)
{
	if (lengths[currNode] != -1)
	{
		return lengths[currNode];
	}

	haveChecked[currNode] = true;
	ll length = 0;
	for (auto& node : edges[currNode])
	{
		if (haveChecked[node])
		{
			continue;
		}
		length = max(length, dfs(node, edges, lengths, haveChecked) + 1);
	}
	lengths[currNode] = length;

	return length;
}

struct Edge {
	ll to, cap, rev;
};

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

	ll S;
	cin >> S;

	ll m = sqrt(long double(S));
	if (S < m * m)
	{
		--m;
	}

	ll X1, Y1, X2, Y2, X3, Y3;

	if (S == m * m)
	{
		cout << 0 << " " << 0 << " " << m << " " << 0 << " " << 0 << " " << m << endl;
	}
	else if ( S <= m * m + m )
	{
		ll i = S - m * m;
		cout << 0 << " " << 1 << " " << m << " " << 0 << " " << i << " " << m + 1 << endl;
	}
	else
	{
		ll i = S - m * m;
		cout << 0 << " " << 0 << " " << 1 << " " << m + 1 << " " << m + 1 << " " << m * 2 + 1 - i << endl;

	}

	return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:159:21: error: expected primary-expression before 'long'
  159 |         ll m = sqrt(long double(S));
      |                     ^~~~
Language: C

#include <stdio.h>

int main(void){
  int s;
  int x1,y1,x2,y2,x3,y3;
  
  cin >> s;
  x1 = 0;
  y1 = 0;
  x3=0;
  y2=0;
  for(int i = 1;i<1000000001;i++){
    if(s%i==0){
      x2 = i;
      y3 = s/i;
      break;
    }
  }
  printf("%d %d %d %d %d %d\n",x1,y1,x2,y2,x3,y3);
  
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:7:3: error: 'cin' undeclared (first use in this function)
    7 |   cin >> s;
      |   ^~~
main.c:7:3: note: each undeclared identifier is reported only once for each function it appears in
Language: C++

#include <iostream>
#include <vector>

using namespace std;
typedef long long ll;

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

    ll T = sqrt(S) + 1;
    ll diff = T - S;


    

    cout << "0 0 " << T << " " << diff << "1 " << T << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:12: error: 'sqrt' was not declared in this scope
   11 |     ll T = sqrt(S) + 1;
      |            ^~~~
Language: C

/*

*/
#include<iostream>
#include<cstdio>
#include<cstdlib>
#include<cstring>
#include<string>
#include<algorithm>
#include<vector>
#include<set>
#include<stack>
#include<queue>
#include<map>
#include<cmath>
#include<bitset>
using namespace std;
#define ll long long
#define N 100003
#define INF 0x3f3f3f3f
#define mod1 998244353
template <typename T> inline void read(T &x){char c; bool nega=0; while((!isdigit(c=getchar()))&&(c!='-')); if(c=='-'){nega=1; c=getchar();} x=c-48; while(isdigit(c=getchar())) x=x*10+c-48; if(nega) x=-x;}
template <typename T> inline void writep(T x){if(x>9) writep(x/10); putchar(x%10+48);}
template <typename T> inline void write(T x){if(x<0){ putchar('-'); x=-x;} writep(x);}
template <typename T> inline void writeln(T x){write(x); putchar('\n');}
int n, a[N];
ll multiMod(ll a,ll b,ll mod){
    ll ret = 0LL;
    a %= mod;
    while( b ){
        if ( b & 1LL ) ret = ( ret + a ) % mod, --b;
        b >>= 1LL;
        a = ( a + a ) % mod;
    }
    return ret;
}
ll gcd(ll a,ll b){
    if (0L == a || 0L == b) return 1;
    if ( a < 0 ) a = -a;
    if ( b < 0 ) b = -b;
    while(b){
        ll t = a % b;
        a = b;
        b = t;
    }
    return a;
}

ll Pollard_Rho(ll n,ll c){
    ll i = 1, k = 2;
    ll x = rand() % n;
    ll y = x;
    while(1){
        ++i;
        x = ( multiMod(x,x,n) + c ) % n;
        ll d = gcd(y-x,n);
        if (d!=1LL && d!=n) return d;
        if (y == x) return n;
        if ( i == k ) y = x, k <<= 1;
    }
}

int main(){
	ios::sync_with_stdio(0), cin.tie(0), cout.tie(0);
	int i, j, t;
	long long s;

	//freopen(".in", "r", stdin);
	//freopen(".out", "w", stdout);
	cin>>s;
	long long ret=1, a=1;
	while(1){
		long long b = s/a;
		long long a = Pollard_Rho(b,3);
		if(ret*a>=s || ret*a>1e9 || a==b)
			break;		
		ret *= a;
		//cout<<ret<<endl;		
	}
	long long x = ret, y = s/ret;
	cout<<0<<' '<<0<<' '<<x<<' '<<0<<' '<<x/2<<' '<<y<<endl;
	//cout<<ret<<endl;

	return 0;
}


Compiler output:
main.c:4:9: fatal error: iostream: No such file or directory
    4 | #include<iostream>
      |         ^~~~~~~~~~
compilation terminated.
Language: C++

#include <bits/stdc++.h>
#define REP(i,n) for(int i=0;i<(n);i++)
#define ALL(a)  (a).begin(),(a).end()
#define SORT(c) sort((c).begin(),(c).end())
#define REV(c) reverse((c).begin(),(c).end())

using namespace std;
typedef pair<int,int> P;

// 最大公約数
int64_t gcd(int64_t a, int64_t b) {
  return b != 0 ? gcd(b, a % b) : a;
}

// 最小公倍数
int64_t lcm(int64_t a, int64_t b) {
  return a * b / gcd(a, b);
}

int ctoi(char c){
  return c - '0';
}

int main(){
  int64_t s;
  cin >> s;
  if (s > pow(10,9)){
    if (s%2 == 0){
      cout << "0 0 " << s/2 << " 0 " << s/2 <<  " 2" << endl;
    }else{
      int64_t x2 = pow(10,9);
      int64_t y3 = pow(10,9);
      int64_t a = xw * y3 - s;
      int64_t x3,y3;
      y3 = a;
      x3 = 1;
      cout << "0 0 " << x2 << " " << y2 << " " << x3 << " " << y3 << endl;
    }
  }else{
    cout << "0 0 " << s << " 0 " << s <<  " 1" << endl;
  }
  return 0;
}



Compiler output:
a.cc: In function 'int main()':
a.cc:33:19: error: 'xw' was not declared in this scope; did you mean 'x2'?
   33 |       int64_t a = xw * y3 - s;
      |                   ^~
      |                   x2
a.cc:34:18: error: redeclaration of 'int64_t y3'
   34 |       int64_t x3,y3;
      |                  ^~
a.cc:32:15: note: 'int64_t y3' previously declared here
   32 |       int64_t y3 = pow(10,9);
      |               ^~
a.cc:37:38: error: 'y2' was not declared in this scope; did you mean 'y3'?
   37 |       cout << "0 0 " << x2 << " " << y2 << " " << x3 << " " << y3 << endl;
      |                                      ^~
      |                                      y3
Language: C++


#include <iostream>
#include <stdlib.h>
#include <string.h>
#include <algorithm>
#include <stdio.h>
#include<cmath>
const int Times = 10;
const int N = 5500;

using namespace std;
typedef long long LL;

LL ct, cnt;
LL fac[N], num[N];

LL gcd(LL a, LL b)
{
    return b? gcd(b, a % b) : a;
}

LL multi(LL a, LL b, LL m)
{
    LL ans = 0;
    a %= m;
    while(b)
    {
        if(b & 1)
        {
            ans = (ans + a) % m;
            b--;
        }
        b >>= 1;
        a = (a + a) % m;
    }
    return ans;
}

LL quick_mod(LL a, LL b, LL m)
{
    LL ans = 1;
    a %= m;
    while(b)
    {
        if(b & 1)
        {
            ans = multi(ans, a, m);
            b--;
        }
        b >>= 1;
        a = multi(a, a, m);
    }
    return ans;
}

bool Miller_Rabin(LL n)
{
    if(n == 2) return true;
    if(n < 2 || !(n & 1)) return false;
    LL m = n - 1;
    int k = 0;
    while((m & 1) == 0)
    {
        k++;
        m >>= 1;
    }
    for(int i=0; i<Times; i++)
    {
        LL a = rand() % (n - 1) + 1;
        LL x = quick_mod(a, m, n);
        LL y = 0;
        for(int j=0; j<k; j++)
        {
            y = multi(x, x, n);
            if(y == 1 && x != 1 && x != n - 1) return false;
            x = y;
        }
        if(y != 1) return false;
    }
    return true;
}

LL pollard_rho(LL n, LL c)
{
    LL i = 1, k = 2;
    LL x = rand() % (n - 1) + 1;
    LL y = x;
    while(true)
    {
        i++;
        x = (multi(x, x, n) + c) % n;
        LL d = gcd((y - x + n) % n, n);
        if(1 < d && d < n) return d;
        if(y == x) return n;
        if(i == k)
        {
            y = x;
            k <<= 1;
        }
    }
}

void find(LL n, int c)
{
    if(n == 1) return;
    if(Miller_Rabin(n))
    {
        fac[ct++] = n;
        return ;
    }
    LL p = n;
    LL k = c;
    while(p >= n) p = pollard_rho(p, c--);
    find(p, k);
    find(n / p, k);
}

int main()
{
    LL n;
    cin>>n;
    LL q=sqrt(n);
    if (q*q<S) q++;

    LL x1=0,y1=0,x2=0,y2=0,x3=0,y3=0;
    x2=q;
    y3=q;
    y2=1;
    x3=x2*y3-n;
    cout<<x1<<' '<<y1<<' '<<x2<<' '<<y2<<' '<<x3<<' '<<y3<<endl;

    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:123:13: error: 'S' was not declared in this scope
  123 |     if (q*q<S) q++;
      |             ^
Language: Java

import java.util.*;
import java.io.*;
import java.lang.*;
import java.math.*;
public class A {
    public static void main(String[] args) throws Exception {
        BufferedReader bf = new BufferedReader(new InputStreamReader(System.in));
        PrintWriter out = new PrintWriter(new OutputStreamWriter(System.out));
        long n = Long.parseLong(bf.readLine());
        long sq = (long)Math.ceil(Math.sqrt(n));
        long sq1 = sq*sq;
        long diff1 = sq1-n;
        long sq2 = sq*(sq-1);
        long diff2 = sq2 - n;
        if((diff2 >= 0) && (diff2 < diff1)) {
          out.println(sq + " " + diff2 + " " + 1 + " " + (sq-1) + " " + 0 + " " + 0);
        }
        else {
          out.println(sq + " " + diff1 + " " + 1 + " " + (sq) + " " + 0 + " " + 0);
        }

        // StringTokenizer st = new StringTokenizer(bf.readLine());
        // int[] a = new int[n]; for(int i=0; i<n; i++) a[i] = Integer.parseInt(st.nextToken());
        // int n = Integer.parseInt(st.nextToken());

        out.close(); System.exit(0);
    }
}


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

#include<bits/stdc++.h>

using namespace std;

using ll = long long;
const int inf = (int)1e9;
ll s;
int x1 = inf, x2 = 1, y1, y2;

int main () {
    ios_base::sync_with_stdio(0); cin.tie(0); cout.tie(0);

    cin >> s;
    y2 = (int)( (s + x1 - 1) / x1);

    y1 = (int)(1LL * x1 * y2 - s);

    cout << 0 << ' ' << 0 << ' ' << x1 << ' ' << y1 << ' ' << x2 << ' ' << y2 << '\n';

    return 0;
}


Compiler output:
a.cc:8:23: error: 'int y1' redeclared as different kind of entity
    8 | int x1 = inf, x2 = 1, y1, y2;
      |                       ^~
In file included from /usr/include/features.h:523,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/os_defines.h:39,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/c++config.h:683,
                 from /usr/include/c++/14/cassert:43,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:33,
                 from a.cc:1:
/usr/include/x86_64-linux-gnu/bits/mathcalls.h:257:1: note: previous declaration 'double y1(double)'
  257 | __MATHCALL (y1,, (_Mdouble_));
      | ^~~~~~~~~~
a.cc: In function 'int main()':
a.cc:16:8: error: assignment of function 'double y1(double)'
   16 |     y1 = (int)(1LL * x1 * y2 - s);
      |     ~~~^~~~~~~~~~~~~~~~~~~~~~~~~~
Language: C++

#include <iostream>

using namespace std;

int main()
{
	long long int S;
	cin >> S;
	long int x[2];
	long int y[2];
	x[0] = 0; y[0] = 0;
	x[1] = sqrt(S); y[1] = S / x[1];
	x[2] = 2 * x[1]; y[2] = 0;

	for (int i = 0; i < 3; i++) {
		cout << x[i] << " " << y[i] << " ";
	}
   return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:16: error: 'sqrt' was not declared in this scope
   12 |         x[1] = sqrt(S); y[1] = S / x[1];
      |                ^~~~
Language: C++

#include <iostream>
#include <string>
#include <algorithm>
#include <vector>
#include <cmath>
#include <numeric>
#include <set>
#include <list>
#include <map>
#include<queue>


int main()
{
	long long int S;
	cin >> S;
	long int x[2];
	long int y[2];
	x[0] = 0; y[0] = 0;
	x[1] = sqrt(S); y[1] = S / x[1];
	x[2] = 2 * x[1]; y[2] = 0;

	for (int i = 0; i < 3; i++) {
		cout << x[i] << " " << y[i] << " ";
	}
   return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:16:9: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
   16 |         cin >> S;
      |         ^~~
      |         std::cin
In file included from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:24:17: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   24 |                 cout << x[i] << " " << y[i] << " ";
      |                 ^~~~
      |                 std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
Language: C++

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

main int () {
	long S;
	cin >> S;
	long r, a, b;
	r = (long)sqrt(S-1)+1;
	for (long i=0; i <= r; ++i){
		b = (S-r*i)/(r-i);
		if (S == r*(i+b)-i*b) {
			a = i;
			break;
		}
	}
//	cout << r << " " << a << " " << b << endl;
	cout << r << " " << r << " ";
	cout << 0 << " " << b << " ";
	cout << a << " " << 0 << endl;
}


Compiler output:
a.cc:4:1: error: 'main' does not name a type
    4 | main int () {
      | ^~~~
Language: C++

#include <algorithm>
#include <iostream>
#include <map>
#include <numeric>
#include <set>
#include <string>
#include <unordered_map>
#include <unordered_set>
#include <vector>
#include <queue>
#define MOD (1000000007l)
#define rep(i, n) for(long i = 0; i < (n); i++)

using namespace std;

void solve() {
  long S;
  cin >> S;

  long foo = sqrt(S);
  while (foo * foo < S) foo++;

  long ad = foo * foo;

  long bc = ad - S;

  if (bc == 0) {
    cout << 0 << " " << 0 << " " <<
            foo << " " << 0 << " " <<
            0 << " " << foo << endl;
    return;
  }

  map<long, long> mp;
  long tmp = bc;
  while (tmp % 2 == 0) {
    mp[2]++;
    tmp /= 2;
  }
  for (long i = 3; tmp != 1; i+= 2) {
    while (tmp % i == 0) {
      mp[i]++;
      tmp /= i;
    }
  }
  long b = 1;
  long c = 1;

  for (auto it: mp) {
    for (long i = 0; i < it.second; i++) {
      if (b < c) b *= it.first;
      else c *= it.first;
    }
  }

  cout << 0 << " " << 0 << " " <<
          foo << " " << b << " " <<
          b << " " << foo << endl;
}

int main(void) {
  cin.tie(0);
  ios::sync_with_stdio(false);
  cout.precision(12);
  solve();
  return 0;
}


Compiler output:
a.cc: In function 'void solve()':
a.cc:20:14: error: 'sqrt' was not declared in this scope
   20 |   long foo = sqrt(S);
      |              ^~~~
Language: C++

#include <queue>
#include <cstdio>
#include <iostream>
#include <math.h>
#include <set>
#include <map>
#include <string>
#include <vector>
#include <sstream>
#include <algorithm>
#include <iomanip>
#include <stack>
using namespace std;
typedef long long int ll;

#define EPS (1e-9)
#define INF (1e9)
#define PI (acos(-1))
#define REP(i,n) for(int i=0;i<n;i++)

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

ll beki(ll a, ll b) {
	ll tmp = 1;
	REP(i, b) tmp *= a;
	return tmp;
}

ll S;

int main() {
	cin >> S;

	cout << 0 << " " << 0 << " ";

	long float tmp = sqrtl(S);
	ll tmp2 = ll(tmp);
	if (tmp - tmp2 != 0) {
		tmp2++;
	}

	ll x2 = tmp2 * tmp2 - S;
	ll y1 = 1;
	ll x1 = tmp2;
	ll y2 = tmp2;

	cout << x1 << " " << y1 << " " << x2 << " " << y2 << endl;

	ll S2 = (x1 * y2 - x2 * y1);
	cout << S2 << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:39:9: error: 'long' specified with 'float'
   39 |         long float tmp = sqrtl(S);
      |         ^~~~
Language: Java

public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int S = sc.nextInt();
        int[] answer = new int[6];
        int x = 0;
        for (int i = 1; i < 1000000000; i++) {
            if (i * i >= S) {
                answer[0] = i;
                answer[1] = i;
                answer[2] = 0;
                answer[3] = i / 2;
                answer[4] = i / 2;
                answer[5] = 0;
                break;
            }
        }
        for (int i = 0; i < 6; i++)
            if (i == 5) {
                System.out.println(answer[i]);
            } else {
                System.out.print(answer[i] + " ");
            }
    }
}

Compiler output:
Main.java:3: error: cannot find symbol
        Scanner sc = new Scanner(System.in);
        ^
  symbol:   class Scanner
  location: class Main
Main.java:3: error: cannot find symbol
        Scanner sc = new Scanner(System.in);
                         ^
  symbol:   class Scanner
  location: class Main
2 errors
Language: C++

#include<bits/stdc++.h>
#define vll vector<ll>
#define vi vector<int>
#define vpll vector<pair<ll,ll>>
#define pii pair<int,int>
#define REP(i,a) for(int (i)=0; (i)<(a); (i)++)
#define RREP(i,a) for(int (i)=a-1; (i)>=(0); (i)--)
#define REP2(i,a,b) for(int (i)=(a); (i)<(b); (i)++)
#define MOD 1000000007
#define ALL(v) v.begin(), v.end()
#define m0(x) memset(x,0,sizeof(x))
typedef long long ll;

using namespace std;

int gcd(int a,int b){return b?gcd(b,a%b):a;}
int dx[4]={1,0,-1,0};
int dy[4]={0,1,0,-1};

int main(){
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  ll S;
  cin>>S;
  bool big =false;
  if(S>=1000000000) big = true;
  if(!big) cout<<0<<" "<<0<<" "<<1<<" "<<0<<" "<<S<<" "<<0;
  ll X1,X2,X3,Y1,Y2,Y3;
  X1=0;
  Y1=0;
  X3=1;
  Y2=1;
  S++;
  Y3=1;
  REP(i,1000000000){
    if(S%i==0)Y3=max(Y3,i);
  }
  X2=S/Y3;
  cout<<X1<<" "<<X2<<" "<<X3<<" "<<Y1<<" "<<Y2<<" "<<Y3;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:36:21: error: no matching function for call to 'max(ll&, int&)'
   36 |     if(S%i==0)Y3=max(Y3,i);
      |                  ~~~^~~~~~
In file included from /usr/include/c++/14/algorithm:60,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:51,
                 from a.cc:1:
/usr/include/c++/14/bits/stl_algobase.h:257:5: note: candidate: 'template<class _Tp> constexpr const _Tp& std::max(const _Tp&, const _Tp&)'
  257 |     max(const _Tp& __a, const _Tp& __b)
      |     ^~~
/usr/include/c++/14/bits/stl_algobase.h:257:5: note:   template argument deduction/substitution failed:
a.cc:36:21: note:   deduced conflicting types for parameter 'const _Tp' ('long long int' and 'int')
   36 |     if(S%i==0)Y3=max(Y3,i);
      |                  ~~~^~~~~~
/usr/include/c++/14/bits/stl_algobase.h:303:5: note: candidate: 'template<class _Tp, class _Compare> constexpr const _Tp& std::max(const _Tp&, const _Tp&, _Compare)'
  303 |     max(const _Tp& __a, const _Tp& __b, _Compare __comp)
      |     ^~~
/usr/include/c++/14/bits/stl_algobase.h:303:5: note:   candidate expects 3 arguments, 2 provided
In file included from /usr/include/c++/14/algorithm:61:
/usr/include/c++/14/bits/stl_algo.h:5706:5: note: candidate: 'template<class _Tp> constexpr _Tp std::max(initializer_list<_Tp>)'
 5706 |     max(initializer_list<_Tp> __l)
      |     ^~~
/usr/include/c++/14/bits/stl_algo.h:5706:5: note:   candidate expects 1 argument, 2 provided
/usr/include/c++/14/bits/stl_algo.h:5716:5: note: candidate: 'template<class _Tp, class _Compare> constexpr _Tp std::max(initializer_list<_Tp>, _Compare)'
 5716 |     max(initializer_list<_Tp> __l, _Compare __comp)
      |     ^~~
/usr/include/c++/14/bits/stl_algo.h:5716:5: note:   template argument deduction/substitution failed:
a.cc:36:21: note:   mismatched types 'std::initializer_list<_Tp>' and 'long long int'
   36 |     if(S%i==0)Y3=max(Y3,i);
      |                  ~~~^~~~~~
Language: C++

#include<cmath>
#include<cstdio>
#define int long long
#define rep(i,a,b) for(int i=(a);i<=(b);++i)
template<typename T>inline void rd(T&x){int fl=0,ch;while(ch=getchar(),ch<48||57<ch)fl^=!(ch^45);x=(ch&15);while(ch=getchar(),47<ch&&ch<58)x=x*10+(ch&15);if(fl)x=-x;}
template<typename T>inline void pt(T x){if(x<0)putchar('-'),x=-x;if(x>9)pt(x/10);putchar(x%10+48);}
template<typename T>inline void pt(T x,int ch){pt(x),putchar(ch);}
template<typename T>inline T max(const T&x,const T&y){return x<y?y:x;}
template<typename T>inline T min(const T&x,const T&y){return x<y?x:y;}
int S,sq,x1,y1,x2,y2;
signed main(){
	rd(S),sq=1+(int)sqrt(S);
	S=sq*sq-S,x1=y2=sq;
	if(S<=1000000000)y1=1,x2=S;
	else{
		for(int i=2;i*i<=S;++i)
			if(S%i==0){y1=i,x2=S/i;break;}
	}
	printf("%lld %lld %lld %lld %lld %lld\n",0ll,0ll,x1,y1,x2,y2);
	return 0;
}

Compiler output:
a.cc:10:13: error: 'long long int y1' redeclared as different kind of entity
   10 | int S,sq,x1,y1,x2,y2;
      |             ^~
In file included from /usr/include/features.h:523,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/os_defines.h:39,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/c++config.h:683,
                 from /usr/include/c++/14/bits/requires_hosted.h:31,
                 from /usr/include/c++/14/cmath:41,
                 from a.cc:1:
/usr/include/x86_64-linux-gnu/bits/mathcalls.h:257:1: note: previous declaration 'double y1(double)'
  257 | __MATHCALL (y1,, (_Mdouble_));
      | ^~~~~~~~~~
a.cc: In function 'int main()':
a.cc:14:28: error: assignment of function 'double y1(double)'
   14 |         if(S<=1000000000)y1=1,x2=S;
      |                          ~~^~
a.cc:17:38: error: assignment of function 'double y1(double)'
   17 |                         if(S%i==0){y1=i,x2=S/i;break;}
      |                                    ~~^~
Language: C++

#include<iostream>
#include<cstdio>
#include<algorithm>
using namespace std;
typedef long long ll;
ll s;
int main(){
    cin>>s;
    ll a,b,c,d;
    a=d=sqrt(s);b=-1,c=s-a*d;
    ll x1=0,x2=a,x3=c,y2=0,y1=1,y3=1+d;
    cout<<x1<<" "<<y1<<" "<<x2<<" "<<y2<<" "<<x3<<" "<<y3<<endl;
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:10:9: error: 'sqrt' was not declared in this scope
   10 |     a=d=sqrt(s);b=-1,c=s-a*d;
      |         ^~~~
Language: C++

#include<bits/stdc++.h>
#define ll long long
#define pb push_back
#define mp make_pair
#define pob pop_back
#define pp push
#define pf push_front 
#define pof pop_front 
using namespace std;
#include <ext/pb_ds/assoc_container.hpp> 
#include <ext/pb_ds/tree_policy.hpp> 
using namespace __gnu_pbds; 
#define ordered_set tree< ll  , null_type,less<ll >, rb_tree_tag,tree_order_statistics_node_update>
#define m 998244353
#define ff first
#define ss second
int main(){
	ll s;
	cin>>s;
	ll x2,y3;
	ll d=pow(s,0.5);
	for(ll i=d;i>=1;i--){
		if(s%d==){
			x2=d;
			y3=s/d;
		}
	}
	cout<<"0 "<<"0 "<<x2<<" "<<"0 "<<"2 "<<y3;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:23:25: error: expected primary-expression before ')' token
   23 |                 if(s%d==){
      |                         ^
Language: C++

#include <iostream>
#include <string>
#include <string.h>
#include <vector>
#include <algorithm>
#define ll long long

using namespace std;

const long long mod = 1e9+7;

int main(){
	ll s;
    cin >> s;
    ll ax, ay, bx, by, cx,cy;

    ax = 0;
    ay = 0;
    by = 0;

    if(s <= 1e9){
        cout << ax << " " << ay << " " << 1 << " " << by << " " << 0 << " " << s << endl;
    }else if(s^1){
        for(ll i = 3; double(i) < sqrt(double(s)); i += 2){
            if(s%i == 0){
                cout << ax << " " << ay << " " << i << " " << by << " " << 0 << " " << s/i << endl;
            }
        }
    }else{
        cout << ax << " " << ay << " " << 2 << " " << by << " " << 0 << " " << s/2 << endl;
    }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:24:35: error: 'sqrt' was not declared in this scope
   24 |         for(ll i = 3; double(i) < sqrt(double(s)); i += 2){
      |                                   ^~~~
Language: C++

#include <iostream>
using namespace std;
int main() {
  cin.tie(0);
  ios::sync_with_stdio(false);

  int S;
  cin >> S;
  int x = S;
  int x1=0, y1 = 0;
  int x2=1, y2=0, x3 = 0, y3 = S;
  if(y3 >= 1000000000){
    x2++;
    while(y3%x2 != 0){
      x2++;
    }
  	y3 = y3/x2
  }
  
  cout << x1 << y1 << x2 << y2 << x3 << y3 << "\n";
}

Compiler output:
a.cc: In function 'int main()':
a.cc:17:19: error: expected ';' before '}' token
   17 |         y3 = y3/x2
      |                   ^
      |                   ;
   18 |   }
      |   ~
Language: C++

from math import ceil, sqrt
S = int(input())
x1, y1 = 0, 0
y2 = 0
x3 = 0
if S <= 10**9:
    x2, y2 = S, 0
    x3, y3 = 0, 1
else:
    sq_s = ceil(sqrt(S))
    x2, y2 = sq_s*sq_s - S, sq_s
    x3, y3 = sq_s, 1

print(x1, y1, x2, y2, x3, y3)


Compiler output:
a.cc:1:1: error: 'from' does not name a type
    1 | from math import ceil, sqrt
      | ^~~~
Language: C++

#include <cmath>
#include <iostream>

using namespace std;

int main() {
  int s;
  cin >> s;
  
  int tmp = 1;
  
  for (int i = 1; i < sqrt(s); i++) {
    if (s % i == 0) tmp = i;
  }
  
  cout << 0 << " " << 0 << " " << 0 << " "
    << tmp << " " << s / tmp << " " << 0 << endl;
}​include Math
s = gets.to_i
for i in 1 .. sqrt(s)
  if s % i == 0
    tmp = i
  end
end
puts "0 0 0 #{tmp} #{s/tmp} 0"

Compiler output:
a.cc:18:2: error: '\U0000200binclude' does not name a type
   18 | }​include Math
      |  ^~~~~~~
Language: C++

#include <iostream>
#include <algorithm>
#include <vector>
#include <string>
using namespace std;

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

	long long t = 1;
	int cnt=0;
	while(t < S)
	{	
		t*=10;
		cnt++;
	}

	long long a1=1,a2=1,b1=1,b2=1;
	a1 = pow(10, cnt/2);
	b2 = pow(10, cnt-cnt/2);

	S=t-S;

	vector<long long>prime;
	for (long long i = 2; i * i <= S; i++)
	{
		while (S % i == 0)
		{
			prime.push_back(i);
			S /= i;
		}
	}
	if(S!=1)prime.push_back(S);
	
	for (int i = (int)prime.size() - 1; i >= 0; i--)
	{
		//cerr<<prime[i]<<endl;
		if (a2 > b1)
		{
			b1*=prime[i];
		}
		else
		{
			a2*=prime[i];
		}
	}

	//cerr<<abs(a1*b2-a2*b1)<<endl;
	cout<<0<<" "<<0<<" "<<a1<<" "<<a2<<" "<<b1<<" "<<b2<<endl;

	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:19:14: error: 'pow' was not declared in this scope
   19 |         a1 = pow(10, cnt/2);
      |              ^~~
Language: C++

# coding: utf-8
# Your code here!

import sys
sys.setrecursionlimit(10**6)
readline = sys.stdin.readline #文字列入力のときは注意

s = int(input())
#a = [int(i) for i in readline().split()]
#s = (10**9-1)**2+1
r = int(s**0.5)

res = r+5

for i in range(10,-10,-1):
    if r+i > 0 and (r+i)**2 >= s:
        res = r+i
    
if res*res-s <= 10**9:
    print(0,0,res,1,res*res-s,res)
else:
    print(0,0,res,1,res*(res-1)-s,res-1)
    

Compiler output:
a.cc:1:3: error: invalid preprocessing directive #coding
    1 | # coding: utf-8
      |   ^~~~~~
a.cc:2:3: error: invalid preprocessing directive #Your
    2 | # Your code here!
      |   ^~~~
a.cc:6:31: error: stray '#' in program
    6 | readline = sys.stdin.readline #文字列入力のときは注意
      |                               ^
a.cc:9:2: error: invalid preprocessing directive #a
    9 | #a = [int(i) for i in readline().split()]
      |  ^
a.cc:10:2: error: invalid preprocessing directive #s
   10 | #s = (10**9-1)**2+1
      |  ^
a.cc:4:1: error: 'import' does not name a type
    4 | import sys
      | ^~~~~~
a.cc:4:1: note: C++20 'import' only available with '-fmodules-ts'
Language: C++

#include<bits/stdc++.h>
#define nd second
#define st first
#define pb push_back
#define pa make_pair

using namespace std;
typedef long long int lo;

lo a,b,c,d,e,g,h[500005],arr[500005];

int main(){
	cin >> a;
	for(lo i=sqrt(a),i>=0;i--){
		if(a%i==0){
			cout << 0 << ' ' << 0 << ' ' << i << ' ' << 0 << ' ' << 0 << ' ' << a/i;
		}
	}
 }

Compiler output:
a.cc: In function 'int main()':
a.cc:14:27: error: expected ';' before '>=' token
   14 |         for(lo i=sqrt(a),i>=0;i--){
      |                           ^~
      |                           ;
a.cc:14:27: error: expected primary-expression before '>=' token
   14 |         for(lo i=sqrt(a),i>=0;i--){
      |                           ^~
Language: C++

#include <iostream>
#include <algorithm>
#include <vector>
#include <set>
#include <list>
#include <math.h>
#define pi M_PI
#define int long long


using namespace std;








signed main(){
    int S;
    cin >> S;
    int w,h;
    cout << 0 << " " << 0 << " ";
    cout << 0 << " " << 1 << " ";
    cout << 2*S << " " << 0 << endl;
}

#include <iostream>
#include <algorithm>
#include <vector>
#include <set>
#include <list>
#include <math.h>
#define pi M_PI
#define int long long


using namespace std;








signed main(){
    int S;
    cin >> S;
    int w,h;
    cout << 0 << " " << 0 << " ";
    cout << 1 << " " << 0 << " ";
    cout << 0 << " " << S << endl;
}



Compiler output:
a.cc:48:8: error: redefinition of 'int main()'
   48 | signed main(){
      |        ^~~~
a.cc:20:8: note: 'int main()' previously defined here
   20 | signed main(){
      |        ^~~~
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(){
 long long int s,x1=0,x2=0,x3=0,y1=0,y2=0,y3=0;
 double m;
 cin>>s;
 while(1){
   for(;;)x1++
     for(;;)x2++
       for(;;)x3++
         for(;;)y1++
           for(;;)y2++
             for(;;){
               y3++;
               s=(x1-x2)*(y3-y1);
               if(s==m){cout<<m;break;}
                    }
 }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:15: error: expected ';' before 'for'
    8 |    for(;;)x1++
      |               ^
      |               ;
    9 |      for(;;)x2++
      |      ~~~       
a.cc:9:12: error: expected primary-expression before ')' token
    9 |      for(;;)x2++
      |            ^
a.cc:10:14: error: expected primary-expression before ')' token
   10 |        for(;;)x3++
      |              ^
a.cc:11:16: error: expected primary-expression before ')' token
   11 |          for(;;)y1++
      |                ^
a.cc:12:18: error: expected primary-expression before ')' token
   12 |            for(;;)y2++
      |                  ^
a.cc:13:20: error: expected primary-expression before ')' token
   13 |              for(;;){
      |                    ^
Language: C

import math

s = int(input())
div = 1
for i in range(2,int(math.sqrt(s))+1):
	if s%i==0:
		div = i

print(0,0,div,0,0,s//div)

Compiler output:
main.c:1:1: error: unknown type name 'import'
    1 | import math
      | ^~~~~~
main.c:3:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before 's'
    3 | s = int(input())
      | ^