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

////////////////////////////////////////////
///                                      ///
///         Template ver. 1 rapel        ///
/// Fear is Temporary, Regret is Forever ///
///          Must Try and Get AC         ///
///                                      ///
////////////////////////////////////////////
#include <stdio.h>
#include <iostream>
#include <sstream>
#include <iomanip>

#include <algorithm>
#include <stdlib.h>
#include <string.h>
#include <string>
#include <utility>

#include <math.h>
#include <complex>

#include <assert.h>
#include <time.h>
//#include <chrono>
//#include <random>

#include <vector>
#include <map>
#include <set>
#include <queue>
#include <stack>
#include <list>
#include <bitset>

#define FI first
#define SE second
#define MP make_pair
#define PB push_back
#define PF push_front
#define POB pop_back
#define POF pop_front
//#define endl '\n'
using namespace std;

typedef long long LL;
typedef unsigned long long ULL;

void desperate_optimization(int precision){
  	ios_base::sync_with_stdio(false);
  	cin.tie(0);
  	cout.tie(0);
  	cout.setf(ios::fixed);
  	cout.setf(ios::showpoint);
  	cout.precision(precision);
}

LL x1, y1, x2, y2, x3, y3;

void hora(int tc) {
	LL s;
	cin>>s;
	y1 = 1, y2 = 2;
	LL wow = sqrt(s);
	x2 = wow - 1, y3 = max(2LL, wow - y1);
	x1 = 0;
//	cout<<"Y: "<<y1<<" "<<y2<<" "<<y3<<endl;
	do{
		x2++;
		LL val = s - x2 * (y3 - y1);
//		cout<<x2<<" "<<val<<endl;
//		getchar();
		x3 = -val;
	}while(x3 < 0);
	cout<<x1<<" "<<y1<<" "<<x2<<" "<<y2<<" "<<x3<<" "<<y3<<endl;
}

int main(){
//	desperate_optimization(10);
	int ntc = 1;
	//cin>>ntc;
	for(int tc = 1;tc <= ntc;tc++) hora(tc);
	return 0;
}




Compiler output:
a.cc:57:8: error: 'LL y1' redeclared as different kind of entity
   57 | LL x1, y1, x2, y2, x3, y3;
      |        ^~
In file included from /usr/include/features.h:523,
                 from /usr/include/x86_64-linux-gnu/bits/libc-header-start.h:33,
                 from /usr/include/stdio.h:28,
                 from a.cc:8:
/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 'void hora(int)':
a.cc:62:12: error: assignment of function 'double y1(double)'
   62 |         y1 = 1, y2 = 2;
      |         ~~~^~~
a.cc:64:41: error: invalid operands of types 'LL' {aka 'long long int'} and 'double(double) noexcept' to binary 'operator-'
   64 |         x2 = wow - 1, y3 = max(2LL, wow - y1);
      |                                     ~~~ ^ ~~
      |                                     |     |
      |                                     |     double(double) noexcept
      |                                     LL {aka long long int}
a.cc:69:39: error: invalid operands of types 'LL' {aka 'long long int'} and 'double(double) noexcept' to binary 'operator-'
   69 |                 LL val = s - x2 * (y3 - y1);
      |                                    ~~ ^ ~~
      |                                    |    |
      |                                    |    double(double) noexcept
      |                                    LL {aka long long int}
Language: Java

import java.util.*;
public class Main{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    long s = sc.nextLong();
    long x1 =0;
    long y1=0;
    long x2=1000000000;
    long y2 =1;
    long start = s/x2;
    for(long i=start;i<=x2;i++){
      long x3 = i*x2-s;
      if(x3>=0 && x3<=x2){
        System.out.print(x1+" "+y1+" "+x2+" "+y2+" "+x3+" "+y3);
      }
    }
  }
}

Compiler output:
Main.java:14: error: cannot find symbol
        System.out.print(x1+" "+y1+" "+x2+" "+y2+" "+x3+" "+y3);
                                                            ^
  symbol:   variable y3
  location: class Main
1 error
Language: Java

import java.util.*;
public class Main{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    long s = sc.nextLong();
    long x1 =0;
    long y1=0;
    long x2=1000000000;
    long y2 =1;
    long start = s/x2;
    for(long i=start;i<=x2;i++){
      long x3 = i*x2-s;
      if(x3>=0 && x3<=x2){
        System.out.print(x1+" "+y1+" "+x2+" "+y2+" "+x3+" "+y3); 
  }
}

Compiler output:
Main.java:16: error: reached end of file while parsing
}
 ^
1 error
Language: Java

import java.util.*;
public class Main{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    long s = sc.nextLong();
    int x1 =0;
    int y1=0;
    int x2=1000000000;
    int y2 =1;
    int x3=s/x2;
    int y3=s%x2;
    System.out.print(x1+" "+y1+" "+x2+" "+y2+" "+x3+" "+y3);
  }
}

Compiler output:
Main.java:10: error: incompatible types: possible lossy conversion from long to int
    int x3=s/x2;
            ^
Main.java:11: error: incompatible types: possible lossy conversion from long to int
    int y3=s%x2;
            ^
2 errors
Language: C++

#include <bits/stdc++.h>
using namespace std;
#define rep for(int i = 0;i<n;i++)
#define ll long long
 
//const int INF = 1e8;
const int MOD = 1000000007;
typedef pair<int,int>P;
int dx[4] = {1,0,-1,0};int dy[4] = {0,1,0,-1};
queue<P> que;
 
