Language: C++

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

int main() {
    long long s;
    cin >> s;
    long long x1, x2, x3, y1, y2, y3;

    x1 = 1;
    y2 = s;
    x2 = 0;
    y1 = 0;
    x3, y3 = 0;
    if (s <= 1000000000) {
        cout << x1 << " " << y1 << " " << x2 << " " << y2 << " " << x3 << " " << x3 << endl; 
        return 0;
    }
    if (s > 100000000000000000) {
        for (long long i = 1000000000; i > 100000000; i--) {
        if (s % i == 0) {
            x1 = i;
            y2 = s / x1;
            break;
        }
    }
    else if (s > 10000000000000000) {
        for (long long i = 100000000; i > 10000000; i--) {
        if (s % i == 0) {
            x1 = i;
            y2 = s / x1;
            break;
        }
    }
    else if (s > 1000000000000000) {
        for (long long i = 10000000; i > 1000000; i--) {
        if (s % i == 0) {
            x1 = i;
            y2 = s / x1;
            break;
        }
    }
    else if (s > 100000000000000) {
        for (long long i = 1000000; i > 100000; i--) {
        if (s % i == 0) {
            x1 = i;
            y2 = s / x1;
            break;
        }
    }
    else if (s > 10000000000000) {
        for (long long i = 100000; i > 10000; i--) {
        if (s % i == 0) {
            x1 = i;
            y2 = s / x1;
            break;
        }
    }
    else if (s > 1000000000000) {
        for (long long i = 10000; i > 1000; i--) {
        if (s % i == 0) {
            x1 = i;
            y2 = s / x1;
            break;
        }
    }
    else if (s > 100000000000) {
        for (long long i = 1000; i > 100; i--) {
        if (s % i == 0) {
            x1 = i;
            y2 = s / x1;
            break;
        }
    }
    else if (s > 100000000000) {
        for (long long i = 1000; i > 100; i--) {
        if (s % i == 0) {
            x1 = i;
            y2 = s / x1;
            break;
        }
    }
    else if (s > 10000000000) {
        for (long long i = 100; i > 10; i--) {
        if (s % i == 0) {
            x1 = i;
            y2 = s / x1;
            break;
        }
    }
    else if (s > 1000000000) {
        for (long long i = 10; i > 0; i--) {
        if (s % i == 0) {
            x1 = i;
            y2 = s / x1;
            break;
        }
    }

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

Compiler output:
a.cc: In function 'int main()':
a.cc:26:5: error: expected '}' before 'else'
   26 |     else if (s > 10000000000000000) {
      |     ^~~~
a.cc:18:33: note: to match this '{'
   18 |     if (s > 100000000000000000) {
      |                                 ^
a.cc:34:5: error: expected '}' before 'else'
   34 |     else if (s > 1000000000000000) {
      |     ^~~~
a.cc:26:37: note: to match this '{'
   26 |     else if (s > 10000000000000000) {
      |                                     ^
a.cc:42:5: error: expected '}' before 'else'
   42 |     else if (s > 100000000000000) {
      |     ^~~~
a.cc:34:36: note: to match this '{'
   34 |     else if (s > 1000000000000000) {
      |                                    ^
a.cc:50:5: error: expected '}' before 'else'
   50 |     else if (s > 10000000000000) {
      |     ^~~~
a.cc:42:35: note: to match this '{'
   42 |     else if (s > 100000000000000) {
      |                                   ^
a.cc:58:5: error: expected '}' before 'else'
   58 |     else if (s > 1000000000000) {
      |     ^~~~
a.cc:50:34: note: to match this '{'
   50 |     else if (s > 10000000000000) {
      |                                  ^
a.cc:66:5: error: expected '}' before 'else'
   66 |     else if (s > 100000000000) {
      |     ^~~~
a.cc:58:33: note: to match this '{'
   58 |     else if (s > 1000000000000) {
      |                                 ^
a.cc:74:5: error: expected '}' before 'else'
   74 |     else if (s > 100000000000) {
      |     ^~~~
a.cc:66:32: note: to match this '{'
   66 |     else if (s > 100000000000) {
      |                                ^
a.cc:82:5: error: expected '}' before 'else'
   82 |     else if (s > 10000000000) {
      |     ^~~~
a.cc:74:32: note: to match this '{'
   74 |     else if (s > 100000000000) {
      |                                ^
a.cc:90:5: error: expected '}' before 'else'
   90 |     else if (s > 1000000000) {
      |     ^~~~
a.cc:82:31: note: to match this '{'
   82 |     else if (s > 10000000000) {
      |                               ^
a.cc:101:2: error: expected '}' at end of input
  101 | }
      |  ^
a.cc:4:12: note: to match this '{'
    4 | int main() {
      |            ^