Language: C

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

 const int dx=tx-sx,dy=ty-sy;

 // Path 1
 cout << string(dy,’U’) << string(dx,’R’);

 // Path 2
 cout << string(dy,’D’) << string(dx,’L’);

 // Path 3
 cout << ’L’ << string(dy+1,’U’) << string(dx+1,’R’) << ’D’;

 // Path 4
 cout << ’R’ << string(dy+1,’D’) << string(dx+1,’L’) << ’U’;

 // EndLine
 cout << endl;
 return 0;
 }


Compiler output:
main.c: In function 'main':
main.c:3:2: error: 'cin' undeclared (first use in this function)
    3 |  cin >> sx >> sy >> tx >> ty;
      |  ^~~
main.c:3:2: note: each undeclared identifier is reported only once for each function it appears in
main.c:8:2: error: 'cout' undeclared (first use in this function)
    8 |  cout << string(dy,’U’) << string(dx,’R’);
      |  ^~~~
main.c:8:10: error: implicit declaration of function 'string' [-Wimplicit-function-declaration]
    8 |  cout << string(dy,’U’) << string(dx,’R’);
      |          ^~~~~~
main.c:8:20: error: stray '\342' in program
    8 |  cout << string(dy,<U+2019>U<U+2019>) << string(dx,<U+2019>R<U+2019>);
      |                    ^~~~~~~~
main.c:8:22: error: stray '\342' in program
    8 |  cout << string(dy,<U+2019>U<U+2019>) << string(dx,<U+2019>R<U+2019>);
      |                             ^~~~~~~~
main.c:8:21: error: 'U' undeclared (first use in this function)
    8 |  cout << string(dy,’U’) << string(dx,’R’);
      |                     ^
main.c:8:38: error: stray '\342' in program
    8 |  cout << string(dy,<U+2019>U<U+2019>) << string(dx,<U+2019>R<U+2019>);
      |                                                    ^~~~~~~~
main.c:8:40: error: stray '\342' in program
    8 |  cout << string(dy,<U+2019>U<U+2019>) << string(dx,<U+2019>R<U+2019>);
      |                                                             ^~~~~~~~
main.c:8:39: error: 'R' undeclared (first use in this function)
    8 |  cout << string(dy,’U’) << string(dx,’R’);
      |                                       ^
main.c:11:20: error: stray '\342' in program
   11 |  cout << string(dy,<U+2019>D<U+2019>) << string(dx,<U+2019>L<U+2019>);
      |                    ^~~~~~~~
main.c:11:22: error: stray '\342' in program
   11 |  cout << string(dy,<U+2019>D<U+2019>) << string(dx,<U+2019>L<U+2019>);
      |                             ^~~~~~~~
main.c:11:21: error: 'D' undeclared (first use in this function)
   11 |  cout << string(dy,’D’) << string(dx,’L’);
      |                     ^
main.c:11:38: error: stray '\342' in program
   11 |  cout << string(dy,<U+2019>D<U+2019>) << string(dx,<U+2019>L<U+2019>);
      |                                                    ^~~~~~~~
main.c:11:40: error: stray '\342' in program
   11 |  cout << string(dy,<U+2019>D<U+2019>) << string(dx,<U+2019>L<U+2019>);
      |                                                             ^~~~~~~~
main.c:11:39: error: 'L' undeclared (first use in this function)
   11 |  cout << string(dy,’D’) << string(dx,’L’);
      |                                       ^
main.c:14:10: error: stray '\342' in program
   14 |  cout << <U+2019>L<U+2019> << string(dy+1,<U+2019>U<U+2019>) << string(dx+1,<U+2019>R<U+2019>) << <U+2019>D<U+2019>;
      |          ^~~~~~~~
main.c:14:12: error: stray '\342' in program
   14 |  cout << <U+2019>L<U+2019> << string(dy+1,<U+2019>U<U+2019>) << string(dx+1,<U+2019>R<U+2019>) << <U+2019>D<U+2019>;
      |                   ^~~~~~~~