int main(){
    ll s; cin >> s;
    //面積s/2の三角形の座標６つ→long 部分とint 部分を分けて考える
    // s = ad-bc = 1e9*d - b*1
    //sを1e9で割った省とあまりより求められる
    ll a = 1000000000;
    ll c = 1;
    
    ll d = 1+s/a;
    ll c = a - (s % a);
    cout << 0 << " " << 0<< " ";
    cout << a << " " << b << " ";
    cout << c << " " << d << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:21:8: error: redeclaration of 'long long int c'
   21 |     ll c = a - (s % a);
      |        ^
a.cc:18:8: note: 'long long int c' previously declared here
   18 |     ll c = 1;
      |        ^
a.cc:23:25: error: 'b' was not declared in this scope
   23 |     cout << a << " " << b << " ";
      |                         ^
Language: C++

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

signed main(){
	int s;cin>>s;
  int x=int(sqrt(s));
  for(int i=x;i>=0;i--){
  	if(s%i==0){
    cout<<"0 0 0 "<< i<<" "<<s/i<<" 0"<<endl;
      exit(0);
    }
    
  }
  
}


Compiler output:
a.cc: In function 'int main()':
a.cc:3:13: error: expected primary-expression before 'long'
    3 | #define int long long
      |             ^~~~
a.cc:7:9: note: in expansion of macro 'int'
    7 |   int x=int(sqrt(s));
      |         ^~~
Language: Java



import java.util.Scanner;

public class Main {
    private static long MAX = 1000000000;

    public static void main(final String[] args) {
        final Scanner scanner = new Scanner(System.in);
        final long s = scanner.nextLong();
        if (s < MAX) {
            System.out.println("0 0  " + s + " 0 0 1");
            return;
        }

        final long x3 = intSqrt(s) + 1;

        final long diff = x3 * x3 - s;
        long x1 = 0;
        long y2 = 0;
        for (int i = intSqrt(diff); i >= 1; i--) {
            if (diff % i == 0) {
                x1 = x3 - diff / i;
                y2 = x3 - i;
            }
        }

        if (x1 < 0) {
            if(x3-x1>Integer.MAX_VALUE){
                throw new RuntimeException();
            }
            System.out.println("0 0 " + (-1) * x1 + " " + y2 + " " + (x3 - x1) + " " + x3);
            return;
        } else if (y2 < 0) {
            throw new RuntimeException();
            System.out.println("0 " + (-1) * y2 + " 0 0 " + x3 + " " + (x3 - y2));
            return;
        }

        System.out.println(x1 + " 0 0 " + y2 + " " + x3 + " " + x3);
    }

    private static int intSqrt(long a) {
        return (int) Math.sqrt(a);
    }
}


Compiler output:
Main.java:36: error: unreachable statement
            System.out.println("0 " + (-1) * y2 + " 0 0 " + x3 + " " + (x3 - y2));
            ^
1 error
Language: C++

#include <iostream>

using namespace std;

int main(){
  ll S;
  cin >> S;
  
  ll y = (S + 999999999) / 1000000000;
  ll x = S - 1000000000LL * x;
  cout << 0 << " " << 0 << " ";
  cout << 1000000000 << " " << 1 << " ";
  cout << x << " " << y << endl;
  
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:3: error: 'll' was not declared in this scope
    6 |   ll S;
      |   ^~
a.cc:7:10: error: 'S' was not declared in this scope
    7 |   cin >> S;
      |          ^
a.cc:9:5: error: expected ';' before 'y'
    9 |   ll y = (S + 999999999) / 1000000000;
      |     ^~
      |     ;
a.cc:10:5: error: expected ';' before 'x'
   10 |   ll x = S - 1000000000LL * x;
      |     ^~
      |     ;
a.cc:13:11: error: 'x' was not declared in this scope
   13 |   cout << x << " " << y << endl;
      |           ^
a.cc:13:23: error: 'y' was not declared in this scope
   13 |   cout << x << " " << y << endl;
      |                       ^
Language: C++

#include <bits/stdc++.h>

using namespace std;

typedef pair<int, int> P;
typedef long long ll;
#define rep(i, n) for(int i=0;i<(n);i++)
#define rep2(i, m, n) for(int i=m;i<(n);i++)
#define rrep(i, n, m) for(int i=n;i>=(m);i--)
using Graph = vector<vector<int>>;
const int dx[4] = {1, 0, -1, 0};
const int dy[4] = {0, 1, 0, -1};
const ll MOD = 1000000007;
#ifdef __DEBUG

#include "cpp-pyprint/pyprint.h"

#endif

void Main() {
    ll S;
    cin >> S;
    // 1000000000000000000
    ll y = S / 1000000000;
    ll x = S % 1000000000;
    cout << "0" << " "  << "0" << " " << "1000000000" << " " << 1 << " " << x << " " <<  << endl;
}

int main() {
    cin.tie(0);
    ios::sync_with_stdio(false);
    cout << fixed << setprecision(15);
    Main();
}


Compiler output:
a.cc: In function 'void Main()':
a.cc:26:90: error: expected primary-expression before '<<' token
   26 |     cout << "0" << " "  << "0" << " " << "1000000000" << " " << 1 << " " << x << " " <<  << endl;
      |                                                                                          ^~
Language: C++

#include <iostream>
using namespace std;

int main()
{
    long num;
    cin >> num;
    long nine = 1e9;
    if(num==1e18){
        cout << "0 0 1000000000 0 0 1000000000" 
        return 0;
    }
    cout << "0 0 1 " << num/1e9+1 << " " << nine << (num/1e9+1)*1e9-num << endl;
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:48: error: expected ';' before 'return'
   10 |         cout << "0 0 1000000000 0 0 1000000000"
      |                                                ^
      |                                                ;
   11 |         return 0;
      |         ~~~~~~
Language: C++

#include<cstdio>
#include<iostream>
#include<sstream>
#include<cmath>
#include<algorithm>
#include<map>
#include<set>
#include<list>
#include<vector>
#include<stack>
#include<queue>
#include<string>
#include<iomanip>
#include<fstream>
#include<ctime>
using namespace std;
typedef vector<int> VI;
typedef pair <int,int> ii;
typedef long long LL;
#define pb push_back

int x1, x2, x3, y1, y2, y3;
LL s;

int main() {
scanf("%lld", &s);
x1 = y1 = 0;
x2 = 1000000000;
y2 = 1;
x3 = s % x2;
y3 = s / x2;

printf("%d %d %d %d %d %d\n", x1, y1, x2, y2, x3, y3);

return 0;
}

Compiler output:
a.cc:22:17: error: 'int y1' redeclared as different kind of entity
   22 | int x1, x2, x3, y1, y2, y3;
      |                 ^~
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/cstdio: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:27:9: error: assignment of function 'double y1(double)'
   27 | x1 = y1 = 0;
      |      ~~~^~~
Language: C++

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

int main(){
	long long double S;
	cin >> S;
	long long double ans = S / 2;
	cout << 0 << " " << 0 << " " << 2 << " " << 0 << " " << ans << 0 << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:14: error: 'long long' specified with 'double'
    5 |         long long double S;
      |              ^~~~
a.cc:7:14: error: 'long long' specified with 'double'
    7 |         long long double ans = S / 2;
      |              ^~~~
Language: C

#include<stdio.h>

int main(void){
    long int s,x,y;
    scanf("%ld",&s);

    y = s / 1000000000 + s % 1000000000;
    x = 1000000000 * q - s;

    printf("0 0 1000000000 1 %ld %ld\n",x,y);
    
    return 0;

}

Compiler output:
main.c: In function 'main':
main.c:8:22: error: 'q' undeclared (first use in this function)
    8 |     x = 1000000000 * q - s;
      |                      ^
main.c:8:22: note: each undeclared identifier is reported only once for each function it appears in
Language: C++

#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
#define rep(i, n) for (ll i = 0; i < (ll)(n); i++)
const ll mo = 1000000007;
const ll INF = 1LL << 59; //MAX 9223372036854775807
ll ans = 0;

int main()
{
ll n;
cin >> n;
ll a[6]={0,0,1e+9,1,n%1000000000,n/1000000000};

rep(i,5){
    cout <<a[i] << " ";
}
    cout <<a[5] << endl;

return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:13:14: error: narrowing conversion of '1.0e+9' from 'double' to 'll' {aka 'long long int'} [-Wnarrowing]
   13 | ll a[6]={0,0,1e+9,1,n%1000000000,n/1000000000};
      |              ^~~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
#define rep(i, n) for (ll i = 0; i < (ll)(n); i++)
const ll mo = 1000000007;
const ll INF = 1LL << 59; //MAX 9223372036854775807
ll ans = 0;

int main()
{
ll n;
cin >> n;
ll a[6]={0,0,1e+9,1,n%(ll)1e+9,n/(ll)1e+9};

rep(i,5){
    cout <<a[i] << " ";
}
    cout <<a[5] << endl;

return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:13:14: error: narrowing conversion of '1.0e+9' from 'double' to 'll' {aka 'long long int'} [-Wnarrowing]
   13 | ll a[6]={0,0,1e+9,1,n%(ll)1e+9,n/(ll)1e+9};
      |              ^~~~
Language: C++

#include <bits/stdc++.h>

using namespace std;

int main(void)
{
	long long s;
	cin >> s;
	if (s == 1e18)
	{
		long long x1, x2, y1, y2;
		x1 = 1e9, y1 = 1;
		y2 = s / x1 + 1;
		x2 = 1e9 - (s % x1);
		cout << "0 0 " << x1 << " " << y1 << " " << x2 << " " << y2 << endl;
	}
	else
	{
		cout << "0 0 1000000000 0 0 1000000000"
	}
	return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:19:56: error: expected ';' before '}' token
   19 |                 cout << "0 0 1000000000 0 0 1000000000"
      |                                                        ^
      |                                                        ;
   20 |         }
      |         ~
Language: C++

#include<bits/stdc++.h>
using namespace std;
typedef long long ll;
const int maxn=1e5+10;
const ll mod=1e9;
int main()
{
        ll s;
        ll q=0;
        ll w=1;
        cin>>s;
        if(s<=mod)
        printf("%lld %lld %lld %lld %lld %lld\n",q,q,q,w,s,q);
        else
        {
             printf("%lld %lld %lld %lld ",q,q,mod,w);
             ll re=s/mod;
              ll yu=s%mod;
              printf("%lld %lld",yu,re);
        

    return 0;
}


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

#include<bits/stdc++.h> 
using namespace std;
const int N=1e9;
int main(){
    ll s;
    cin>>s;
    ll x3=(s%N==0 ? 0:N-s%N);
    ll y3=(s+x3)/N;
    cout<<"0 0 1000000000 1 "<<x3<< " " <<y3<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:5: error: 'll' was not declared in this scope
    5 |     ll s;
      |     ^~
a.cc:6:10: error: 's' was not declared in this scope
    6 |     cin>>s;
      |          ^
a.cc:7:7: error: expected ';' before 'x3'
    7 |     ll x3=(s%N==0 ? 0:N-s%N);
      |       ^~~
      |       ;
a.cc:8:7: error: expected ';' before 'y3'
    8 |     ll y3=(s+x3)/N;
      |       ^~~
      |       ;
a.cc:9:32: error: 'x3' was not declared in this scope
    9 |     cout<<"0 0 1000000000 1 "<<x3<< " " <<y3<<endl;
      |                                ^~
a.cc:9:43: error: 'y3' was not declared in this scope; did you mean 'yn'?
    9 |     cout<<"0 0 1000000000 1 "<<x3<< " " <<y3<<endl;
      |                                           ^~
      |                                           yn
Language: C++

#include <bits/stdc++.h>
#define fi first
#define se second
#define rep(i,n) for(int i = 0; i < (n); ++i)
#define rrep(i,n) for(int i = 1; i <= (n); ++i)
#define drep(i,n) for(int i = (n)-1; i >= 0; --i)
#define srep(i,s,t) for (int i = s; i < t; ++i)
#define rng(a) a.begin(),a.end()
#define rrng(a) a.rbegin(),a.rend()
#define maxs(x,y) (x = max(x,y))
#define mins(x,y) (x = min(x,y))
#define limit(x,l,r) max(l,min(x,r))
#define lims(x,l,r) (x = max(l,min(x,r)))
#define isin(x,l,r) ((l) <= (x) && (x) < (r))
#define pb push_back
#define eb emplace_back
#define sz(x) (int)(x).size()
#define pcnt __builtin_popcountll
#define uni(x) x.erase(unique(rng(x)),x.end())
#define snuke srand((unsigned)clock()+(unsigned)time(NULL));
#define show(x) cout<<#x<<" = "<<x<<endl;
#define PQ(T) priority_queue<T,v(T),greater<T> >
#define bn(x) ((1<<x)-1)
#define dup(x,y) (((x)+(y)-1)/(y))
#define newline puts("")
#define v(T) vector<T>
#define vv(T) v(v(T))
using namespace std;
typedef long long int ll;
typedef unsigned uint;
typedef unsigned long long ull;
typedef pair<int,int> P;
typedef tuple<int,int,int> T;
typedef vector<int> vi;
typedef vector<vi> vvi;
typedef vector<ll> vl;
typedef vector<P> vp;
typedef vector<T> vt;
inline int in() { int x; scanf("%d",&x); return x;}
template<typename T>inline istream& operator>>(istream&i,v(T)&v)
{rep(j,sz(v))i>>v[j];return i;}
template<typename T>string join(const v(T)&v)
{stringstream s;rep(i,sz(v))s<<' '<<v[i];return s.str().substr(1);}
template<typename T>inline ostream& operator<<(ostream&o,const v(T)&v)
{if(sz(v))o<<join(v);return o;}
template<typename T1,typename T2>inline istream& operator>>(istream&i,pair<T1,T2>&v)
{return i>>v.fi>>v.se;}
template<typename T1,typename T2>inline ostream& operator<<(ostream&o,const pair<T1,T2>&v)
{return o<<v.fi<<","<<v.se;}
template<typename T>inline ll suma(const v(T)& a) { ll res(0); for (auto&& x : a) res += x; return res;}
const double eps = 1e-10;
const ll LINF = 1001002003004005006ll;
const int INF = 1001001001;
#define dame { puts("-1"); return 0;}
#define yn {puts("YES");}else{puts("NO");}
const int MX = 200005;
inline ll in() { ll x; cin >> x; return x; }

int main() {
  ll s = in();
  ll x1 = 1e9, x2 = 1;
  ll y2 = dup(s,x1), y1 = x1*y2-s;
  vl ans;
  ans.pb(0); ans.pb(0);
  ans.pb(x1); ans.pb(y1);
  ans.pb(x2); ans.pb(y2);
  cout<<ans<<endl;
  return 0;
}


Compiler output:
a.cc:57:11: error: ambiguating new declaration of 'll in()'
   57 | inline ll in() { ll x; cin >> x; return x; }
      |           ^~
a.cc:39:12: note: old declaration 'int in()'
   39 | inline int in() { int x; scanf("%d",&x); return x;}
      |            ^~
Language: C++

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

#ifdef LOCAL_DEBUG
  #include "LOCAL_DEBUG.hpp"
#endif

const int N = 1e9;

signed main(){

  int n; cin >> n;
  vector<int> v;
  for(int i = 1; i*i <= N; i++){
    if(n%i == 0){
      v.push_back(i);
    }
  }

  for(int x : v){
    int y = n/x;
    if(x > N || y > N) continue;
    if(x*y != s) continue;
    printf("0 0 %d 0 0 %d\n",x,y);
    return 0;
  }

  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:24:15: error: 's' was not declared in this scope
   24 |     if(x*y != s) continue;
      |               ^
Language: C++

#include<iostream>
using namespace std;
int main()
{
  long long S
  cin >> S;
  cout <<"0 0 "<<S+2<<" 1 2 1";
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:6:3: error: expected initializer before 'cin'
    6 |   cin >> S;
      |   ^~~
a.cc:7:18: error: 'S' was not declared in this scope
    7 |   cout <<"0 0 "<<S+2<<" 1 2 1";
      |                  ^
Language: C++

#include<iostream>
using namespace std;
int main()
{
  int S
  cin >> S;
  cout <<"0 0 "<<S+2<<" 1 2 1";
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:3: error: expected initializer before 'cin'
    6 |   cin >> S;
      |   ^~~
a.cc:7:18: error: 'S' was not declared in this scope
    7 |   cout <<"0 0 "<<S+2<<" 1 2 1";
      |                  ^
Language: C++

#include<iostream>
using namespace std;
int main()
{
  int S;
  cin >> S;
  cout << 0 0 1 S+100 1 100 << endl;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:12: error: expected ';' before numeric constant
    7 |   cout << 0 0 1 S+100 1 100 << endl;
      |            ^~
      |            ;
Language: C++

#include<bits/stdc++.h>
#define me(a,x) memset(a,x,sizeof(a))
#define sc scanf
#define itn int
using namespace std;
const int N=1e6;
const long long mod=1e9+7;
const int oo=0x7fffffff;
const int sup=0x80000000;
typedef long long ll;
typedef unsigned long long ull;
template <typename it>void db(it *begin,it *end){while(begin!=end)cout<<(*begin++)<<" ";puts("");}
template <typename it>
string to_str(it n){string s="";while(n)s+=n%10+'0',n/=10;reverse(s.begin(),s.end());return s;}
template <typename it>int o(it a){cout<<a<<endl;return 0;}
ll mul(ll a,ll b,ll c){ll ans=0;for(;b;b>>=1,a=(a+a)%c)if(b&1)ans=(ans+a)%c;return ans;}
ll ksm(ll a,ll b,ll c){ll ans=1;for(;b;b>>=1,a=mul(a,a,c))if(b&1)ans=mul(ans,a,c);return ans;}

int main(){
	//freopen("in.txt","r",stdin);
	ll s;cin>>s;
	int inv=1000000000;
	int t=s%inv;
	int x=inv-t;
	int y=(s+x)/inv;
	if(s==1000000000000000000)x=1inv,y=inv;
	cout<<"0 0 1000000000 1 "<<x<<" "<<y<<endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:26:37: error: unable to find numeric literal operator 'operator""inv'
   26 |         if(s==1000000000000000000)x=1inv,y=inv;
      |                                     ^~~~
Language: C++

def a_triangle(S, M=10**9):
    q, r = divmod(S, M)
    y = q if r == 0 else q + 1
    x = M * y - S
    return '0 0 {0} 1 {1} {2}'.format(M, x, y)

S = int(input())
print(a_triangle(S))

Compiler output:
a.cc:5:12: warning: multi-character literal with 17 characters exceeds 'int' size of 4 bytes
    5 |     return '0 0 {0} 1 {1} {2}'.format(M, x, y)
      |            ^~~~~~~~~~~~~~~~~~~
a.cc:1:1: error: 'def' does not name a type
    1 | def a_triangle(S, M=10**9):
      | ^~~
Language: C++

#include <iostream>
using namespace std;
using ll = long long;


int main() {
    ll S, x, y; cin >> S;

    // 1e9 * y - x = S
    // 1e9 * y = S + x
    x = (1e9 - S%1e9)%1e9;
    y = (S + x) / 1e9;
    cout << "0 0 1000000000 1 " << y << " " << x << endl;
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:17: error: invalid operands of types 'll' {aka 'long long int'} and 'double' to binary 'operator%'
   11 |     x = (1e9 - S%1e9)%1e9;
      |                ~^~~~
      |                | |
      |                | double
      |                ll {aka long long int}
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;
  if(S==1e18){
    cout<<0<<" "<<0<<" "<<MAX<<" "<<0<<" "<<0<<" "<<MAX;
    return 0;
  }
  ll X1,X2,X3,Y1,Y2,Y3;
  const ll MAX = 1e9;
  X1=0;
  Y1=0;
  X2=MAX;
  Y2=1;
  X3=MAX-S%MAX;
  Y3=S/MAX+1;
  cout<<X1<<" "<<Y1<<" "<<X2<<" "<<Y2<<" "<<X3<<" "<<Y3;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:26:27: error: 'MAX' was not declared in this scope
   26 |     cout<<0<<" "<<0<<" "<<MAX<<" "<<0<<" "<<0<<" "<<MAX;
      |                           ^~~
Language: C

#include <stdio.h>

void Do(long long S){
  int X1, Y1, X2, Y2, X3, Y3;
  X1 = Y1 = 0;
  X2 = 1e9;
  Y2 = 1;
  X3 = S % 1e9;
  Y3 = S / 1e9;
  printf("%d %d %d %d %d %d\n", X1, Y1, X2, Y2, X3, Y3);
}

int main(void){
  long long S;
  scanf("%lld", &S);
  Do(S);
  return 0;
}

Compiler output:
main.c: In function 'Do':
main.c:8:10: error: invalid operands to binary % (have 'long long int' and 'double')
    8 |   X3 = S % 1e9;
      |          ^
Language: C++

#include<iostream>
#include<math.h>
#include<stdio.h>
using namespace std;
int main(){
  long long s,ans,root;
  long long  x1,x2,x3,y1,y2,y3;
  long long lim=1000000000;
  cin>>s;
  long long rest,buf;
  root=sqrt(s);
  ans=s/lim+1;
  rest=s%lim;
  
  //  long long tmp=root*(root+2);
  /*
  buf=tmp;
  long long num[25]={2,3,5,7,11,13,17,19,23,29,31,37,41,43,47,53,59,61,67,71,73,79,83,89,97};
  /*
  for(int i=0;i<root;i++){
    //    rest=s%root;
    if(buf==s){
      ans=i;
      break;
    }
    buf--;
  }
      if(rest==0){
      ans=root;
      break;
    }
    else root--;
  }*/
    //  if(root==0)root=1;
  ans=tmp-s;
  if(ans>lim){
    x1=0;
    y1=0;
    x2=root;
    y3=root+1;
    while(1){
      ans=ans-root;
      y3--;
      if(ans<0){
	ans=ans+root;
	break;
      }}
     for(int i=0;i<24;i++){
      if(ans%num[i]==0)
	y2=num[i];
      x3=ans/num[i];
      }
    y2=1;
    x3=ans;
  }
  else{
  x1=0;
  y1=0;
  x2=lim;
  y2=1;
  x3=ans;
  y3=rest;
  }
  if(rest==s){
    y2=0;
    x3=0;
    y3=root;
  }
  printf("%lld %lld %lld %lld %lld %lld\n",x1,y1,x2,y2,x3,y3);
  //  cout<<x1<<y1<<x2<<y2<<x3<<y3<<endl;
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:35:7: error: 'tmp' was not declared in this scope; did you mean 'tm'?
   35 |   ans=tmp-s;
      |       ^~~
      |       tm
a.cc:49:14: error: 'num' was not declared in this scope; did you mean 'enum'?
   49 |       if(ans%num[i]==0)
      |              ^~~
      |              enum
a.cc:51:14: error: 'num' was not declared in this scope; did you mean 'enum'?
   51 |       x3=ans/num[i];
      |              ^~~
      |              enum
Language: Java

import java.util.*;public class Main{public static void main(String[]a){long s=Long.parseLong(new Scanner(System.in).next());int a=1000000000;System.out.println("0 0 "+a+" 1 "+s%a+" "+s/a);}}

Compiler output:
Main.java:1: error: variable a is already defined in method main(String[])
import java.util.*;public class Main{public static void main(String[]a){long s=Long.parseLong(new Scanner(System.in).next());int a=1000000000;System.out.println("0 0 "+a+" 1 "+s%a+" "+s/a);}}
                                                                                                                                 ^
1 error
Language: C++

# coding: utf-8
import math

s = int(input())

x1, y1 = 0, 0

if s <= 10 ** 9:
    x2, y2 = s, 0
    x3, y3 = 0, 1
else:
    factor = []
    x = s
    for i in range(2, min(10**9, int(math.sqrt(x))+1)):
        while x % i == 0:
            factor.append(i)
            x //= i
        if i > math.sqrt(x):
            break
    divisor = 1
    for fact in factor:
        if divisor * fact > 10**9:
            break
        divisor *= fact
    x2, y2 = divisor, 0
    x3, y3 = 0, s // divisor

print(x1, y1, x2, y2, x3, y3, sep=' ')


Compiler output:
a.cc:1:3: error: invalid preprocessing directive #coding
    1 | # coding: utf-8
      |   ^~~~~~
a.cc:2:1: error: 'import' does not name a type
    2 | import math
      | ^~~~~~
a.cc:2:1: note: C++20 'import' only available with '-fmodules-ts'
Language: C++

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

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

Compiler output:
a.cc:25:11: error: extended character 　 is not valid in an identifier
   25 |   cout << x1　<<" " << y1 << " " << x2 << " " << y2 << " " << x3 << " " << S << "\n";
      |           ^
a.cc: In function 'int main()':
a.cc:25:11: error: 'x1\U00003000' was not declared in this scope
   25 |   cout << x1　<<" " << y1 << " " << x2 << " " << y2 << " " << x3 << " " << S << "\n";
      |           ^~~~
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 i;
  if(S==sqrt(S)*sqrt(S)){
    x[1]=sqrt(S);
    y[2]=sqrt(S);
    cout << x[0] << " " << y[0] << " " << x[1] << " " << y[1] << " " << x[2] << " " << y[2] << endl;
  }
  else{
    long long int M = (sqrt(S)+1) * (sqrt(S)+1);
    if(M-S>1000000000){
    for(i=1;i<(M-S+1;++i){
     if((M-S)%i==0){
      x[1]=sqrt(S)+1;
      y[2]=sqrt(S)+1;
      x[2]=i;
      y[1]=(M-S)/i;
      cout << x[0] << " " << y[0] << " " << x[1] << " " << y[1] << " " << x[2] << " " << y[2] << endl;
      break;
     }
    }
        }
    else if(M-S<=1000000000){
    M = (sqrt(S)+1)*sqrt(S);
    for(i=1;i<(M-S+1;++i){
     if((M-S)%i==0){
      x[1]=sqrt(S)+1;
      y[2]=sqrt(S);
      x[2]=i;
      y[1]=(M-S)/i;
      cout << x[0] << " " << y[0] << " " << x[1] << " " << y[1] << " " << x[2] << " " << y[2] << endl;
      break;
     }
     }
        }
        }

  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:24:21: error: expected ')' before ';' token
   24 |     for(i=1;i<(M-S+1;++i){
      |               ~     ^
      |                     )
a.cc:37:21: error: expected ')' before ';' token
   37 |     for(i=1;i<(M-S+1;++i){
      |               ~     ^
      |                     )
Language: C++

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

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

Compiler output:
a.cc:25:11: error: extended character 　 is not valid in an identifier
   25 |   cout << x1　<< " " << y1 << " "　<< x2 << " "　<< y2 << " "　<< x3 << " "　<< S << "\n";
      |           ^
a.cc:25:31: error: extended character 　 is not valid in an identifier
   25 |   cout << x1　<< " " << y1 << " "　<< x2 << " "　<< y2 << " "　<< x3 << " "　<< S << "\n";
      |                               ^
a.cc:25:45: error: extended character 　 is not valid in an identifier
   25 |   cout << x1　<< " " << y1 << " "　<< x2 << " "　<< y2 << " "　<< x3 << " "　<< S << "\n";
      |                                             ^
a.cc:25:59: error: extended character 　 is not valid in an identifier
   25 |   cout << x1　<< " " << y1 << " "　<< x2 << " "　<< y2 << " "　<< x3 << " "　<< S << "\n";
      |                                                           ^
a.cc:25:73: error: extended character 　 is not valid in an identifier
   25 |   cout << x1　<< " " << y1 << " "　<< x2 << " "　<< y2 << " "　<< x3 << " "　<< S << "\n";
      |                                                                         ^
a.cc: In function 'int main()':
a.cc:25:11: error: 'x1\U00003000' was not declared in this scope
   25 |   cout << x1　<< " " << y1 << " "　<< x2 << " "　<< y2 << " "　<< x3 << " "　<< S << "\n";
      |           ^~~~
a.cc:25:31: error: unable to find string literal operator 'operator""\U00003000' with 'const char [2]', 'long unsigned int' arguments
   25 |   cout << x1　<< " " << y1 << " "　<< x2 << " "　<< y2 << " "　<< x3 << " "　<< S << "\n";
      |                               ^~~~~
a.cc:25:45: error: unable to find string literal operator 'operator""\U00003000' with 'const char [2]', 'long unsigned int' arguments
   25 |   cout << x1　<< " " << y1 << " "　<< x2 << " "　<< y2 << " "　<< x3 << " "　<< S << "\n";
      |                                             ^~~~~
a.cc:25:59: error: unable to find string literal operator 'operator""\U00003000' with 'const char [2]', 'long unsigned int' arguments
   25 |   cout << x1　<< " " << y1 << " "　<< x2 << " "　<< y2 << " "　<< x3 << " "　<< S << "\n";
      |                                                           ^~~~~
a.cc:25:73: error: unable to find string literal operator 'operator""\U00003000' with 'const char [2]', 'long unsigned int' arguments
   25 |   cout << x1　<< " " << y1 << " "　<< x2 << " "　<< y2 << " "　<< x3 << " "　<< S << "\n";
      |                                                                         ^~~~~
Language: C++

#include<iostream>
#include<math.h>
#include<stdio.h>
using namespace std;
int main(){
  long long s,ans,root;
  long long  x1,x2,x3,y1,y2,y3;
  long long lim=1000000000;
  cin>>s;
  long long rest,buf;
  root=sqrt(s);
  rest=root*root;
  long long tmp=root*(root+2);
  buf=tmp;
  long long num[25]={2,3,5,7,11,13,17,19,23,29,31,37,41,43,47,53,59,61,67,71,73,79,83,89,97};
  /*
  for(int i=0;i<root;i++){
    //    rest=s%root;
    if(buf==s){
      ans=i;
      break;
    }
    buf--;
  }
      if(rest==0){
      ans=root;
      break;
    }
    else root--;
  }*/
    //  if(root==0)root=1;
  ans=tmp-s;
  if(ans>lim){
    x1=0;
    y1=0;
    x2=root;
    y3=root+1;
    while(1){
      ans=ans-root;
      if(ans<0){
	ans=ans+root;
	break;
      }
         for(int i=0;i<24;i++){
      if(ans%num[i]==0)
	y2=num[i];
      x3=ans/num[i];
      }
    y2=1;
    x3=ans;
  }
  else{
  x1=0;
  y1=0;
  x2=root;
  y2=1;
  x3=ans;
  y3=root+2;
  }
  if(rest==s){
    y2=0;
    x3=0;
    y3=root;
  }
  printf("%lld %lld %lld %lld %lld %lld\n",x1,y1,x2,y2,x3,y3);
  //  cout<<x1<<y1<<x2<<y2<<x3<<y3<<endl;
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:52:3: error: expected '}' before 'else'
   52 |   else{
      |   ^~~~
a.cc:33:14: note: to match this '{'
   33 |   if(ans>lim){
      |              ^
Language: C++

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

int main(){
	long s;
	
	cin>>s;
	long keta=GetDigit(s);
	long x1=0,y1=0,x2=1,y2=0,x3=0,y3=1;

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



Compiler output:
a.cc: In function 'int main()':
a.cc:8:19: error: 'GetDigit' was not declared in this scope
    8 |         long keta=GetDigit(s);
      |                   ^~~~~~~~
Language: C++

#include <bits/stdc++.h>

using namespace std;

int main(){
    long long int a,b,c,d,e,f,S,x,y;
    cin >> S;
    for(int i=sqrt(S);0<i;i--){
        if(S%i==0){
            x=i;
            y=S/i;
            }
        }
    }

    a=0;
    b=0;
    c=0;
    d=y;
    e=x;
    f=y;

    cout << a << " " << b <<" "<< c <<" "<< d <<" "<< e <<" "<< f;
}

Compiler output:
a.cc:16:5: error: 'a' does not name a type
   16 |     a=0;
      |     ^
a.cc:17:5: error: 'b' does not name a type
   17 |     b=0;
      |     ^
a.cc:18:5: error: 'c' does not name a type
   18 |     c=0;
      |     ^
a.cc:19:5: error: 'd' does not name a type
   19 |     d=y;
      |     ^
a.cc:20:5: error: 'e' does not name a type
   20 |     e=x;
      |     ^
a.cc:21:5: error: 'f' does not name a type
   21 |     f=y;
      |     ^
a.cc:23:5: error: 'cout' does not name a type
   23 |     cout << a << " " << b <<" "<< c <<" "<< d <<" "<< e <<" "<< f;
      |     ^~~~
a.cc:24:1: error: expected declaration before '}' token
   24 | }
      | ^
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:11:3: error: expected ',' or ';' before 'int'
   11 |   int y3 = 0;
      |   ^~~
a.cc:25:3: error: 'y3' was not declared in this scope; did you mean 'x3'?
   25 |   y3 = static_cast<int>(S);
      |   ^~
      |   x3
Language: C++

#include <stdio.h>
#include <algorithm>
#include <vector>
#include <string>
#include <math.h>
const long long mod = 1000000007;



const int MAX = 1000000000;

int search(int* d, int t, int n) {
	if (d[0] == t)return 0;
	int r = 0;
	for (int i = 20; i >= 0; i--) {
		int c = r | (1 << i);
		if (c >= n)continue;
		if (d[c] == t)return c;
		if (d[c] < t)r = c;
	}
	return -1;
}

int main() {
	long long S;
	scanf("%lld", &S);
	long long X2 = sqrt(S);
	long long Y1;
	if (X2 >= MAX) {
		X2 = MAX;
		Y1 = S / X2 + 1;
		if (Y1 >= MAX)Y1 = X2;
	}
	else {
		Y1 = S / X2 + 1;
		if (Y1 >= MAX) {
			X2 = MAX;
			Y1 = S / X2 + 1;
			if (Y1 >= MAX)Y1 = X2;
		}
	}
	long long X1 = Y1 * X2 - S;
	long long Y2 = 1;
	printf("0 0 ");
	printf("%d ",X1);
	printf("%d ",Y1);
	printf("%d ",X2);
	printf("%d ",Y2)
	while (1)getchar();
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:48:25: error: expected ';' before 'while'
   48 |         printf("%d ",Y2)
      |                         ^
      |                         ;
   49 |         while (1)getchar();
      |         ~~~~~
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)
PLL div(ll n){
  for(ll i=sqrt(n); i>=1; --i){
    if(n%i == 0) return PLL(i,n/i);
  }
  return PLL(0,0);
}


int main(void){
  SPEEDUP
  cout << setprecision(15);
  ll S;cin >> S;
  cout << 0 SP 0 SPF;
  ll x1,y1,x2,y2;
  if(S<=1e9){
    cout << S SP 0 << SPF;
    cout << 0 SP 1 << endl;
    return 0;
  }

  // for(ll X = S; X<=1e18; ++X){
  //   x1 = y2 = 0;
  //   ll Y = X-S;
  //   if(Y<0)continue;
  //   vector<PLL> vX = divisor(X);
  //   vector<PLL> vY = divisor(Y);
  //   for(auto &a : vX) if(a.first <= 1e9 && a.second <= 1e9){
  //     x1 = a.first;
  //     y2 = a.second;
  //   }
  //   if(x1 == 0) continue;
  //   for(auto &a :vY) if(a.first <= 1e9 && a.second <= 1e9){
  //     cout << x1 SP a.first SPF;
  //     cout << a.second SP y2 << endl;
  //     return 0;
  //   }
  // }


  //for(ll sX = sqrt(S); sX<=1e9; ++sX){
  //  ll X = (sX)*(sX);
  //  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 SP a.first SPF;
  //    cout << a.second SP sX << endl;
  //    return 0;
  //  }
  //}

  for(ll sX =sqrt(S); sX<=1e9; ++sX){
    if(S/sX>1e9)continue;
    rep(n,1e9){
      ll X = sX*(sX+n);
      ll Y = X-S;
      if(Y<0)continue;
      if(sX+n > 1e9) break;
      PLL py = div(Y);
      if(py.first == 0) continue;
      if(py.first > 1e9 || py.second > 1e9)continue;
      cout << sX SP py.first SPF;
      cout << py.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:9:13: error: expected primary-expression before '<<' token
    9 | #define SPF << " "
      |             ^~
a.cc:48:23: note: in expansion of macro 'SPF'
   48 |     cout << S SP 0 << SPF;
      |                       ^~~
Language: C++

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

int main(){
	int x1 = 0, y1 = 0, x2 = 0, y2 = 0, x3 = 0, y3 = 0;
	int s;
	cin >> s;
	int n = round(sqrt((float)s));
	if(s == 1){
		x2 = 1;
		y3 = 1;
		cout << x1 << " " <<  y1 << " " << x2 << " " << y2 << " " << x3 << " " << y3 << endl;
		return 0;
	}
	for(int i = 2; i < n; i++){
		if(s % i == 0){
			x2 = i;
			y3 = s/i;
			cout << x1 << " " <<  y1 << " " << x2 << " " << y2 << " " << x3 << " " << y3 << endl;
			return 0;
		}
	}
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:23: error: 'sqrt' was not declared in this scope
    9 |         int n = round(sqrt((float)s));
      |                       ^~~~
a.cc:9:17: error: 'round' was not declared in this scope
    9 |         int n = round(sqrt((float)s));
      |                 ^~~~~
Language: C++

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

int main(){
	int x1 = 0, y1 = 0, x2 = 0, y2 = 0, x3 = 0, y3 = 0;
	int s;
	cin >> s;
	//int n = round(sqrt((float)s));
	cout << n << endl;
	if(s == 1){
		x2 = 1;
		y3 = 1;
		cout << x1 << " " <<  y1 << " " << x2 << " " << y2 << " " << x3 << " " << y3 << endl;
		return 0;
	}
	// for(int i = 2; i < n; i++){
	// 	if(s % i == 0){
	// 		x2 = i;
	// 		y3 = s/i;
	// 		cout << x1 << " " <<  y1 << " " << x2 << " " << y2 << " " << x3 << " " << y3 << endl;
	// 		return 0;
	// 	}
	// }
	return -1;
}

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

#include <bits/stdc++.h>

using namespace std;

using i64 = int64_t;

const i64 MOD = (i64)1e9 + 7;

const i64 INF = (i64)1e18 + 7;


template <typename T = i64>
struct Range{
    struct iterator{
        T value;
        const T step, last;
        const T& operator*(){return value;}
        iterator(T value, T step, T last) :
            value(step < static_cast<T>(0) ? max(last, value) : min(last, value)),
            step(step),
            last(last)
        {
        }
        iterator operator++(){value = step < static_cast<T>(0) ? max(value + step, last) : min(value + step, last); return *this;}
        bool operator!=(const iterator& x){return value != x.value;}
    };
    const T start, last, step;

    Range(const T start, const T last, const T step = static_cast<T>(1)) :
        start(start),
        last(last),
        step(step)
    {
    }

    Range(const T last) :
        start(0),
        last(last),
        step(1)
    {
    }

    iterator begin(){return iterator(start, step, last);}
    iterator end(){return iterator(last, step, last);}
};

template <typename F>
struct FixPoint{
    const F _f;
    FixPoint(F&& f) : _f(forward<F>(f)){}

    template<typename... Types>
    decltype(auto) operator()(Types&&... args) const{
        return _f(*this, forward<Types>(args)...);
    }
};

template <typename F>
static decltype(auto) makeRec(F&& f){
    return FixPoint<F>(forward<F>(f));
}

template <typename T, T Value = T()>
vector<T> makeVector(size_t x){
    return vector<T>(x, T(Value));
}

template <typename T, T Value = T(), typename... Types>
auto makeVector(size_t x, Types... args){
    return vector<decltype(makeVector<T, Value>(args...))>(x, makeVector<T, Value>(args...));
}

template <typename T = i64>
bool chmax(T& a, T b){
    if(a < b){
        a = b;
        return true;
    }
    return false;
}

template <typename T = i64>
bool chmin(T& a, T b){
    if(a > b){
        a = b;
        return true;
    }
    return false;
}

#ifdef TEST
#define dump(x) fprintf(stderr, "line =%4d, name =%7s , ", __LINE__, #x); cout << "value = " << x << endl;
#define vecdump(x) fprintf(stderr, "line =%4d, name =%7s\n", __LINE__, #x); _dump_macro(x);
#else
#define vecdump(x)
#define dump(x)
#endif


void _dump(int, string& x){


Compiler output:
a.cc: In function 'void _dump(int, std::string&)':
a.cc:100:28: error: expected '}' at end of input
  100 | void _dump(int, string& x){
      |                           ~^
Language: C++

#include <iostream>
#include <algorithm>
#include <functional>
using namespace std;
typedef long long ll;

ll MAX_N = (10 * 10 * 10) * (10 * 10 * 10) * (10 * 10 * 10);

bool is_ok(ll m, ll S) {
    return ((m * 3) >= (S + 6)) && ((m * 2) <= (S + 6));
    //return ((3 * m) <= (S + 6)) && ((4 * m) >= (S + 12));
}

int main() {
    ll S;
    cin >> S;
    ll x[3];
    ll y[3];
    x[0] = 2;
    x[1] = 0;
    x[2] = S + 6;
    y[0] = S + 6;
    y[1] = S + 9;
    y[2] = 0;
    if (S + 9 < MAX_N) {
        cout << x[0] << " " << y[0] << " ";
        cout << x[1] << " " << y[1] << " ";
        cout << x[2] << " " << y[2] << "\n";
        return 0;
    }
    ll max_n = min((S + 6) / 2, (S + 6 + MAX_N) / 3);
    ll min_n = max((S + 6) / 3, (S + 6 - MAX_N) / 2);
    for (ll m = min_n; m < max_n; ++m) {
        if (is_ok(m, S)) {
            x[0] = 2;
            x[1] = 0;
            x[2] = S + 6 - 2 * m;
            y[0] = 0;
            y[1] = 3;
            y[2] = - (S + 6) + 3 * m;
        cout << x[0] << " " << y[0] << " ";
        cout << x[1] << " " << y[1] << " ";
        cout << x[2] << " " << y[2] << "\n";
        return 0;
        }
    }
    int x = 90 / 0;
    return ;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:47:9: error: conflicting declaration 'int x'
   47 |     int x = 90 / 0;
      |         ^
a.cc:17:8: note: previous declaration as 'll x [3]'
   17 |     ll x[3];
      |        ^
a.cc:47:16: warning: division by zero [-Wdiv-by-zero]
   47 |     int x = 90 / 0;
      |             ~~~^~~
a.cc:48:5: error: return-statement with no value, in function returning 'int' [-fpermissive]
   48 |     return ;
      |     ^~~~~~
Language: C++

#include<bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef pair<int,int> P;
const int maxn=1e5+10;
int n,q;
int a[maxn];
priority_queue<P>que;
int main()
{
     int n,m,k;
  ll s;
  cin>>s;
  if(s<=1e9)
    printf("%lld %lld %lld %lld %lld %lld",0,0,0,1,s,0);
  else
  {
     printf("%lld %lld %lld %lld %lld %lld",0,1e9-10,1e9-100,1e9-1000,,1e9-10,1e9/10);
  }


    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:18:71: error: expected primary-expression before ',' token
   18 |      printf("%lld %lld %lld %lld %lld %lld",0,1e9-10,1e9-100,1e9-1000,,1e9-10,1e9/10);
      |                                                                       ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef pair<int,int> P;
const int maxn=1e5+10;
int n,q;
int a[maxn];
priority_queue<P>que;
int main()
{
     int n,m,k;
  ll s;
  cin>>s;
  if(s<=1e9)
    printf("%lld %lld %lld %lld %lld %lld",0,0,0,1,s,0);
  else
  {
     printf("%lld %lld %lld %lld %lld %lld",0,1e9-10,1e9-100,1e9-1000,,1e9-10);
  }
   
    
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:18:71: error: expected primary-expression before ',' token
   18 |      printf("%lld %lld %lld %lld %lld %lld",0,1e9-10,1e9-100,1e9-1000,,1e9-10);
      |                                                                       ^