criyle/codenet-compile-errors huggingface dataset:
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main() {
  int a,b,c,d;
  cin >> a >> b >> c >> d;
  int x = c−a;
  int y = d−b;
  cout << c−y << d+x << a−y << b+x << endl;
}

Compiler output:
a.cc:6:11: error: extended character − is not valid in an identifier
    6 |   int x = c−a;
      |           ^
a.cc:7:11: error: extended character − is not valid in an identifier
    7 |   int y = d−b;
      |           ^
a.cc:8:11: error: extended character − is not valid in an identifier
    8 |   cout << c−y << d+x << a−y << b+x << endl;
      |           ^
a.cc:8:25: error: extended character − is not valid in an identifier
    8 |   cout << c−y << d+x << a−y << b+x << endl;
      |                         ^
a.cc: In function 'int main()':
a.cc:6:11: error: 'c\U00002212a' was not declared in this scope
    6 |   int x = c−a;
      |           ^~~
a.cc:7:11: error: 'd\U00002212b' was not declared in this scope
    7 |   int y = d−b;
      |           ^~~
a.cc:8:11: error: 'c\U00002212y' was not declared in this scope
    8 |   cout << c−y << d+x << a−y << b+x << endl;
      |           ^~~
a.cc:8:25: error: 'a\U00002212y' was not declared in this scope
    8 |   cout << c−y << d+x << a−y << b+x << endl;
      |                         ^~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main() {
  int a,b,c,d;
  cin >> a >> b >> c >> d;
  int x = c−a,y = d−b;
  cout << c−y << d+x << a−y << b+x << endl;
}

Compiler output:
a.cc:6:11: error: extended character − is not valid in an identifier
    6 |   int x = c−a,y = d−b;
      |           ^
a.cc:6:19: error: extended character − is not valid in an identifier
    6 |   int x = c−a,y = d−b;
      |                   ^
a.cc:7:11: error: extended character − is not valid in an identifier
    7 |   cout << c−y << d+x << a−y << b+x << endl;
      |           ^
a.cc:7:25: error: extended character − is not valid in an identifier
    7 |   cout << c−y << d+x << a−y << b+x << endl;
      |                         ^
a.cc: In function 'int main()':
a.cc:6:11: error: 'c\U00002212a' was not declared in this scope
    6 |   int x = c−a,y = d−b;
      |           ^~~
a.cc:7:11: error: 'c\U00002212y' was not declared in this scope
    7 |   cout << c−y << d+x << a−y << b+x << endl;
      |           ^~~
a.cc:7:25: error: 'a\U00002212y' was not declared in this scope
    7 |   cout << c−y << d+x << a−y << b+x << endl;
      |                         ^~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
#define rep(i,n) for(int i=0;i<(int)(n);i++)
#define all(v) v.begin(),v.end()
#define rall(v) v.rbegin(),v.rend()
typedef long long ll;
#define _GLIBCXX_DEBUG
typedef vector<int> vec;
typedef vector<ll> lvec;
typedef vector<char> cvec;
typedef vector<double> dvec;
typedef pair<ll, ll> LP;
typedef tuple<ll, ll, ll> LT;
typedef pair<int, int> P;
typedef tuple<int, int, int> T;
#define fs first
#define sc second
int main()	{
  int a,b,c,d;
  cin>>a>>b>>c>>d;
  int x,y;
  x=c-a; y=d-b;
  cout<<c-y<<" "<<d+x<<" "<<a-y<<" "<<b+x<<endl;
}
}

Compiler output:
a.cc:25:1: error: expected declaration before '}' token
   25 | }
      | ^
Language: Java

import java.util.*;
public class Main{
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        int a = sc.nextInt();
        int b = sc.nextInt();
        int c = sc.nextInt();
        int d = sc.nextInt();
        int x = c-a;
        int y = d-b;

        System.out.println(c-y+" "+d+x+" "+a-y+" "+b+x);
        



    }
}


Compiler output:
Main.java:12: error: bad operand types for binary operator '-'
        System.out.println(c-y+" "+d+x+" "+a-y+" "+b+x);
                                            ^
  first type:  String
  second type: int
1 error
Language: C++

#include<stdio . h>using  namespace  std ;int  main ()fint  a ,  b ,  c ,  d ;scanf ("%d%d%d%d" , &a , &b , &c , &d ) ;int  x = c

Compiler output:
a.cc:1:27: warning: extra tokens at end of #include directive
    1 | #include<stdio . h>using  namespace  std ;int  main ()fint  a ,  b ,  c ,  d ;scanf ("%d%d%d%d" , &a , &b , &c , &d ) ;int  x = c
      |                           ^~~~~~~~~
a.cc:1:9: fatal error: stdio . h>usin: No such file or directory
    1 | #include<stdio . h>using  namespace  std ;int  main ()fint  a ,  b ,  c ,  d ;scanf ("%d%d%d%d" , &a , &b , &c , &d ) ;int  x = c
      |         ^~~~~~~~~~~~~~~~
