Language: C++

#include<iostream>
#include<string>
#include<vector>
#include<map>
#include<utility>
#include<list>
#include<algorithm>
#include <ctype.h>
#include<deque>
using namespace std;
using ll = long long int;
constexpr ll MAX = 1000000000;
ll s, smin;
ll x1 = 0;
ll x2 = 0, y2;
ll x3, y3 = 0;

ll divisor(ll n, ll m) {
	ll i = -1;
	for (i = 1; i * i <= n; i++) {
		if (n % i == 0) {
			if ( n / i <= m)
				break;
		}
	}
	return i;
}

int main(void) {
	cin >> s;
	ll a, b;
	for (ll i = 1; i < s; i++) {
		b = i;
		a = s + b;
		ll xx3 = divisor(a, MAX);
		ll xx2 = divisor(b, MAX);
		if (xx3 < 0 || xx2 < 0)
			continue;
		ll yy2 = a / xx3;
		ll yy3 = b / xx2;

		x2 = xx2;
		y2 = yy2;
		x3 = xx3;
		y3 = yy3;
		break;
	}

	cout << x1 << " " << 0 << " ";
	cout << x2 << " " << y2 << " ";
	cout << x3 << " " << y3 << endl;
	return 0;
}#include<iostream>
#include<string>
#include<vector>
#include<map>
#include<utility>
#include<list>
#include<algorithm>
#include <ctype.h>
#include<deque>
using namespace std;
using ll = long long int;
constexpr ll MAX = 1000000000;
ll s, smin;
ll x1 = 0;
ll x2 = 0, y2;
ll x3, y3 = 0;

ll divisor(ll n, ll m) {
	ll i = -1;
	for (i = 1; i * i <= n; i++) {
		if (n % i == 0) {
			if ( n / i <= m)
				break;
		}
	}
	return i;
}

int main(void) {
	cin >> s;
	ll a, b;
	for (ll i = 1; i < s; i++) {
		b = i;
		a = s + b;
		ll xx3 = divisor(a, MAX);
		ll xx2 = divisor(b, MAX);
		if (xx3 < 0 || xx2 < 0)
			continue;
		ll yy2 = a / xx3;
		ll yy3 = b / xx2;

		x2 = xx2;
		y2 = yy2;
		x3 = xx3;
		y3 = yy3;
		break;
	}

	cout << x1 << " " << 0 << " ";
	cout << x2 << " " << y2 << " ";
	cout << x3 << " " << y3 << endl;
	return 0;
}

Compiler output:
a.cc:53:2: error: stray '#' in program
   53 | }#include<iostream>
      |  ^
a.cc:53:3: error: 'include' does not name a type
   53 | }#include<iostream>
      |   ^~~~~~~
a.cc:64:14: error: redefinition of 'constexpr const ll MAX'
   64 | constexpr ll MAX = 1000000000;
      |              ^~~
a.cc:12:14: note: 'constexpr const ll MAX' previously defined here
   12 | constexpr ll MAX = 1000000000;
      |              ^~~
a.cc:65:4: error: redefinition of 'll s'
   65 | ll s, smin;
      |    ^
a.cc:13:4: note: 'll s' previously declared here
   13 | ll s, smin;
      |    ^
a.cc:65:7: error: redefinition of 'll smin'
   65 | ll s, smin;
      |       ^~~~
a.cc:13:7: note: 'll smin' previously declared here
   13 | ll s, smin;
      |       ^~~~
a.cc:66:4: error: redefinition of 'll x1'
   66 | ll x1 = 0;
      |    ^~
a.cc:14:4: note: 'll x1' previously defined here
   14 | ll x1 = 0;
      |    ^~
a.cc:67:4: error: redefinition of 'll x2'
   67 | ll x2 = 0, y2;
      |    ^~
a.cc:15:4: note: 'll x2' previously defined here
   15 | ll x2 = 0, y2;
      |    ^~
a.cc:67:12: error: redefinition of 'll y2'
   67 | ll x2 = 0, y2;
      |            ^~
a.cc:15:12: note: 'll y2' previously declared here
   15 | ll x2 = 0, y2;
      |            ^~
a.cc:68:4: error: redefinition of 'll x3'
   68 | ll x3, y3 = 0;
      |    ^~
a.cc:16:4: note: 'll x3' previously declared here
   16 | ll x3, y3 = 0;
      |    ^~
a.cc:68:8: error: redefinition of 'll y3'
   68 | ll x3, y3 = 0;
      |        ^~
a.cc:16:8: note: 'll y3' previously defined here
   16 | ll x3, y3 = 0;
      |        ^~
a.cc:70:4: error: redefinition of 'll divisor(ll, ll)'
   70 | ll divisor(ll n, ll m) {
      |    ^~~~~~~
a.cc:18:4: note: 'll divisor(ll, ll)' previously defined here
   18 | ll divisor(ll n, ll m) {
      |    ^~~~~~~
a.cc:81:5: error: redefinition of 'int main()'
   81 | int main(void) {
      |     ^~~~
a.cc:29:5: note: 'int main()' previously defined here
   29 | int main(void) {
      |     ^~~~