Language: C++

using namespace std;

typedef long long i64;
typedef vector<int> vi;
typedef vector<i64> vi64;
typedef vector<vi> vvi;
typedef vector<vi64> vvi64;
typedef double ld;

int main() {
    
    ios::sync_with_stdio(false);
    cin.tie(0);
    cout.precision(10);
    cout << fixed;

    int N;
    cin >> N;
    vi64 x(N), y(N);
    
    int mod = -1;
    for (int i = 0; i < N; i++) {
        cin >> x[i] >> y[i];
    }

    for (int i = 0; i < N; i++) {
        int m = (x[i] + y[i]) % 2;
        if (mod < 0) mod = m;
        else {
            if (mod != m) {
                cout << -1 << endl;
                return 0;
            }
        }
    }

    int a = 32;
    if (mod == 0) {
        cout << a + 1 << endl;
    } else {
        cout << a << endl;
    }

    for (i64 m = a; m >= 0; m--) {
        i64 b = 1;
        b = (b << m);
        cout << b;
        if (m > 0) cout << " ";
    }

    if (mod == 0) cout << " " << 1;

    cout << endl;

    for (int i = 0; i < N; i++) {
        for (int m = a; m >= 0; m--) {

            i64 d = 1;
            d = (d << m);

            if (abs(x[i]) > abs(y[i])) {
                if (x[i] > 0) {
                    x[i] -= d;
                    cout << "R";
                } else {
                    x[i] += d;
                    cout << "L";
                }
            } else {
                if (y[i] > 0) {
                    y[i] -= d;
                    cout << "U";
                } else {
                    y[i] += d;
                    cout << "D";
                }
            }
        }

        if (mod == 0) {
            if (x[i] > 0) {
                cout << "R";
                x[i] -= 1;
            }
            else if (x[i] < 0) {
                cout << "L";
                x[i] += 1;
            }
            else if (y[i] < 0) {
                cout << "D";
                y[i] += 1;
            }
            else if (y[i] > 0) {
                cout << "U";
                y[i] -= 1;
            }
        }

        assert (x[i] == 0);
        assert (y[i] == 0);
        cout << endl;
    }

    return 0;
}

Compiler output:
a.cc:4:9: error: 'vector' does not name a type
    4 | typedef vector<int> vi;
      |         ^~~~~~
a.cc:5:9: error: 'vector' does not name a type
    5 | typedef vector<i64> vi64;
      |         ^~~~~~
a.cc:6:9: error: 'vector' does not name a type
    6 | typedef vector<vi> vvi;
      |         ^~~~~~
a.cc:7:9: error: 'vector' does not name a type
    7 | typedef vector<vi64> vvi64;
      |         ^~~~~~
a.cc: In function 'int main()':
a.cc:12:5: error: 'ios' has not been declared
   12 |     ios::sync_with_stdio(false);
      |     ^~~
a.cc:13:5: error: 'cin' was not declared in this scope
   13 |     cin.tie(0);
      |     ^~~
a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 | using namespace std;
a.cc:14:5: error: 'cout' was not declared in this scope
   14 |     cout.precision(10);
      |     ^~~~
a.cc:14:5: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:15:13: error: 'fixed' was not declared in this scope
   15 |     cout << fixed;
      |             ^~~~~
a.cc:1:1: note: 'std::fixed' is defined in header '<ios>'; this is probably fixable by adding '#include <ios>'
  +++ |+#include <ios>
    1 | using namespace std;
a.cc:19:5: error: 'vi64' was not declared in this scope; did you mean 'i64'?
   19 |     vi64 x(N), y(N);
      |     ^~~~
      |     i64
a.cc:23:16: error: 'x' was not declared in this scope
   23 |         cin >> x[i] >> y[i];
      |                ^
a.cc:23:24: error: 'y' was not declared in this scope
   23 |         cin >> x[i] >> y[i];
      |                        ^
a.cc:27:18: error: 'x' was not declared in this scope
   27 |         int m = (x[i] + y[i]) % 2;
      |                  ^
a.cc:27:25: error: 'y' was not declared in this scope
   27 |         int m = (x[i] + y[i]) % 2;
      |                         ^
a.cc:31:31: error: 'endl' was not declared in this scope
   31 |                 cout << -1 << endl;
      |                               ^~~~
a.cc:1:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
  +++ |+#include <ostream>
    1 | using namespace std;
a.cc:39:26: error: 'endl' was not declared in this scope
   39 |         cout << a + 1 << endl;
      |                          ^~~~
a.cc:39:26: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
a.cc:41:22: error: 'endl' was not declared in this scope
   41 |         cout << a << endl;
      |                      ^~~~
a.cc:41:22: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
a.cc:53:13: error: 'endl' was not declared in this scope
   53 |     cout << endl;
      |             ^~~~
a.cc:53:13: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
a.cc:61:21: error: 'x' was not declared in this scope
   61 |             if (abs(x[i]) > abs(y[i])) {
      |                     ^
a.cc:61:17: error: 'abs' was not declared in this scope
   61 |             if (abs(x[i]) > abs(y[i])) {
      |                 ^~~
a.cc:61:33: error: 'y' was not declared in this scope
   61 |             if (abs(x[i]) > abs(y[i])) {
      |                                 ^
a.cc:81:17: error: 'x' was not declared in this scope
   81 |             if (x[i] > 0) {
      |                 ^
a.cc:89:22: error: 'y' was not declared in this scope
   89 |             else if (y[i] < 0) {
      |                      ^
a.cc:99:17: error: 'x' was not declared in this scope
   99 |         assert (x[i] == 0);
      |                 ^
a.cc:99:9: error: 'assert' was not declared in this scope
   99 |         assert (x[i] == 0);
      |         ^~~~~~
a.cc:1:1: note: 'assert' is defined in header '<cassert>'; this is probably fixable by adding '#include <cassert>'
  +++ |+#include <cassert>
    1 | using namespace std;
a.cc:100:17: error: 'y' was not declared in this scope
  100 |         assert (y[i] == 0);
      |                 ^