main.c:14:29: error: stray '\342' in program
   14 |  cout << <U+2019>L<U+2019> << string(dy+1,<U+2019>U<U+2019>) << string(dx+1,<U+2019>R<U+2019>) << <U+2019>D<U+2019>;
      |                                           ^~~~~~~~
main.c:14:31: error: stray '\342' in program
   14 |  cout << <U+2019>L<U+2019> << string(dy+1,<U+2019>U<U+2019>) << string(dx+1,<U+2019>R<U+2019>) << <U+2019>D<U+2019>;
      |                                                    ^~~~~~~~
main.c:14:49: error: stray '\342' in program
   14 |  cout << <U+2019>L<U+2019> << string(dy+1,<U+2019>U<U+2019>) << string(dx+1,<U+2019>R<U+2019>) << <U+2019>D<U+2019>;
      |                                                                             ^~~~~~~~
main.c:14:51: error: stray '\342' in program
   14 |  cout << <U+2019>L<U+2019> << string(dy+1,<U+2019>U<U+2019>) << string(dx+1,<U+2019>R<U+2019>) << <U+2019>D<U+2019>;
      |                                                                                      ^~~~~~~~
main.c:14:57: error: stray '\342' in program
   14 |  cout << <U+2019>L<U+2019> << string(dy+1,<U+2019>U<U+2019>) << string(dx+1,<U+2019>R<U+2019>) << <U+2019>D<U+2019>;
      |                                                                                                   ^~~~~~~~
main.c:14:59: error: stray '\342' in program
   14 |  cout << <U+2019>L<U+2019> << string(dy+1,<U+2019>U<U+2019>) << string(dx+1,<U+2019>R<U+2019>) << <U+2019>D<U+2019>;
      |                                                                                                            ^~~~~~~~
main.c:17:10: error: stray '\342' in program
   17 |  cout << <U+2019>R<U+2019> << string(dy+1,<U+2019>D<U+2019>) << string(dx+1,<U+2019>L<U+2019>) << <U+2019>U<U+2019>;
      |          ^~~~~~~~
main.c:17:12: error: stray '\342' in program
   17 |  cout << <U+2019>R<U+2019> << string(dy+1,<U+2019>D<U+2019>) << string(dx+1,<U+2019>L<U+2019>) << <U+2019>U<U+2019>;
      |                   ^~~~~~~~
main.c:17:29: error: stray '\342' in program
   17 |  cout << <U+2019>R<U+2019> << string(dy+1,<U+2019>D<U+2019>) << string(dx+1,<U+2019>L<U+2019>) << <U+2019>U<U+2019>;
      |                                           ^~~~~~~~
main.c:17:31: error: stray '\342' in program
   17 |  cout << <U+2019>R<U+2019> << string(dy+1,<U+2019>D<U+2019>) << string(dx+1,<U+2019>L<U+2019>) << <U+2019>U<U+2019>;
      |                                                    ^~~~~~~~
main.c:17:49: error: stray '\342' in program
   17 |  cout << <U+2019>R<U+2019> << string(dy+1,<U+2019>D<U+2019>) << string(dx+1,<U+2019>L<U+2019>) << <U+2019>U<U+2019>;
      |                                                                             ^~~~~~~~
main.c:17:51: error: stray '\342' in program
   17 |  cout << <U+2019>R<U+2019> << string(dy+1,<U+2019>D<U+2019>) << string(dx+1,<U+2019>L<U+2019>) << <U+2019>U<U+2019>;
      |                                                                                      ^~~~~~~~
main.c:17:57: error: stray '\342' in program
   17 |  cout << <U+2019>R<U+2019> << string(dy+1,<U+2019>D<U+2019>) << string(dx+1,<U+2019>L<U+2019>) << <U+2019>U<U+2019>;
      |                                                                                                   ^~~~~~~~
main.c:17:59: error: stray '\342' in program
   17 |  cout << <U+2019>R<U+2019> << string(dy+1,<U+2019>D<U+2019>) << string(dx+1,<U+2019>L<U+2019>) << <U+2019>U<U+2019>;
      |                                                                                                            ^~~~~~~~
main.c:20:10: error: 'endl' undeclared (first use in this function)
   20 |  cout << endl;
      |          ^~~~