Language: C++

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

int main() {
	int sx,sy,tx,ty; 
	cin >> sx >> sy >> tx >> ty;

	const int dx=tx-sx,dy=ty-sy;
	cout << string(dy,’U’) << string(dx,’R’);
	cout << string(dy,’D’) << string(dx,’L’);
	cout << ’L’ << string(dy+1,’U’) << string(dx+1,’R’) << ’D’;
	cout << ’R’ << string(dy+1,’D’) << string(dx+1,’L’) << ’U’;

	cout << endl; 20 return 0;
}


Compiler output:
a.cc:9:27: error: extended character ’ is not valid in an identifier
    9 |         cout << string(dy,’U’) << string(dx,’R’);
      |                           ^
a.cc:9:27: error: extended character ’ is not valid in an identifier
a.cc:9:45: error: extended character ’ is not valid in an identifier
    9 |         cout << string(dy,’U’) << string(dx,’R’);
      |                                             ^
a.cc:9:45: error: extended character ’ is not valid in an identifier
a.cc:10:27: error: extended character ’ is not valid in an identifier
   10 |         cout << string(dy,’D’) << string(dx,’L’);
      |                           ^
a.cc:10:27: error: extended character ’ is not valid in an identifier
a.cc:10:45: error: extended character ’ is not valid in an identifier
   10 |         cout << string(dy,’D’) << string(dx,’L’);
      |                                             ^
a.cc:10:45: error: extended character ’ is not valid in an identifier
a.cc:11:17: error: extended character ’ is not valid in an identifier
   11 |         cout << ’L’ << string(dy+1,’U’) << string(dx+1,’R’) << ’D’;
      |                 ^
a.cc:11:17: error: extended character ’ is not valid in an identifier
a.cc:11:36: error: extended character ’ is not valid in an identifier
   11 |         cout << ’L’ << string(dy+1,’U’) << string(dx+1,’R’) << ’D’;
      |                                    ^
a.cc:11:36: error: extended character ’ is not valid in an identifier
a.cc:11:56: error: extended character ’ is not valid in an identifier
   11 |         cout << ’L’ << string(dy+1,’U’) << string(dx+1,’R’) << ’D’;
      |                                                        ^
a.cc:11:56: error: extended character ’ is not valid in an identifier
a.cc:11:64: error: extended character ’ is not valid in an identifier
   11 |         cout << ’L’ << string(dy+1,’U’) << string(dx+1,’R’) << ’D’;
      |                                                                ^
a.cc:11:64: error: extended character ’ is not valid in an identifier
a.cc:12:17: error: extended character ’ is not valid in an identifier
   12 |         cout << ’R’ << string(dy+1,’D’) << string(dx+1,’L’) << ’U’;
      |                 ^
a.cc:12:17: error: extended character ’ is not valid in an identifier
a.cc:12:36: error: extended character ’ is not valid in an identifier
   12 |         cout << ’R’ << string(dy+1,’D’) << string(dx+1,’L’) << ’U’;
      |                                    ^
a.cc:12:36: error: extended character ’ is not valid in an identifier
a.cc:12:56: error: extended character ’ is not valid in an identifier
   12 |         cout << ’R’ << string(dy+1,’D’) << string(dx+1,’L’) << ’U’;
      |                                                        ^
a.cc:12:56: error: extended character ’ is not valid in an identifier
a.cc:12:64: error: extended character ’ is not valid in an identifier
   12 |         cout << ’R’ << string(dy+1,’D’) << string(dx+1,’L’) << ’U’;
      |                                                                ^
a.cc:12:64: error: extended character ’ is not valid in an identifier
a.cc: In function 'int main()':
a.cc:9:27: error: '\U00002019U\U00002019' was not declared in this scope
    9 |         cout << string(dy,’U’) << string(dx,’R’);
      |                           ^~~
a.cc:9:45: error: '\U00002019R\U00002019' was not declared in this scope
    9 |         cout << string(dy,’U’) << string(dx,’R’);
      |                                             ^~~
a.cc:10:27: error: '\U00002019D\U00002019' was not declared in this scope
   10 |         cout << string(dy,’D’) << string(dx,’L’);
      |                           ^~~
a.cc:10:45: error: '\U00002019L\U00002019' was not declared in this scope
   10 |         cout << string(dy,’D’) << string(dx,’L’);
      |                                             ^~~
a.cc:14:25: error: expected ';' before 'return'
   14 |         cout << endl; 20 return 0;
      |                         ^~~~~~~
      |                         ;