compilation terminated.
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main() {
  int x1,y1,x2,y2;
  cin >>x1>>y1>>x2>>y2;
  cout << x2-(y2-y1) << " " << y2+(x2-x1);  << " " << x1-(y2-y1) << " " << y1+(x2-x1);
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:45: error: expected primary-expression before '<<' token
    7 |   cout << x2-(y2-y1) << " " << y2+(x2-x1);  << " " << x1-(y2-y1) << " " << y1+(x2-x1);
      |                                             ^~
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main() {
  int x1,y1,x2,y2;
  cin >>x1>>y1>>x2>>y2;
  cout << x2-(y2-y1) << " " << y2+(x2-x1);  << " " << x1-(y2-y1) << " " << y1+(x2-x1);

Compiler output:
a.cc: In function 'int main()':
a.cc:7:45: error: expected primary-expression before '<<' token
    7 |   cout << x2-(y2-y1) << " " << y2+(x2-x1);  << " " << x1-(y2-y1) << " " << y1+(x2-x1);
      |                                             ^~
a.cc:7:87: error: expected '}' at end of input
    7 |   cout << x2-(y2-y1) << " " << y2+(x2-x1);  << " " << x1-(y2-y1) << " " << y1+(x2-x1);
      |                                                                                       ^
a.cc:4:12: note: to match this '{'
    4 | int main() {
      |            ^
Language: C++

x1,y1,x2,y2 =map(int ,input().split())
a =x2-x1
b =y2-y1

x3 =x2-b
y3 =y2+a
x4 =x3-a
y4 =y3-b

print(x3,y3,x4,y4)

Compiler output:
a.cc:1:1: error: 'x1' does not name a type
    1 | x1,y1,x2,y2 =map(int ,input().split())
      | ^~
Language: C++

#include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
#define all(v) (v).begin(),(v).end()
#define out(a) cout << (a) << endl
using namespace std;
using ll = long long;
int main(){
    int a, b, c, d;
    cin >> a >> b >> c >> d;
    int x=c-1, y=d-b;
    out(c-y, d+x, a-y, b+x);
}

Compiler output:
a.cc:11:27: error: macro "out" passed 4 arguments, but takes just 1
   11 |     out(c-y, d+x, a-y, b+x);
      |                           ^
a.cc:4:9: note: macro "out" defined here
    4 | #define out(a) cout << (a) << endl
      |         ^~~
a.cc: In function 'int main()':
a.cc:11:5: error: 'out' was not declared in this scope
   11 |     out(c-y, d+x, a-y, b+x);
      |     ^~~
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(){
int x1,y1,x2,y2;
  cin>>x1>>y1>>x2>>y2;
  int x3=x2+y1-y2;
  int y3=yx2+y2-x1;
  int x4=x1+y1-y2;
  int y4=y1+x2-x1;
  cout<<x3 <<y3 <<x4 <<y4<<endl;

return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:10: error: 'yx2' was not declared in this scope; did you mean 'y2'?
    7 |   int y3=yx2+y2-x1;
      |          ^~~
      |          y2
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(){
int x1,y1,x2,y2;
  cin>>x1>>y1>>x2>>y2;
  int x3=x2+y1-y2;
  int y3=y1+y2=x1;
  int x4=x1+y1=y2;
  int y4=y1+x2-x1;
  cout<<x3 <<y3 <<x4 <<y4<<endl;

return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:12: error: lvalue required as left operand of assignment
    7 |   int y3=y1+y2=x1;
      |          ~~^~~
a.cc:8:12: error: lvalue required as left operand of assignment
    8 |   int x4=x1+y1=y2;
      |          ~~^~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
#define rep(i,n) for (int i = 0; i < (n); ++i)
using ll = long long;
using P = pair<int, int>;

int X1, Y1, X2, Y2, X3, Y3, X4, Y4;
int DX, DY;

int main() {a
  cin >> X1 >> Y1 >> X2 >> Y2;
  DX = X1 - X2;
  DY = Y1 - Y2;
  X3 = X2 + DY;
  Y3 = Y2 - DX;
  X4 = X1 - X2 + X3;
  Y4 = Y1 - Y3 + Y3;
  cout << X3 << " " << Y3 << " " << X4  << " " << Y4 << endl;
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:10:13: error: 'a' was not declared in this scope
   10 | int main() {a
      |             ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
#define rep(i,n) for(int i=0;i<n;i++)
#define ll long long

int main(){
	int x1,y1,x2,y2;
	cin >> x1 >> y1 >> x2 >> y2;
	cout << x2 -( y2 - y1) << endl;
	cout <<y2 + x2-x1 <<endl:
cout <<	x1 - y2 + y1 <<endl;
cout << y1 + x2 - x1  << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:10:33: error: found ':' in nested-name-specifier, expected '::'
   10 |         cout <<y2 + x2-x1 <<endl:
      |                                 ^
      |                                 ::
a.cc:10:29: error: 'endl' is not a class, namespace, or enumeration
   10 |         cout <<y2 + x2-x1 <<endl:
      |                             ^~~~
Language: C

#include<stdio.h>
int main(void){
  int x1,y1,x2,y2,sum;
  scanf("%d %d",&x1,&y1,&x2,&y2);
  sum=y2-y1;
  printf("%d",x2-sum);
  printf("%d",y2);
  printf("%d"x2-sum);
  printf("%d",y2-sum);
  reutrn 0;
}

Compiler output:
main.c: In function 'main':
main.c:8:14: error: expected ')' before 'x2'
    8 |   printf("%d"x2-sum);
      |         ~    ^~
      |              )
main.c:10:3: error: 'reutrn' undeclared (first use in this function)
   10 |   reutrn 0;
      |   ^~~~~~
main.c:10:3: note: each undeclared identifier is reported only once for each function it appears in
main.c:10:9: error: expected ';' before numeric constant
   10 |   reutrn 0;
      |         ^~
      |         ;
Language: C++

#define Yes(n) cout << ((n) ? "Yes" : "No") << endl 
 
int main()
{
    int x1,y1,x2,y2;
    cin >> x1 >> y1 >> x2 >> y2;
    int x3,y3,x4,y4;
    x3 = x2 - y2 + y1;
    y3 = y2 + x2 - x1;
    x4 = x1 + x3 - x2;
    y4 = y1 + y3 - y2;
    cout << x3 << " " << y3 << " " << x4 << " " << y4 <<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:5: error: 'cin' was not declared in this scope
    6 |     cin >> x1 >> y1 >> x2 >> y2;
      |     ^~~
a.cc:12:5: error: 'cout' was not declared in this scope
   12 |     cout << x3 << " " << y3 << " " << x4 << " " << y4 <<endl;
      |     ^~~~
a.cc:12:57: error: 'endl' was not declared in this scope
   12 |     cout << x3 << " " << y3 << " " << x4 << " " << y4 <<endl;
      |                                                         ^~~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main(){
  int x1,y1,x2,y2;
  cin>>x1>>y1>>x2>>y2;
  int dx=x2-x1;
  int dy=y2-y1;
  int x3,y3,x4,y4;
  x3=x2-dy;
  x4=x3-dx;
  y3=y2+dx;
  y4=y3+dy;
  cout<<x3<<<""<y3<<""<<x4<<""<<y4<<endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:14:13: error: expected primary-expression before '<' token
   14 |   cout<<x3<<<""<y3<<""<<x4<<""<<y4<<endl;
      |             ^
a.cc:14:19: error: invalid operands of types 'int' and 'const char [1]' to binary 'operator<<'
   14 |   cout<<x3<<<""<y3<<""<<x4<<""<<y4<<endl;
      |                 ~~^~~~
      |                 |   |
      |                 int const char [1]
Language: C++


#include <bits/stdc++.h>
#include <math.h>
#define REP(i, n) for(int i = 0; i < (n); i++)
#define ALL(v) (v).begin(), (v).end()
using namespace std;
typedef long long ll;
typedef pair<int, int> P;
const int INF = 1001001001;
const int mINF = -1001001001;


int main() {
int x[4],y[4];
REP(i,2) cin >> x[i] >> y[i];
int X = x[1]-x[0];
int Y = y[1]-y[0];
x[2] = x[1]-Y;
x[3] = x[2]+X;
y[2] = y[1]+x;
y[3] = y[2]-y;
REP(i,2) cout << x[i+2] << " " << y[i+2] << " ";
return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:20:12: error: invalid conversion from 'int*' to 'int' [-fpermissive]
   20 | y[2] = y[1]+x;
      |        ~~~~^~
      |            |
      |            int*
a.cc:21:12: error: invalid operands of types 'int' and 'int [4]' to binary 'operator-'
   21 | y[3] = y[2]-y;
      |        ~~~~^~
      |           | |
      |           | int [4]
      |           int
Language: C++

int main(void)
{
    int x1, y1, x2, y2;
    cin >> x1 >> y1 >> x2 >> y2;

    int diff_x = x2 - x1;
    int diff_y = y2 - y1;

    int x3, y3, x4, y4;
    x3 = x2 - diff_y;
    y3 = y2 + diff_x;
    x4 = x1 - diff_y;
    y4 = y1 + diff_x;

    printf("%d %d %d %d\n", x3, y3, x4, y4);
    return (0);
}

Compiler output:
a.cc: In function 'int main()':
a.cc:4:5: error: 'cin' was not declared in this scope
    4 |     cin >> x1 >> y1 >> x2 >> y2;
      |     ^~~
a.cc:15:5: error: 'printf' was not declared in this scope
   15 |     printf("%d %d %d %d\n", x3, y3, x4, y4);
      |     ^~~~~~
a.cc:1:1: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
  +++ |+#include <cstdio>
    1 | int main(void)
Language: C++

#include<bits/stdc++.h>
#define rep(i,n) for (int i = 0; i < n; ++i)
#define rep2(i,s,n) for (int i = s; i < n; ++i)
#define all(a) a.begin(),a.end()
using namespace std;
using ll = long long;
using P = pair<int,int>;

int main() {
    int x1,x2,y1,y2;
    cin >> x1 >> y1 >> x2 >> y2;
    if(x1 == x2) {
        printf("%d &d &d &d/n",x1+(y1-y2),y2,x1+(y1-y2),y1)
    } else {
        printf("%d %d %d %d/n",x2,y1+(x2-x1),x1,y1+(x2-x1))
    }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:60: error: expected ';' before '}' token
   13 |         printf("%d &d &d &d/n",x1+(y1-y2),y2,x1+(y1-y2),y1)
      |                                                            ^
      |                                                            ;
   14 |     } else {
      |     ~                                                       
a.cc:15:60: error: expected ';' before '}' token
   15 |         printf("%d %d %d %d/n",x2,y1+(x2-x1),x1,y1+(x2-x1))
      |                                                            ^
      |                                                            ;
   16 |     }
      |     ~
Language: C++

#include<bits/stdc++.h>
#define rep(i,n) for (int i = 0; i < n; ++i)
#define rep2(i,s,n) for (int i = s; i < n; ++i)
#define all(a) a.begin(),a.end()
using namespace std;
using ll = long long;
using P = pair<int,int>;

int main() {
    int x1,x2,y1,y2;
    cin >> x1 >> y1 >> x2 >> y2;
    if(x1 == x2) {
        if(y1 > y2) cout << x1+(y1-y2) << y2 << x1+(y1-y2) << y1 << endl;
        else cout << x1-(y2-y1) << y2 << x-(y2-y1) << y1 << endl;
    } else if(x1 > x2) {
        cout << x2 << y1-(x1-x2) << x1 << y1-(x1-x2) << endl;
    } else {
        cout << x2 << y1+(x2-x1) << x1 << y1+(x2-x1) << endl;
    }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:14:42: error: 'x' was not declared in this scope; did you mean 'x2'?
   14 |         else cout << x1-(y2-y1) << y2 << x-(y2-y1) << y1 << endl;
      |                                          ^
      |                                          x2
Language: C

#include <bits/stdc++.h>
#include <stack>
using namespace std;
int main()
{

    int x1,x2,x3,x4,y1,y2,y3,y4;
    scanf("%d %d %d %d",&x1,&y1,&x2,&y2);
    for(int i=-100;i<=100;i++)
    {
        for(int x=-100;x<=100;x++)
        {
            if(y2>y1&&i<x)
            {
                if((i-x1)*(i-x1)+(x-y1)*(x-y1)==(x1-x2)*(x1-x2)+(y1-y2)*(y1-y2))
                {
                    x3=i+x2-x1;
                    y3=x+y2-y1;
                    if((x3-x2)*(x3-x2)+(y3-y2)*(y3-y2)==(x1-x2)*(x1-x2)+(y1-y2)*(y1-y2))
                    {
                        if(i==x1&&x1==x2&&x2==x3)
                            break;
                        printf("%d %d %d %d",x3,y3,i,x);
                        break;
                    }
                }
            }
           else if(y2<y1&&i>x)
            {
                if((i-x1)*(i-x1)+(x-y1)*(x-y1)==(x1-x2)*(x1-x2)+(y1-y2)*(y1-y2))
                {
                    x3=i+x2-x1;
                    y3=x+y2-y1;
                    if((x3-x2)*(x3-x2)+(y3-y2)*(y3-y2)==(x1-x2)*(x1-x2)+(y1-y2)*(y1-y2))
                    {
                        if(i==x1&&x1==x2&&x2==x3)
                            break;
                        printf("%d %d %d %d",x3,y3,i,x);
                        break;
                    }
                }
            }
          else if(y2==y1)
            {
                if(x2>x1&&x>y1&&i==x1)
                {
                    if((i-x1)*(i-x1)+(x-y1)*(x-y1)==(x1-x2)*(x1-x2)+(y1-y2)*(y1-y2))
                {
                    x3=i+x2-x1;
                    y3=x+y2-y1;
                    if((x3-x2)*(x3-x2)+(y3-y2)*(y3-y2)==(x1-x2)*(x1-x2)+(y1-y2)*(y1-y2))
                    {
                        if(i==x1&&x1==x2&&x2==x3)
                            break;
                        printf("%d %d %d %d",x3,y3,i,x);
                        break;
                    }
                }
                }
               else if(x2<x1&&x<y1&&i==x1)
                {
                    if((i-x1)*(i-x1)+(x-y1)*(x-y1)==(x1-x2)*(x1-x2)+(y1-y2)*(y1-y2))
                {
                    x3=i+x2-x1;
                    y3=x+y2-y1;
                    if((x3-x2)*(x3-x2)+(y3-y2)*(y3-y2)==(x1-x2)*(x1-x2)+(y1-y2)*(y1-y2))
                    {
                        if(i==x1&&x1==x2&&x2==x3)
                            break;
                        printf("%d %d %d %d",x3,y3,i,x);
                        break;
                    }
                }
                }
            }
        }
    }



}

Compiler output:
main.c:1:10: fatal error: bits/stdc++.h: No such file or directory
    1 | #include <bits/stdc++.h>
      |          ^~~~~~~~~~~~~~~
compilation terminated.
Language: C

#include <stdio.h>
using namespace std ;
int main ( )
{
int a , b , c , d ;
scanf(”%d%d%d%d ” , &a , &b , &c , &d ) ;
int x = c − a , y = d − b ;
printf (”%d%d%d%d\n” , c − y , d + x , a − y , b + x ) ;
}

Compiler output:
main.c:2:1: error: unknown type name 'using'
    2 | using namespace std ;
      | ^~~~~
main.c:2:17: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'std'
    2 | using namespace std ;
      |                 ^~~
main.c: In function 'main':
main.c:6:7: error: stray '\342' in program
    6 | scanf(<U+201D>%d%d%d%d <U+201D> , &a , &b , &c , &d ) ;
      |       ^~~~~~~~
main.c:6:8: error: expected expression before '%' token
    6 | scanf(”%d%d%d%d ” , &a , &b , &c , &d ) ;
      |        ^
main.c:6:17: error: stray '\342' in program
    6 | scanf(<U+201D>%d%d%d%d <U+201D> , &a , &b , &c , &d ) ;
      |                        ^~~~~~~~
main.c:7:11: error: stray '\342' in program
    7 | int x = c <U+2212> a , y = d <U+2212> b ;
      |           ^~~~~~~~
main.c:7:13: error: expected ',' or ';' before 'a'
    7 | int x = c − a , y = d − b ;
      |             ^
main.c:7:23: error: stray '\342' in program
    7 | int x = c <U+2212> a , y = d <U+2212> b ;
      |                              ^~~~~~~~
main.c:8:9: error: stray '\342' in program
    8 | printf (<U+201D>%d%d%d%d\n<U+201D> , c <U+2212> y , d + x , a <U+2212> y , b + x ) ;
      |         ^~~~~~~~
main.c:8:10: error: expected expression before '%' token
    8 | printf (”%d%d%d%d\n” , c − y , d + x , a − y , b + x ) ;
      |          ^
main.c:8:18: error: stray '\' in program
    8 | printf (”%d%d%d%d\n” , c − y , d + x , a − y , b + x ) ;
      |                  ^
main.c:8:20: error: stray '\342' in program
    8 | printf (<U+201D>%d%d%d%d\n<U+201D> , c <U+2212> y , d + x , a <U+2212> y , b + x ) ;
      |                           ^~~~~~~~
main.c:8:26: error: stray '\342' in program
    8 | printf (<U+201D>%d%d%d%d\n<U+201D> , c <U+2212> y , d + x , a <U+2212> y , b + x ) ;
      |                                        ^~~~~~~~
main.c:8:42: error: stray '\342' in program
    8 | printf (<U+201D>%d%d%d%d\n<U+201D> , c <U+2212> y , d + x , a <U+2212> y , b + x ) ;
      |                                                               ^~~~~~~~
Language: C++

#include <stdio.h>
using namespace std ;
int main ( )
{
int a , b , c , d ;
scanf(”%d%d%d%d ” , &a , &b , &c , &d ) ;
int x = c − a , y = d − b ;
printf (”%d%d%d%d\n” , c − y , d + x , a − y , b + x ) ;
}

Compiler output:
a.cc:6:7: error: extended character ” is not valid in an identifier
    6 | scanf(”%d%d%d%d ” , &a , &b , &c , &d ) ;
      |       ^
a.cc:6:17: error: extended character ” is not valid in an identifier
    6 | scanf(”%d%d%d%d ” , &a , &b , &c , &d ) ;
      |                 ^
a.cc:7:11: error: extended character − is not valid in an identifier
    7 | int x = c − a , y = d − b ;
      |           ^
a.cc:7:23: error: extended character − is not valid in an identifier
    7 | int x = c − a , y = d − b ;
      |                       ^
a.cc:8:9: error: extended character ” is not valid in an identifier
    8 | printf (”%d%d%d%d\n” , c − y , d + x , a − y , b + x ) ;
      |         ^
a.cc:8:18: error: stray '\' in program
    8 | printf (”%d%d%d%d\n” , c − y , d + x , a − y , b + x ) ;
      |                  ^
a.cc:8:19: error: extended character ” is not valid in an identifier
    8 | printf (”%d%d%d%d\n” , c − y , d + x , a − y , b + x ) ;
      |                   ^
a.cc:8:26: error: extended character − is not valid in an identifier
    8 | printf (”%d%d%d%d\n” , c − y , d + x , a − y , b + x ) ;
      |                          ^
a.cc:8:42: error: extended character − is not valid in an identifier
    8 | printf (”%d%d%d%d\n” , c − y , d + x , a − y , b + x ) ;
      |                                          ^
a.cc: In function 'int main()':
a.cc:6:7: error: '\U0000201d' was not declared in this scope
    6 | scanf(”%d%d%d%d ” , &a , &b , &c , &d ) ;
      |       ^
a.cc:7:11: error: expected ',' or ';' before '\U00002212'
    7 | int x = c − a , y = d − b ;
      |           ^
a.cc:8:25: error: expected ')' before '\U00002212'
    8 | printf (”%d%d%d%d\n” , c − y , d + x , a − y , b + x ) ;
      |        ~                ^~
      |                         )
a.cc:8:41: error: expected ')' before '\U00002212'
    8 | printf (”%d%d%d%d\n” , c − y , d + x , a − y , b + x ) ;
      |        ~                                ^~
      |                                         )
Language: C++

#include <stdio.h>
using namespace std ;
int main ( )
{
int a , b , c , d ;
scanf(”%d%d%d%d ” , &a , &b , &c , &d ) ;
int x = c − a , y = d − b ;
printf (”%d %d %d %d\n ” , c − y , d + x , a − y , b + x ) ;
}

Compiler output:
a.cc:6:7: error: extended character ” is not valid in an identifier
    6 | scanf(”%d%d%d%d ” , &a , &b , &c , &d ) ;
      |       ^
a.cc:6:17: error: extended character ” is not valid in an identifier
    6 | scanf(”%d%d%d%d ” , &a , &b , &c , &d ) ;
      |                 ^
a.cc:7:11: error: extended character − is not valid in an identifier
    7 | int x = c − a , y = d − b ;
      |           ^
a.cc:7:23: error: extended character − is not valid in an identifier
    7 | int x = c − a , y = d − b ;
      |                       ^
a.cc:8:9: error: extended character ” is not valid in an identifier
    8 | printf (”%d %d %d %d\n ” , c − y , d + x , a − y , b + x ) ;
      |         ^
a.cc:8:21: error: stray '\' in program
    8 | printf (”%d %d %d %d\n ” , c − y , d + x , a − y , b + x ) ;
      |                     ^
a.cc:8:24: error: extended character ” is not valid in an identifier
    8 | printf (”%d %d %d %d\n ” , c − y , d + x , a − y , b + x ) ;
      |                        ^
a.cc:8:30: error: extended character − is not valid in an identifier
    8 | printf (”%d %d %d %d\n ” , c − y , d + x , a − y , b + x ) ;
      |                              ^
a.cc:8:46: error: extended character − is not valid in an identifier
    8 | printf (”%d %d %d %d\n ” , c − y , d + x , a − y , b + x ) ;
      |                                              ^
a.cc: In function 'int main()':
a.cc:6:7: error: '\U0000201d' was not declared in this scope
    6 | scanf(”%d%d%d%d ” , &a , &b , &c , &d ) ;
      |       ^
a.cc:7:11: error: expected ',' or ';' before '\U00002212'
    7 | int x = c − a , y = d − b ;
      |           ^
a.cc:8:29: error: expected ')' before '\U00002212'
    8 | printf (”%d %d %d %d\n ” , c − y , d + x , a − y , b + x ) ;
      |        ~                    ^~
      |                             )
a.cc:8:45: error: expected ')' before '\U00002212'
    8 | printf (”%d %d %d %d\n ” , c − y , d + x , a − y , b + x ) ;
      |        ~                                    ^~
      |                                             )
Language: C++

#include <bits/stdc++.h>

using namespace std;

typedef long long LL;

const int N = 1010;

int x1, x2, x3, x4;
int y1, y2, y3, y4;

int main()
{
    scanf("%d%d%d%d", &x1, &y1, &x2, &y2);

    x3 = x2 - (y2 - y1);
    y3 = y2 + (x2 - x1);
    x4 = x1 - (y2 - y1);
    y4 = y1 + (x2 - x1);

    printf("%d %d %d %d\n", x3, y3, x4, y4);
    return 0;
}


Compiler output:
a.cc:10:5: error: 'int y1' redeclared as different kind of entity
   10 | int y1, y2, y3, y4;
      |     ^~
In file included from /usr/include/features.h:523,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/os_defines.h:39,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/c++config.h:683,
                 from /usr/include/c++/14/cassert:43,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:33,
                 from a.cc:1:
/usr/include/x86_64-linux-gnu/bits/mathcalls.h:257:1: note: previous declaration 'double y1(double)'
  257 | __MATHCALL (y1,, (_Mdouble_));
      | ^~~~~~~~~~
a.cc: In function 'int main()':
a.cc:16:19: error: invalid operands of types 'int' and 'double(double) noexcept' to binary 'operator-'
   16 |     x3 = x2 - (y2 - y1);
      |                ~~ ^ ~~
      |                |    |
      |                int  double(double) noexcept
a.cc:18:19: error: invalid operands of types 'int' and 'double(double) noexcept' to binary 'operator-'
   18 |     x4 = x1 - (y2 - y1);
      |                ~~ ^ ~~
      |                |    |
      |                int  double(double) noexcept
a.cc:19:13: warning: pointer to a function used in arithmetic [-Wpointer-arith]
   19 |     y4 = y1 + (x2 - x1);
      |          ~~~^~~~~~~~~~~
a.cc:19:13: error: invalid conversion from 'double (*)(double) noexcept' to 'int' [-fpermissive]
   19 |     y4 = y1 + (x2 - x1);
      |          ~~~^~~~~~~~~~~
      |             |
      |             double (*)(double) noexcept
Language: C++

def rotate_counter(vec):
  return (-vec[1], vec[0])


def apply(point, vec):
  return (point[0] + vec[0], point[1] + vec[1])


def main():
  (x1, y1, x2, y2) = map(int, input().split())
  vec = (x2 - x1, y2 - y1)

  vec = rotate_counter(vec)
  (x3, y3) = apply((x2, y2), vec)

  vec = rotate_counter(vec)
  (x4, y4) = apply((x3, y3), vec)

  print(x3, y3, x4, y4)


if __name__ == '__main__':
  main()



Compiler output:
a.cc:22:16: warning: multi-character literal with 8 characters exceeds 'int' size of 4 bytes
   22 | if __name__ == '__main__':
      |                ^~~~~~~~~~
a.cc:1:1: error: 'def' does not name a type
    1 | def rotate_counter(vec):
      | ^~~
Language: C++

#include <iostream>
#include <cstdio>
#include <string>
#include <cstring>
#include <deque>
#include <list>
#include <queue>
#include <stack>
#include <vector>
#include <utility>
#include <algorithm>
#include <map>
#include <set>
#include <complex>
#include <cmath>
#include <limits>
#include <cfloat>
#include <climits>
#include <ctime>
#include <cassert>
#include <numeric>
#include <functional>
#include <bitset>

using namespace std;
#define int long long int
const int INF = 1001001001001001LL;
const int MOD = 1000000007;

int di[] = {-1, 0, 1, 0, -1, 1, 1, -1};
int dj[] = {0, 1, 0, -1, 1, 1, -1, -1};

signed main(){
    
    int x1, y1, x2, y2; cin >> x1 >> y1 >> x2 >> y2;
    int a = x2 - x1;
    int b = y2 - y1;
    cout << 
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:39:5: error: expected primary-expression before 'return'
   39 |     return 0;
      |     ^~~~~~
Language: C++

#include <stdio.h>
using namespace std ;
int main(){
  int a , b , c , d;
  scanf(”%d%d%d%d ” , &a , &b , &c , &d );
  int x = c − a , y = d − b;
  printf(”%d %d %d %d\n ” , c − y , d + x , a − y , b + x ) ;
}

Compiler output:
a.cc:5:9: error: extended character ” is not valid in an identifier
    5 |   scanf(”%d%d%d%d ” , &a , &b , &c , &d );
      |         ^
a.cc:5:19: error: extended character ” is not valid in an identifier
    5 |   scanf(”%d%d%d%d ” , &a , &b , &c , &d );
      |                   ^
a.cc:6:13: error: extended character − is not valid in an identifier
    6 |   int x = c − a , y = d − b;
      |             ^
a.cc:6:25: error: extended character − is not valid in an identifier
    6 |   int x = c − a , y = d − b;
      |                         ^
a.cc:7:10: error: extended character ” is not valid in an identifier
    7 |   printf(”%d %d %d %d\n ” , c − y , d + x , a − y , b + x ) ;
      |          ^
a.cc:7:22: error: stray '\' in program
    7 |   printf(”%d %d %d %d\n ” , c − y , d + x , a − y , b + x ) ;
      |                      ^
a.cc:7:25: error: extended character ” is not valid in an identifier
    7 |   printf(”%d %d %d %d\n ” , c − y , d + x , a − y , b + x ) ;
      |                         ^
a.cc:7:31: error: extended character − is not valid in an identifier
    7 |   printf(”%d %d %d %d\n ” , c − y , d + x , a − y , b + x ) ;
      |                               ^
a.cc:7:47: error: extended character − is not valid in an identifier
    7 |   printf(”%d %d %d %d\n ” , c − y , d + x , a − y , b + x ) ;
      |                                               ^
a.cc: In function 'int main()':
a.cc:5:9: error: '\U0000201d' was not declared in this scope
    5 |   scanf(”%d%d%d%d ” , &a , &b , &c , &d );
      |         ^
a.cc:6:13: error: expected ',' or ';' before '\U00002212'
    6 |   int x = c − a , y = d − b;
      |             ^
a.cc:7:30: error: expected ')' before '\U00002212'
    7 |   printf(”%d %d %d %d\n ” , c − y , d + x , a − y , b + x ) ;
      |         ~                    ^~
      |                              )
a.cc:7:46: error: expected ')' before '\U00002212'
    7 |   printf(”%d %d %d %d\n ” , c − y , d + x , a − y , b + x ) ;
      |         ~                                    ^~
      |                                              )
Language: C

#include<stdio .h> 
using namespace std ; int main()
{
inta,b,c,d;
scanf(”%d%d%d%d”, &a, &b, &c, &d);
int x=c−a, y=d−b;
printf(”%d%d%d%d\n”, c−y, d+x, a−y, b+x);
}

Compiler output:
main.c:1:9: fatal error: stdio .h: No such file or directory
    1 | #include<stdio .h>
      |         ^~~~~~~~~~
compilation terminated.
Language: C++

#include<stdio .h> 
using namespace std ; int main()
{
inta,b,c,d;
scanf(”%d%d%d%d”, &a, &b, &c, &d);
int x=c−a, y=d−b;
printf(”%d%d%d%d\n”, c−y, d+x, a−y, b+x);
}


Compiler output:
a.cc:1:9: fatal error: stdio .h: No such file or directory
    1 | #include<stdio .h>
      |         ^~~~~~~~~~
compilation terminated.
Language: C++

#pragma gcc optimize("Ofast")
#include <bits/stdc++.h>

using namespace std;
using ll = long long;

#define FOR(i, a, b) for (int i = (a); i < (b); ++i)
#define REP(i, n) FOR(i, 0, n)
#define ALL(V) (V).begin(),(V).end()
#define SORT(V) sort(ALL(V)) //小さい方からソート
#define REV(V) reverse(ALL(V)) //リバース
#define RSORT(V) SORT(V);REV(V) //大きい方からソート
#define NPN(V) next_permutation(ALL(V)) //順列
#define pb(n) push_back(n)
#define endl '\n'
#define Endl '\n'
#define DUMP(x)  cout << #x << " = " << (x) << endl
#define YES(n) cout << ((n) ? "YES" : "NO"  ) << endl
#define Yes(n) cout << ((n) ? "Yes" : "No"  ) << endl
#define Yay(n) cout << ((n) ? "Yay!": ":(") << endl
#define RAPID cin.tie(0);ios::sync_with_stdio(false)
#define VSUM(V) accumulate(ALL(V), 0)
#define MID(a,b,c) (a) < (b) && (b) < (c)
#define MIDe(a,b,c) (a) <= (b) && (b) <= (c)
#define IN(n) cin >> n
#define IN2(a,b) cin >> a >> b
#define IN3(a,b,c) cin >> a >> b >> c 
#define IN4(a,b,c,d) cin >> a >> b >> c >> d
#define VIN(V) for(int i = 0; i < (V).size(); i++) {cin >> (V).at(i);}
#define OUT(n) cout << n << endl
#define VOUT(V) REP(i, (V).size()) {cout << (V)[i] << endl;}
#define VOUT2(V) REP(i, (V).size()) {cout << (V)[i] << " ";} cout<<endl;

// 型マクロ定義
#define int long long
#define P pair<ll,ll>
#define Vi vector<ll>
#define Vd vector<double>
#define Vs vector<string>
#define Vc vector<char>
#define M map<ll,ll>
#define S set<ll>
#define PQ priority_queue<ll>
#define PQG priority_queue<ll,V,greater<ll>
//

const int MOD = 1000000007;
const int INF = 1061109567;
const double EPS = 1e-10;
const double PI  = acos(-1.0);

int gcd(int a,int b){return b != 0 ? gcd(b, a % b) : a;} //最大公約数
int lcm(int a, int b){return a * b / gcd(a, b);}
string toStrUp(string str){char diff = 'A'-'a';REP(i,str.size()) str[i] += diff;return str;}
string gCh(string str, int key){return str.substr(key,1);}

signed main() {
  RAPID;
  // デフォルト変数定義
  int n=0,m=0,a=0,b=0,c=0,d=0,x=0,y=0,z=0;
  string s="",t="";
  //

  // ここから
  IN4(a,b,c,d);
  int x = c - a;
  int y = d - b;
  cout << c-y << " " << d+x << " " << a-y << " " << b+x << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:66:7: error: redeclaration of 'long long int x'
   66 |   int x = c - a;
      |       ^
a.cc:60:31: note: 'long long int x' previously declared here
   60 |   int n=0,m=0,a=0,b=0,c=0,d=0,x=0,y=0,z=0;
      |                               ^
a.cc:67:7: error: redeclaration of 'long long int y'
   67 |   int y = d - b;
      |       ^
a.cc:60:35: note: 'long long int y' previously declared here
   60 |   int n=0,m=0,a=0,b=0,c=0,d=0,x=0,y=0,z=0;
      |                                   ^
Language: C++

#include <iostream>
#include <vector>
#include <stdio.h>

int main(void)
{
	vector<pair<int, int>> co(4);
	cin >> co[0].first >> co[0].second >> co[1].first >> co[1].second;
	pair<int, int> dire(co[1].first - co[0].first, co[1].second - co[0].second);

	co[2].first = co[1].first - dire.second;
	co[2].second = co[1].second + dire.first;
	co[3].first = co[2].first - dire.first;
	co[3].second = co[2].second - dire.second;

	printf("%d %d %d %d \n", co[2].first, co[2].second, co[3].first, co[3].second);
	
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:9: error: 'vector' was not declared in this scope
    7 |         vector<pair<int, int>> co(4);
      |         ^~~~~~
a.cc:7:9: note: suggested alternatives:
In file included from /usr/include/c++/14/vector:66,
                 from a.cc:2:
/usr/include/c++/14/bits/stl_vector.h:428:11: note:   'std::vector'
  428 |     class vector : protected _Vector_base<_Tp, _Alloc>
      |           ^~~~~~
/usr/include/c++/14/vector:93:13: note:   'std::pmr::vector'
   93 |       using vector = std::vector<_Tp, polymorphic_allocator<_Tp>>;
      |             ^~~~~~
a.cc:7:16: error: 'pair' was not declared in this scope; did you mean 'std::pair'?
    7 |         vector<pair<int, int>> co(4);
      |                ^~~~
      |                std::pair
In file included from /usr/include/c++/14/string:48,
                 from /usr/include/c++/14/bits/locale_classes.h:40,
                 from /usr/include/c++/14/bits/ios_base.h:41,
                 from /usr/include/c++/14/ios:44,
                 from /usr/include/c++/14/ostream:40,
                 from /usr/include/c++/14/iostream:41,
                 from a.cc:1:
/usr/include/c++/14/bits/stl_iterator.h:3013:12: note: 'std::pair' declared here
 3013 |     struct pair;
      |            ^~~~
a.cc:7:21: error: expected primary-expression before 'int'
    7 |         vector<pair<int, int>> co(4);
      |                     ^~~
a.cc:8:9: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    8 |         cin >> co[0].first >> co[0].second >> co[1].first >> co[1].second;
      |         ^~~
      |         std::cin
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:8:16: error: 'co' was not declared in this scope
    8 |         cin >> co[0].first >> co[0].second >> co[1].first >> co[1].second;
      |                ^~
a.cc:9:14: error: expected primary-expression before 'int'
    9 |         pair<int, int> dire(co[1].first - co[0].first, co[1].second - co[0].second);
      |              ^~~
a.cc:11:37: error: 'dire' was not declared in this scope
   11 |         co[2].first = co[1].first - dire.second;
      |                                     ^~~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main() {
  int x1,x2,y1,y2;
  cin >> x1 >>y1 >>x2 >>y2;
  if(x1>x2 && y1>y2){
    cout <<x2+(y1-y2)<<" "<< y2-(x1-x2)<<" "<< x1+(y1-y2)<<" "<< y1-(x1-x2);
  }else if(x1>x2 && y1<y2){
    cout << x2-(y2-y1) <<" "<< y2-(x1-x2) <<" "<< x1-(y2-y1)<<" "<<y1-(x1-x2);
  }else if(x1<x2 && y1>y2){
    cout << x2+(y1-y2) << " "<<y2+(x2-x1)<" " << x1+(y1-y2) <<" "<< y1+(x2-x1);
  }else{
    cout << x1-(y2-y1) <<" "<< y1-(x2-x1)<<" " << x2+(y2-y1)<<" " << y2-(x2-x1);
  }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:11:47: error: invalid operands of types 'const char [2]' and 'int' to binary 'operator<<'
   11 |     cout << x2+(y1-y2) << " "<<y2+(x2-x1)<" " << x1+(y1-y2) <<" "<< y1+(x2-x1);
      |                                           ~~~ ^~ ~~~~~~~~~~
      |                                           |        |
      |                                           |        int
      |                                           const char [2]
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main() {
  int x1,x2,y1,y2;
  cin >> x1 >>y1 >>x2 >>y2;
  if(x1>x2 && y1>y2){
    cout << x2+(y1-y2) << y2-(x1-x2) << x1+(y1-y2) << y1-(x1-x2);
  }else if(x1>x2 && y1<y2){
    cout << x2-(y2-y1) << y2-(x1-x2) << x1-(y2-y1) << y1-(x1-x2);
  }else if(x1<x2 && y1>y2){
    cout << x2+(y1-y2) << y2+(x2-x1) << x1+(y1-y2) << y1+(x2-x1)
  }else{
    cout << x1-(y2-y1) << y1-(x2-x1) << x2+(y2-y1) << y2-(x2-x1)
  }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:11:65: error: expected ';' before '}' token
   11 |     cout << x2+(y1-y2) << y2+(x2-x1) << x1+(y1-y2) << y1+(x2-x1)
      |                                                                 ^
      |                                                                 ;
   12 |   }else{
      |   ~                                                              
a.cc:13:65: error: expected ';' before '}' token
   13 |     cout << x1-(y2-y1) << y1-(x2-x1) << x2+(y2-y1) << y2-(x2-x1)
      |                                                                 ^
      |                                                                 ;
   14 |   }
      |   ~
Language: C++

#include <iostream>
#include <vector>
#include <algorithm>
#include <string>
#include <deque>
#include <list>
#include <map>
#include <queue>
#include <set>
#include <stack>
#include <cstring>
#include <iomanip>

#define rep(i,n) for(int i=0;i<(n);i++)
#define reps(i,n) for(int i=1;i<=(n);i++)
const int INF = 0x3f3f3f3f;
const long long LINF = 0x3f3f3f3f3f3f3f3fLL;
using namespace std;

int main(){
  cin.tie(0);
  ios::sync_with_stdio(false);
  int x1,x2,y1,y2;
  cin>>x1>>y1>>x2>>y2;
  int na=abs(x1-x2),su=abs(y1-y2);
  if(x1<=x2){
      if(y1<=y2){
	  cout<<x2-su<<" "<<y2+na<<" "<<x1-su<<" "<<y1+na<<'\n';
      }
      else{
	  cout<<x2+su<<" "<<y2+na<<" "<<x1+su<<" "<<y1+na<<'\n';
      }
  else{
      if(y1<=y2){
	  cout<<x2-su<<" "<<y2-na<<" "<<x1-su<<" "<<y1-na<<'\n';
      }
      else{
	   cout<<x2+su<<" "<<y2-na<<" "<<x1+su<<" "<<y1-na<<'\n';
      }
  }
      
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:33:3: error: expected '}' before 'else'
   33 |   else{
      |   ^~~~
a.cc:26:13: note: to match this '{'
   26 |   if(x1<=x2){
      |             ^
Language: C++

#include<bits/stdc++.h>
#define rep(i,n)for(int i=0;i<n;++i)
#include<string>
using namespace std;
typedef long long ll;
ll MOD = 1e9 + 7;

int main() {
	vector<int>x(2), y(2);
	rep(i,2) {
		cin >> x[i] >> y[i];
	}
	int a = x[1] - (y[1] - y[0]);
	int b = y[1] + (x[1] - x[0]);
	int c = x[0] - (y[1] - y[0]);
	int d = y[0] + (x[1] - x[0]);
	cout << a <<''<< b <<''<< c <<''<< d << endl;
}

Compiler output:
a.cc:17:21: error: empty character constant
   17 |         cout << a <<''<< b <<''<< c <<''<< d << endl;
      |                     ^~
a.cc:17:30: error: empty character constant
   17 |         cout << a <<''<< b <<''<< c <<''<< d << endl;
      |                              ^~
a.cc:17:39: error: empty character constant
   17 |         cout << a <<''<< b <<''<< c <<''<< d << endl;
      |                                       ^~
Language: C++

#include<bits/stdc++.h>
#define rep(i,n)for(int i=0;i<n;++i)
#include<string>
using namespace std;
typedef long long ll;
ll MOD = 1e9 + 7;

int main() {
	vector<int>x(2), y(2);
	rep(i,2) {
		cin >> x[i] >> y[i];
	}
	int a = x[1] + (y[1] - y[0]);
	int b = y[1] - (x[1] - x[0]);
	int c = x[0] + (y[1] - y[0]);
	int d = y[0] - (x[1] - x[0]);
	cout << a << '' << b << '' << c << '' << d << endl;
}

Compiler output:
a.cc:17:22: error: empty character constant
   17 |         cout << a << '' << b << '' << c << '' << d << endl;
      |                      ^~
a.cc:17:33: error: empty character constant
   17 |         cout << a << '' << b << '' << c << '' << d << endl;
      |                                 ^~
a.cc:17:44: error: empty character constant
   17 |         cout << a << '' << b << '' << c << '' << d << endl;
      |                                            ^~
Language: C++

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

int main(){
  int x1,x2,y1,y2;
  cin >> x1 >> y1 >> x2 >> y2;
  if((x2>x1){
    cout << x2 << ' ' << abs(x2-x1)+y1 << ' ' << x1 <<  abs(x2-x1)+y1 << endl;
  }else if(x2<x1){
    cout << x2 << ' ' << -abs(x2-x1)+y1 << ' ' << x1 <<  -abs(x2-x1)+y1 << endl;
  }else{
    if(y2<y1){
      cout << x1-abs(y2-y1) << ' ' << y2 << ' ' << x1-abs(y2-y1) << y1 << endl;
    }else{
      cout << x1+abs(y2-y1) << ' ' << y2 << ' ' << x1+abs(y2-y1) << y1 << endl;
    }
  }    
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:13: error: expected ')' before '{' token
    7 |   if((x2>x1){
      |     ~       ^
      |             )
a.cc:18:1: error: expected primary-expression before '}' token
   18 | }
      | ^
Language: C++

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

int main(){
  int a,b,c,d;
  cin>>a>>b>>c>>d;
  int s=abs(c-a),t=abs(d-b);
  cout<<c-t<<' '<<d+s<<' '<<a-t<<' '<<b+s<<endl;
}

Compiler output:
a.cc:1:10: fatal error: bits/sydc++.h: No such file or directory
    1 | #include <bits/sydc++.h>
      |          ^~~~~~~~~~~~~~~
compilation terminated.
Language: Java

import java.util.*;

class Main{
  public static void main(String[] args){
    Scanner sc=new Scanner(System.in);
    int x1=sc.nextInt();
    int y1=sc.nextInt();
    int x2=sc.nextInt();
    int y2=sc.nextInt();
    int dx=x2-x1;
    int dy=y2-y1
    int x3=x2-dy;
    int y3=y2+dx;
    int x4=x3-dx;
    int y4=y3-dy;
    System.out.println(x3+" "+y3+" "+x4+" "+y4);
  }
}


Compiler output:
Main.java:11: error: ';' expected
    int dy=y2-y1
                ^
1 error
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main(){
  int x1,y1,x2,y2;
  cin >> x1 >> y1 >> x2 >> y2;
  int x3 = (y1-y2)+x2;
  int y3 = (x1-x2)*(-1)+y2;
  int x4 = (y2-y3)+x3;
  int y4 = (x2-x3)*(-1)+y3;
  cout << x3" " << y3" " << x4" " << y4 << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:13: error: expected ';' before string constant
   10 |   cout << x3" " << y3" " << x4" " << y4 << endl;
      |             ^~~
      |             ;
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main(){
  int x1,y1,x2,y2;
  cin >> x1 >> y1 >> x2 >> y2;
  int x3 = (x1-x2)*0+(y1-y2)+x2;
  int y3 = (x1-x2)*(-1)+y2;
  int x4 = (y2-y3)+x3;
  int y4 = (x2-x3)*(-1)+x2;
  cout << x3 << y3 << x4 << y4　<< endl;
}

Compiler output:
a.cc:10:29: error: extended character 　 is not valid in an identifier
   10 |   cout << x3 << y3 << x4 << y4　<< endl;
      |                             ^
a.cc: In function 'int main()':
a.cc:10:29: error: 'y4\U00003000' was not declared in this scope
   10 |   cout << x3 << y3 << x4 << y4　<< endl;
      |                             ^~~~
Language: C++

#include<iostream>
using namespace std; 
int main(){int a,b,c,d;cin >> a >> b >> c >> d;int x=c−a, y=d−b;cout<<c−y<<d+x<<a−y<<b+x << endl;
}


Compiler output:
a.cc:3:54: error: extended character − is not valid in an identifier
    3 | int main(){int a,b,c,d;cin >> a >> b >> c >> d;int x=c−a, y=d−b;cout<<c−y<<d+x<<a−y<<b+x << endl;
      |                                                      ^
a.cc:3:61: error: extended character − is not valid in an identifier
    3 | int main(){int a,b,c,d;cin >> a >> b >> c >> d;int x=c−a, y=d−b;cout<<c−y<<d+x<<a−y<<b+x << endl;
      |                                                             ^
a.cc:3:71: error: extended character − is not valid in an identifier
    3 | int main(){int a,b,c,d;cin >> a >> b >> c >> d;int x=c−a, y=d−b;cout<<c−y<<d+x<<a−y<<b+x << endl;
      |                                                                       ^
a.cc:3:81: error: extended character − is not valid in an identifier
    3 | int main(){int a,b,c,d;cin >> a >> b >> c >> d;int x=c−a, y=d−b;cout<<c−y<<d+x<<a−y<<b+x << endl;
      |                                                                                 ^
a.cc: In function 'int main()':
a.cc:3:54: error: 'c\U00002212a' was not declared in this scope
    3 | int main(){int a,b,c,d;cin >> a >> b >> c >> d;int x=c−a, y=d−b;cout<<c−y<<d+x<<a−y<<b+x << endl;
      |                                                      ^~~
a.cc:3:71: error: 'c\U00002212y' was not declared in this scope
    3 | int main(){int a,b,c,d;cin >> a >> b >> c >> d;int x=c−a, y=d−b;cout<<c−y<<d+x<<a−y<<b+x << endl;
      |                                                                       ^~~
a.cc:3:81: error: 'a\U00002212y' was not declared in this scope
    3 | int main(){int a,b,c,d;cin >> a >> b >> c >> d;int x=c−a, y=d−b;cout<<c−y<<d+x<<a−y<<b+x << endl;
      |                                                                                 ^~~
Language: C++

#include<iostream>
using namespace std; 
int main(){
	int a,b,c,d;
	cin >> a >> b >> c >> d;
	int x=c−a, y=d−b;
	cout <<  c−y<<  d+x<<  a−y <<  b+x << endl;
}


Compiler output:
a.cc:6:15: error: extended character − is not valid in an identifier
    6 |         int x=c−a, y=d−b;
      |               ^
a.cc:6:22: error: extended character − is not valid in an identifier
    6 |         int x=c−a, y=d−b;
      |                      ^
a.cc:7:18: error: extended character − is not valid in an identifier
    7 |         cout <<  c−y<<  d+x<<  a−y <<  b+x << endl;
      |                  ^
a.cc:7:32: error: extended character − is not valid in an identifier
    7 |         cout <<  c−y<<  d+x<<  a−y <<  b+x << endl;
      |                                ^
a.cc: In function 'int main()':
a.cc:6:15: error: 'c\U00002212a' was not declared in this scope
    6 |         int x=c−a, y=d−b;
      |               ^~~
a.cc:7:18: error: 'c\U00002212y' was not declared in this scope
    7 |         cout <<  c−y<<  d+x<<  a−y <<  b+x << endl;
      |                  ^~~
a.cc:7:32: error: 'a\U00002212y' was not declared in this scope
    7 |         cout <<  c−y<<  d+x<<  a−y <<  b+x << endl;
      |                                ^~~