criyle/codenet-compile-errors huggingface dataset:
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:15: error: extended character ” is not valid in an identifier
    5 |         scanf(”%d%d%d%d”, &a, &b, &c, &d);
      |               ^
a.cc:5:23: error: extended character ” is not valid in an identifier
    5 |         scanf(”%d%d%d%d”, &a, &b, &c, &d);
      |                       ^
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:16: 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:25: error: stray '\' in program
    7 |         printf(”%d%d%d%d\n”, c−y, d+x, a−y, b+x);
      |                         ^
a.cc:7:26: 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:30: 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:40: 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:15: error: '\U0000201d' was not declared in this scope
    5 |         scanf(”%d%d%d%d”, &a, &b, &c, &d);
      |               ^
a.cc:5:23: error: 'd\U0000201d' was not declared in this scope
    5 |         scanf(”%d%d%d%d”, &a, &b, &c, &d);
      |                       ^~
a.cc:6:15: error: 'c\U00002212a' was not declared in this scope
    6 |         int x=c−a, y=d−b;
      |               ^~~
a.cc:7:30: error: 'c\U00002212y' was not declared in this scope
    7 |         printf(”%d%d%d%d\n”, c−y, d+x, a−y, b+x);
      |                              ^~~
a.cc:7:40: error: 'a\U00002212y' was not declared in this scope
    7 |         printf(”%d%d%d%d\n”, c−y, d+x, a−y, b+x);
      |                                        ^~~
Language: C++

include<iostream>
using namespace std;
int main(){
  int x1,x2,x3,x4,y1,y2,y3,y4;
  cin>>x1>>y1>>x2>>y2;
  x3=x2+y1-y2;
  y3=y2+x2-x1;
  x4=x3+x1-x2;
  y4=y3+y2-y1;
  cout<<x3<<" "<<y3<<" "<<x4<<" "<<y4<<endl;
}

Compiler output:
a.cc:1:1: error: 'include' does not name a type
    1 | include<iostream>
      | ^~~~~~~
a.cc: In function 'int main()':
a.cc:5:3: error: 'cin' was not declared in this scope
    5 |   cin>>x1>>y1>>x2>>y2;
      |   ^~~
a.cc:10:3: error: 'cout' was not declared in this scope
   10 |   cout<<x3<<" "<<y3<<" "<<x4<<" "<<y4<<endl;
      |   ^~~~
a.cc:10:40: error: 'endl' was not declared in this scope
   10 |   cout<<x3<<" "<<y3<<" "<<x4<<" "<<y4<<endl;
      |                                        ^~~~
Language: C++

#include<iostream>
#include <vector>

using namespace std;

int main()
{
	int x1, y1, x2, y2;
	cin >> x1 >> y1 >> x2 >> y2 ;
  
    int dx = x2 - x1 ;
    int dy = y2 - y1 ;

    for(int i=0;i<2;i++){
     swap(dx,dy) ;
     dx = -dx ;
     x+= dx ;
     y+= dy ;
     cout << x << '' << y << endl;
    }
    
	return 0;
}


Compiler output:
a.cc:19:19: error: empty character constant
   19 |      cout << x << '' << y << endl;
      |                   ^~
a.cc: In function 'int main()':
a.cc:17:6: error: 'x' was not declared in this scope
   17 |      x+= dx ;
      |      ^
a.cc:18:6: error: 'y' was not declared in this scope
   18 |      y+= dy ;
      |      ^
Language: C++

#include <iostream>
#include <algorithm>
#include <cmath>

void rot(int x, int y, int& x1, int& y2)
{
    x1 = y;
    y1 = -x;
}

int main()
{
    int a, b, c, d;
    std::cin >> a >> b >> c >> d;

    int x = c - a;
    int y = d - b;

    int x1 = y;
    int y1 = -x;
    int x2 = x1 + y1;
    int y2 = y1 - x1;

    std::cout << (c+x1) << " " << (d+y1) << " " << (c+x2) << " " << (d+y2) << std::endl;
  
    return 0;
}

Compiler output:
a.cc: In function 'void rot(int, int, int&, int&)':
a.cc:8:8: error: assignment of function 'double y1(double)'
    8 |     y1 = -x;
      |     ~~~^~~~
Language: C++

#include <iostream>

int main()
{
    int a, b, c, d;
    std::cin >> a >> b >> c >> d;

    int x = c - a;
    int y = d - b;

    int x1 = -y;
    int y1 = -x;
    int x2 = -y1;
    int y2 = -x1;

    std::out << (c + x1) << " " << (d + y1) << " " << (c + x2) << " " << (d + y2) << std::endl;
    
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:16:10: error: 'out' is not a member of 'std'; did you mean 'oct'?
   16 |     std::out << (c + x1) << " " << (d + y1) << " " << (c + x2) << " " << (d + y2) << std::endl;
      |          ^~~
      |          oct
Language: C++

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

int main(){
  int x1,y1,x2,y2;
  cin >>x1>>y1>>x2>>y2;
  
  int x3,y3,x4,y4;
  
  int dx = abs(x1-x2);
  int dy = abs(y1-y2);
  
  if(y1>y2){
    x3 = x2+yd;
    x4 = x1+yd;
  }else{
    x3 = x2-yd;
    x4 = x1-yd;
  }
  
  if(x1>x2){
    y3 = y2-xd;
    y4 = y1-xd;
  }else{
    y3 = y2+xd;
    y4 = y1+xd;
  }
  
  cout <<x3<<' '<<y3<<' '<<x4<<' '<<y4<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:14:13: error: 'yd' was not declared in this scope; did you mean 'dy'?
   14 |     x3 = x2+yd;
      |             ^~
      |             dy
a.cc:17:13: error: 'yd' was not declared in this scope; did you mean 'dy'?
   17 |     x3 = x2-yd;
      |             ^~
      |             dy
a.cc:22:13: error: 'xd' was not declared in this scope; did you mean 'dx'?
   22 |     y3 = y2-xd;
      |             ^~
      |             dx
a.cc:25:13: error: 'xd' was not declared in this scope; did you mean 'dx'?
   25 |     y3 = y2+xd;
      |             ^~
      |             dx
Language: C++

using namespace std;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
#define rep2(i, s, n) for (int i = (s); i < (int)(n); i++)
typedef long long ll;

int main() {
    int x1, y1, x2, y2, x3, y3, x4, y4;
    cin >> x1 >> y1 >> x2 >> y2;
    x3 = x2 + y1- y2;
    y3 = y2 + x2 - x1;
    x4 = x1 + y1 - y2;
    y4 = y1 + x2 - x1;
    cout << x3 << " " << y3 << " " << x4 << " " << y4 << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:5: error: 'cin' was not declared in this scope
    8 |     cin >> x1 >> y1 >> x2 >> y2;
      |     ^~~
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:13:5: error: 'cout' was not declared in this scope
   13 |     cout << x3 << " " << y3 << " " << x4 << " " << y4 << endl;
      |     ^~~~
a.cc:13:5: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:13:58: error: 'endl' was not declared in this scope
   13 |     cout << x3 << " " << y3 << " " << x4 << " " << y4 << 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;
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:6:19: error: expected ',' or ';' before ')' token
    6 |     int dx = x2-x1);
      |                   ^
Language: C++


int main() {
  int a,b,c,d;
  cin >>a>>b>>c>>d;
  
  int e=c-(d-b);
  int f=d+(c-a);
  
  int g=e-(c-a);
  int h=f-(d-b);
  
  
  
  
  
  
  cout<<e<<" "<<f<<" "<<g<<" "<<h<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:4:3: error: 'cin' was not declared in this scope
    4 |   cin >>a>>b>>c>>d;
      |   ^~~
a.cc:17:3: error: 'cout' was not declared in this scope
   17 |   cout<<e<<" "<<f<<" "<<g<<" "<<h<<endl;
      |   ^~~~
a.cc:17:36: error: 'endl' was not declared in this scope
   17 |   cout<<e<<" "<<f<<" "<<g<<" "<<h<<endl;
      |                                    ^~~~
Language: C++

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

x=x2-x1
y=y2-y1

x3=x2-y
x4=x1-y
y3=y2+x
y4=y1+x
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 <iostream>
using namespace std;

int main(){
  int x_0,x_i,y_0,y_i;cin>>x_0>>x_i>>y_0>>y_i;
  int delta_x = x_i - x_0;
  int delta_y = y_i - y_1;
  x_i = x_i - delta_y;
  y_i = y_i + delta_x;
  cout << x_i << ' ' << y_i << ' ';
  x_i = x_i - delta_x;
  y_i = y_i - delta_y;
  cout << x_i << ' ' << y_i << ' ';
  cout << endl;

  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:23: error: 'y_1' was not declared in this scope; did you mean 'y_i'?
    7 |   int delta_y = y_i - y_1;
      |                       ^~~
      |                       y_i
Language: C++

#include<iostream>
using namespace std;

int main(){
  int a,b,c,d; cin>>a>>b>>c>>d;
  int d1=c-a,d2=d-b;
  cout<<a-d2<<b+d1<<c-d2<<d+d1<<endl;
  return 0:
}

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

#include <bits/stdc++.h>
using namespace std;
int man(){
  int x[4];
  int y[4];
  int d;
  cin >> x[0] >> y[0] >> x[1] >> y[1];
  if(x[0] == x[1]){
    d = y[0]-y[1];
    x[2] = x[1] + d;
    x[3] = x[0] + d;
    y[2] = y[1];
    y[3] = y[0];
  }else{
    d = x[0]-x[1];
    x[3] = x[0];
    x[2] = x[1];
    y[3] = y[0]-d;
    y[2] = y[1]-d;
  }
  cout << x[2] << y[2] << x[3] << y[3];
}
      
    
    

Compiler output:
a.cc: In function 'int man()':
a.cc:22:1: warning: no return statement in function returning non-void [-Wreturn-type]
   22 | }
      | ^
/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/14/../../../x86_64-linux-gnu/Scrt1.o: in function `_start':
(.text+0x17): undefined reference to `main'
collect2: error: ld returned 1 exit status
Language: C++

#include<iostream>

using namespace std;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:10:33: error: 'x3' was not declared in this scope; did you mean 'x2'?
   10 |     cout << x2 - b << y2 + a << x3 - a << y3 - b;
      |                                 ^~
      |                                 x2
a.cc:10:43: error: 'y3' was not declared in this scope; did you mean 'y2'?
   10 |     cout << x2 - b << y2 + a << x3 - a << y3 - b;
      |                                           ^~
      |                                           y2
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:13:18: error: expected primary-expression before '%' token
   13 |   else if(x1>x2 %% y1==y2){
      |                  ^
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:12:3: error: expected '}' before 'else'
   12 |   else if(x1>x2 %% y1==y2){
      |   ^~~~
a.cc:10:27: note: to match this '{'
   10 |   else if(x1==x2 && y1<y2){
      |                           ^
a.cc:12:18: error: expected primary-expression before '%' token
   12 |   else if(x1>x2 %% y1==y2){
      |                  ^
a.cc:14:3: error: expected '}' before 'else'
   14 |   else{
      |   ^~~~
a.cc:12:27: note: to match this '{'
   12 |   else if(x1>x2 %% y1==y2){
      |                           ^
a.cc:16:2: error: expected '}' at end of input
   16 | }
      |  ^
a.cc:4:11: note: to match this '{'
    4 | int main(){
      |           ^
Language: C++

#include <bits/stdc++.h>
#define int long long
#define ll long long
#define vl vector<ll>
#define pl pair<ll,ll>
#define mp make_pair
#define FOR(i,a,b) for(int i=a;i<b;i++)
#define rep(i,b) for(ll i=0;i<b;i++)
#define per(i,a,b) for(int i=b-1;i>=a;i--)
#define YES(i) cout<<(i?"YES":"NO")<<endl
#define SORT(v) sort((v).begin(), (v).end())
#define RSORT(v) sort((v).rbegin(), (v).rend())
#define all(v) (v).begin(),(v).end()
using namespace std;
ll a,b,c,d,;
vector<pl>x;
signed main() {
    cin>>a>>b>>c>>d;
    cout<<c+b-d<<" "<<d+c-a<<" "<<a+b-d<<" "<<b-a+c<<endl;
}


Compiler output:
a.cc:15:12: error: expected unqualified-id before ';' token
   15 | ll a,b,c,d,;
      |            ^
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=x2-x1+y2;
  
  int x4=x2-y2+y1;
  
  int y4=y1-x1+x2;
  
  cout<<x3<<y3<<x4<<y4<<endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:6:1: error: expected initializer before 'cin'
    6 | cin>>x1>>y1>>x2>>y2;
      | ^~~
a.cc:9:13: error: 'y2' was not declared in this scope; did you mean 'x2'?
    9 |   int x3=y1-y2+x2;
      |             ^~
      |             x2
Language: C++

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

int main(){
  int x1,y1,x2,y2,x3,y3,x4,y4;
  cin>>x1>>y1>>x2>>y2;
  
  int A=((abs(x1-x2))**+(abs(y1-y2))**);
  
  int B=((abs(x2-x3))**+(abs(y2-y3))**);
  
  int C=((abs(x3-x4)**)+(abs(y3-y4))**);
  
  
  if(A==B&&B==C)

  cout<<x3<<y3<<x4<<y4<<endl;
}


  
  
  
  

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

#include <bits/stdc++.h>
using namespace std;
int main(){
  int a,b,c,d;
  cin>.a>>b>>c>>d;
  if(a==c){cout<<c+b-d<<' '<<d<<' '<<a+b-d<<' '<<b;}
  else{cout<<c<<' '<<d+c-a<<' '<<a<<' '<<b+c-a;}
}


Compiler output:
a.cc: In function 'int main()':
a.cc:5:7: error: expected primary-expression before '.' token
    5 |   cin>.a>>b>>c>>d;
      |       ^
Language: C++

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

int main() {
    int x1, y1, x2, y2;
    cin >> x1 >> y1 >> x2 >> y2;
    
    int nx = x2;
    int ny = y2;
    int dx = x2 - x1;
    int dy = y2 - y1;
    for(int i=0; i<2; i++){
        swap(dx, dy);
        dx = -dx;
        nx += dx;
        ny += dy;
        cout << nx << " " << xy << endl;
    }
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:17:30: error: 'xy' was not declared in this scope; did you mean 'dy'?
   17 |         cout << nx << " " << xy << endl;
      |                              ^~
      |                              dy
Language: C++

#include <iostream>
using namespace std;

int v_x,v_y;
void rotate(){
    int tmp = v_x;
        v_x = -v_y;
        v_y = tmp;
}
int main(){
    int x_1,x_2,y_1,y_2;
    cin >> x_1>>y_1>>x_2>>y_2;
    int x_3,y_3,x_4,y_4,x_5,y_5;
    v_x = x_2-x_1;
    v_y = y_2-y_1;
    rotate();
    x_3 = x_2 + v_x;
    y_3 = y_2 + v_y;
    rotate();
    x_4 = x_3 + v_x;
    y_4 = y_3 + v_y;
    rotate();
    x_5 = x_4 + v_x;
    y_5 = y_4 + v_y;
    assert(x_1 == x_5);
    assert(y_1 == y_5);
    cout << x_3 << " "<< y_3<< " " << x_4<< " " << y_4 << endl;
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:25:5: error: 'assert' was not declared in this scope
   25 |     assert(x_1 == x_5);
      |     ^~~~~~
a.cc:2:1: note: 'assert' is defined in header '<cassert>'; this is probably fixable by adding '#include <cassert>'
    1 | #include <iostream>
  +++ |+#include <cassert>
    2 | using namespace std;
Language: C++

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

int main(){
  int x_1,y_1,x_2,y_2,x_3,y_3,x_4,y_4;
  cin>>x_1 >>y_1 >>x_2 >>y_2;
  //x1y1とx2y2の位置関係により、4通りに分けられる
  if(x_1 == x_2 && y_1 > y_2){
    x_3 = x_1 + y_1 - y_2;
    y_3 = y_2;
    x_4 = x_3;
    y_4 = y_1;
  }else if(x_1 < x_2 && y_1 == y_2){
    x_3 = x_2;
    y_3 = y_2 + x_2 - x_1;
    x_4 = x_1;
    y_4 = y_3;
  }else if(x_1 == x_2 && y_1 < y_2){
    x_3 = x_1 - (y_2 - y_1);
    y_3 = y_2;
    x_4 = x_3;
    y_4 = y_1;
  }else if(x_1 > x_2 && y_1 == y_2){
    x_3 = x_2;
    y_3 = y_1 - (x_1 - x_2);
    x_4 = x_1;
    y_4 = y_3;
  }
  cout<<x_3<<" "<<y_3<<" "<<x_4<<" "<<y_4<<endl;
}
}

Compiler output:
a.cc:31:1: error: expected declaration before '}' token
   31 | }
      | ^
Language: C++

#include <bits/stdc++.h>
 
using namespace std;
 
#define forsn(i, s, n) for(int i=s;i<int(n);i++)
#define forn(i, n) forsn(i, 0, n)
#define all(v) v.begin(), v.end()
#define rall(v) v.rbegin(), v.rend()
 
typedef long long tint;

const int INF = 1e6;
const long double PI = acos(-1);
 
int main() {
	int x1, y1, x2, y2; cin >> x1 >> y1 >> x2 >> y2;
	int za = abs(x2-x1), zb = abs(y2-y1);
	cout << c-zb << " " << d+za << " " << a-zb << " " << b+za << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:18:17: error: 'c' was not declared in this scope
   18 |         cout << c-zb << " " << d+za << " " << a-zb << " " << b+za << endl;
      |                 ^
a.cc:18:32: error: 'd' was not declared in this scope
   18 |         cout << c-zb << " " << d+za << " " << a-zb << " " << b+za << endl;
      |                                ^
a.cc:18:47: error: 'a' was not declared in this scope; did you mean 'za'?
   18 |         cout << c-zb << " " << d+za << " " << a-zb << " " << b+za << endl;
      |                                               ^
      |                                               za
a.cc:18:62: error: 'b' was not declared in this scope; did you mean 'zb'?
   18 |         cout << c-zb << " " << d+za << " " << a-zb << " " << b+za << endl;
      |                                                              ^
      |                                                              zb
Language: C++

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


int main(){
  int x1, y1, x1, y2;
  cin >> x1 >> y1 >> x2 >> y2;
  int dx = x2 - x1;
  int dy = y2 - y1;
  int x3 = x2 - dy;
  int y3 = y2 + dx;
  int x4 = x3 - dx;
  int y4 = y3 - dy;
  cout << x3 << " " << y3 << " " << x4 << " " << y4 << endl;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:15: error: redeclaration of 'int x1'
    6 |   int x1, y1, x1, y2;
      |               ^~
a.cc:6:7: note: 'int x1' previously declared here
    6 |   int x1, y1, x1, y2;
      |       ^~
a.cc:7:22: error: 'x2' was not declared in this scope; did you mean 'y2'?
    7 |   cin >> x1 >> y1 >> x2 >> y2;
      |                      ^~
      |                      y2
Language: C

#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <math.h>

int main() {
    int x1 = 0, y1 = 0, x2 = 0, y2 = 0;
    scanf("%d %d %d %d", &x1,, &y1, &x2, &y2);
    if (x1 == x2) {
        if (y1 > y2) {
            int len = y1 - y2;
            printf("%d %d %d %d\n", x1+len, y2, x1+len, y1);
        }
        else {
            int len = y2 - y1;
            printf("%d %d %d %d\n", x1-len, y2, x1-len, y1);
        }
    }
    else {
        if (x1 > x2) {
            int len = x1 - x2;
            printf("%d %d %d %d\n", x2, y1-len, x1, y1-len);
        }
        else {
            int len = x2 - x1;
            printf("%d %d %d %d\n", x2, y1+len, x1, y1+len);
        }
    }
    return 0;
}


Compiler output:
main.c: In function 'main':
main.c:8:30: error: expected expression before ',' token
    8 |     scanf("%d %d %d %d", &x1,, &y1, &x2, &y2);
      |                              ^
Language: C++


x1,y1,x2,y2 = gets.strip.split.map(&:to_i)

difx=x1-x2
dify=y1-y2

x3=x2+dify
y3=y2-difx
x4=x1+dify
y4=y1-difx

print x3
print ' '
print y3
print ' '
print x4
print ' '
print y4



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

#include <iostream>
#include <map>

using namespace std;

int main(){
  int x1=0 ,y1=0 ,x2=0 ,y2=0;
  pair<int , int> p1, p2, p3, p4;
  cin >> x1 >> y1 >> x2 >> y2;
  
  p1 = make_pair(x1, y1);
  p2 = make_pair(x2, y2);
  
  float d = (float)(p2.second - p1.second) / (p2.first - p1.first);
  int  h, v;
  if(d < 0){
    h = abs(p1.second - p2.second);
    v = abs(p2.first - p1.first);
    p3 = make_pair(p2.first + h, p2.second + v);
    p4 = make_pair(p3.first - h, p3.second + v);
  }else if(d >= 0){
    l = abs(p2.first - p1.first);
    s = abs(p2.second - p1.second);
    p3 = make_pair(p2.first - h, p2.second + v);
    p4 = make_pair(p3.first - h, p3.second - v);  
  }
  cout << p3.first << " " << p3.second << " " << p4.first << " " << p4.second;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:22:5: error: 'l' was not declared in this scope
   22 |     l = abs(p2.first - p1.first);
      |     ^
a.cc:23:5: error: 's' was not declared in this scope
   23 |     s = abs(p2.second - p1.second);
      |     ^
Language: C++

#include <iostream>
#include <map>

using namespace std;

int main(){
  int x1=0 ,y1=0 ,x2=0 ,y2=0;
  pair<int , int> p1, p2, p3, p4;
  cin >> x1 >> y1 >> x2 >> y2;
  
  p1 = make_pair(x1, y1);
  p2 = make_pair(x2, y2);
  
  float d = (float)(p2.second - p1.second) / (p2.first - p1.first);
  int  l, s;
  if(d < 0){
    h = abs(p1.second - p2.second);
    v = abs(p2.first - p1.first);
    p3 = make_pair(p2.first + h, p2.second + v);
    p4 = make_pair(p3.first - h, p3.second + v);
  }else if(d >= 0){
    l = abs(p2.first - p1.first);
    s = abs(p2.second - p1.second);
    p3 = make_pair(p2.first - h, p2.second + v);
    p4 = make_pair(p3.first - h, p3.second - v);  
  }
  cout << p3.first << " " << p3.second << " " << p4.first << " " << p4.second;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:17:5: error: 'h' was not declared in this scope
   17 |     h = abs(p1.second - p2.second);
      |     ^
a.cc:18:5: error: 'v' was not declared in this scope
   18 |     v = abs(p2.first - p1.first);
      |     ^
a.cc:24:31: error: 'h' was not declared in this scope
   24 |     p3 = make_pair(p2.first - h, p2.second + v);
      |                               ^
a.cc:24:46: error: 'v' was not declared in this scope
   24 |     p3 = make_pair(p2.first - h, p2.second + v);
      |                                              ^
Language: C++

#include<iostream>
using namespace std;

int main(){
  int a,b;
  int x[5],y[5];
  
  cin>>x[1],y[1],x[2],y[2];
  a=x[2]-x[1];b=y[2]-y[1];
  
  if(a*b<0){
    x[4]=x[1]+(b*(-1));
    y[4]=y[1]+a;
  }
  else{
    x[4]=x[1]+b;
    y[4]=y[1]+(a*(-1);
  }
  x[3]=x[4]+a;
  y[3]=y[4]+b;
  cout<<x[3],y[3],x[4],y[4]<<endl;
               
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:17:22: error: expected ')' before ';' token
   17 |     y[4]=y[1]+(a*(-1);
      |               ~      ^
      |                      )
a.cc:21:28: error: invalid operands of types 'int' and '<unresolved overloaded function type>' to binary 'operator<<'
   21 |   cout<<x[3],y[3],x[4],y[4]<<endl;
      |                        ~~~~^~~~~~
Language: C++

#include<stdio.h>
using namespace std;

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:6: error: expected constructor, destructor, or type conversion before '(' token
    5 | scanf("%d%d%d%d",&a,&b,&c,&d);
      |      ^
a.cc:7:7: error: expected constructor, destructor, or type conversion before '(' token
    7 | printf("%d%d%d%d\n",c-y,d+x,a-y,b+x);
      |       ^
a.cc:8:1: error: expected declaration before '}' token
    8 | }
      | ^
Language: C++

#include <bits/stdc++.h>

#define stirng string
#define vvi vector<vector<int>>
#define vi vector<int>
#define rep(i, n) for (int i = 0; i < (n); i++)
using namespace std;

const int inf = 1e9 + 7;

int main() {
  int x1, y1, x2, y2;
  int x3, y3, x4, y4;
  cin >> x1 >> y1 >> x2 >> y2;
  int dx, dy;
  dx = x2 - x1
  dy = y2 - y1;

  if (dx >= 0 && dy >= 0) {
    x3 = x2 - dy;
    y3 = y2 + dx;
    x4 = x1 - dy;
    y4 = y1 + dx;
    cout << x3 << " " << y3 << " " << x4 << " " << y4 << endl;
  }
else if (dx >= 0 && dy < 0) {
    x3 = x2 + dx;
    y3 = y2 + dy;
    x4 = x1 + dy;
    y4 = y1 + dx;
    cout << x3 << " " << y3 << " " << x4 << " " << y4 << endl;
  }
  else if (dx < 0 && dy >= 0) {
    x3 = x2 - dy;
    y3 = y2 - dx;
    x4 = x1 - dy;
    y4 = y1 - dx;
    cout << x3 << " " << y3 << " " << x4 << " " << y4 << endl;
  }
  else if (dx < 0 && dy < 0) {
    x3 = x2 - dx;
    y3 = y2 + dy;
    x4 = x1 + dy;
    y4 = y1 - dx;
    cout << x3 << " " << y3 << " " << x4 << " " << y4 << endl;
  }
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:16:15: error: expected ';' before 'dy'
   16 |   dx = x2 - x1
      |               ^
      |               ;
   17 |   dy = y2 - y1;
      |   ~~
Language: Java

import java.util.Scanner;

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


Compiler output:
Main.java:13: error: variable x4 might not have been initialized
        x3=x4+x;
           ^
Main.java:15: error: variable y4 might not have been initialized
        y3=y4+y;
           ^
2 errors
Language: C

#include<stdio.h>
short a, b, c, d, x, y;
int main(void){
  scanf("%hd%hd%hd%hd", &a, &b, &c, &d);
  x=c−a;
  y=d−b;
  printf("%d %d %d %d\n", c−y, d+x, a−y, b+x);
}


Compiler output:
main.c: In function 'main':
main.c:5:6: error: stray '\342' in program
    5 |   x=c<U+2212>a;
      |      ^~~~~~~~
main.c:5:6: error: expected ';' before 'a'
    5 |   x=c−a;
      |      ^~
      |      ;
main.c:6:6: error: stray '\342' in program
    6 |   y=d<U+2212>b;
      |      ^~~~~~~~
main.c:6:6: error: expected ';' before 'b'
    6 |   y=d−b;
      |      ^~
      |      ;
main.c:7:28: error: stray '\342' in program
    7 |   printf("%d %d %d %d\n", c<U+2212>y, d+x, a<U+2212>y, b+x);
      |                            ^~~~~~~~
main.c:7:28: error: expected ')' before 'y'
    7 |   printf("%d %d %d %d\n", c−y, d+x, a−y, b+x);
      |         ~                  ^~
      |                            )
main.c:7:38: error: stray '\342' in program
    7 |   printf("%d %d %d %d\n", 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:5:9: error: extended character ” is not valid in an identifier
    5 |   scanf(”%d%d%d%d” , &a , &b, &c , &d);
      |         ^
a.cc:5:17: 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:23: 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:30: 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:46: 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:5:17: error: 'd\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:29: error: expected ')' before '\U00002212'
    7 |   printf(”%d %d %d %d\n” , c − y , d + x , a − y , b + x );
      |         ~                   ^~
      |                             )
a.cc:7:45: 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(){
  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:1:20: warning: extra tokens at end of #include directive
    1 | #include<stdio .h> using namespace std;
      |                    ^~~~~
a.cc:1:9: fatal error: stdio .h: No such file or directory
    1 | #include<stdio .h> using namespace std;
      |         ^~~~~~~~~~
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:
a.cc:1:20: warning: extra tokens at end of #include directive
    1 | #include<stdio .h> using namespace std;
      |                    ^~~~~
a.cc:1:9: fatal error: stdio .h: No such file or directory
    1 | #include<stdio .h> using namespace std;
      |         ^~~~~~~~~~
compilation terminated.
Language: C++

#include<iostream>
using namespace std;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:6:8: error: 'xi' was not declared in this scope; did you mean 'x2'?
    6 |   cin>>xi>>y1>>x2>>y2;
      |        ^~
      |        x2
Language: C

include<stdio.h>

int main(){
  int x[4],y[4];
  scanf("%d %d %d %d",&x[0],&y[0],&x[1],&y[1]);
  x[3] = x[0] + y[0] - y[1];
  y[3] = y[0] + x[1] - y[0];
  x[2] = x[1] + x[3] + y[3];
  y[2] = y[1] + y[3] - y[0];
  printf("%d %d %d %d",x[2],y[2],x[3],y[3]);  
}

Compiler output:
main.c:1:8: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token
    1 | include<stdio.h>
      |        ^
Language: C

#include <stdio.h>
 
int main(void) {
    int x1, y1, x2, y2;
    scanf("%d %d %d %d", &x1, &y1, &x2, &y2);
    
    int x = c-a, y = d-b;
    int x3, y3, x4, y4;
    x3 = c - y;
    y3 = d + x;
    x4 = a - y;
    y4 = b + x;

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

Compiler output:
main.c: In function 'main':
main.c:7:13: error: 'c' undeclared (first use in this function)
    7 |     int x = c-a, y = d-b;
      |             ^
main.c:7:13: note: each undeclared identifier is reported only once for each function it appears in
main.c:7:15: error: 'a' undeclared (first use in this function)
    7 |     int x = c-a, y = d-b;
      |               ^
main.c:7:22: error: 'd' undeclared (first use in this function)
    7 |     int x = c-a, y = d-b;
      |                      ^
main.c:7:24: error: 'b' undeclared (first use in this function)
    7 |     int x = c-a, y = d-b;
      |                        ^
Language: C++

#include <iostream>
#include <string>
#include <vector>
#include <algorithm>
#include <numeric>
#include <cmath>
#include <queue>
#include <tuple>
#include <cstring>

#define INF 100000000

using namespace std;

int main()
{
    /*
    int h,w;
    cin >> h >> w;
    char s[h][w];
    for (int i = 1;i<=h;i++)
    {
        for(int j = 1;j<=w;j++)
        {
            cin >> s[i][j];
        }
    }

    char ans[h+2][w+2] = {0};
    int dx[8] = {0,-1,0,1,1,-1,1,-1},dy[8] = {-1,0,1,0,1,-1,-1,1};

    for(int i = 1;i<=h;i++)
    {
        for(int j = 1;j<=w;j++)
        {
            if(s[i][j] == '#')
            {
                ans[i][j] = '#';
                for(int p = 0;p<8;p++)
                {
                    if(ans[i+dx[p]][j+dy[p]] == '#')
                    continue;
                    else{
                        ans[i+dx[p]][j+dy[p]] ++;
                    }
                }
            }
        }
    }
    for(int i = 1;i<=h;i++)
    {
        for(int j = 1;j<=w;j++)
        {
            cout << ans[i][j];
        }
        cout << "\n";
    }
    return 0;
    */

    int x1, y1, x2, y2;
    cin >> x1 >> y1 >> x2 >> y2;
    int x3 = x2 + y1 - y2;
    int y3 = y2 - x1 + x2;
    int x4 = x3 + x1 - x2;
    int y4 = y3 + y1 - y2;
    cout << x3 << y3 << x4 << y4;
    return 0
}

Compiler output:
a.cc: In function 'int main()':
a.cc:68:13: error: expected ';' before '}' token
   68 |     return 0
      |             ^
      |             ;
   69 | }
      | ~
Language: C++

#include <bits/stdc++.h>

using namespace std;

typedef long long ll;
typedef unsigned long long ull;

#define Abs(x)((x) < 0 ? (x) * -1 : (x))

#define rep(x, y) for ((x) = 0; (x) < (y); (x)++)
#define repin(x, y) for ((x) = 0; (x) <= (y); (x)++)
#define nep(x, y) for ((x) = (y) - 1; 0 <= (x); (x)--)
#define nepi(x, y, z) for ((x) = (y) - 1; (z) <= (x); (x)--)
#define repi(x, y, z) for ((x) = (z); (x) < (y); (x)++)
#define repiin(x, y, z) for ((x) = (z); (x) <= (y); (x)++)
#define reps(x, y, z) for ((x) = 0; (x) < (y); (x) += (z))
#define repis(x, y, z, s) for ((x) = (z); (x) < (y); (x) += (s))
#define repiins(x, y, z, s) for ((x) = (z); (x) <= (y); (x) += (s))
#define repit(x) for (__typeof((x).begin()) it = (x).begin(); it != (x).end(); it++)
#define repit2(x) for (__typeof((x).begin()) it2 = (x).begin(); it2 != (x).end(); it2++)
#define nepit(x) for (__typeof((x).rbegin()) it = (x).rbegin(); it != (x).rend(); it++)

#define All(x) (x).begin(),(x).end()

#define Mem0(x) memset(x, 0, sizeof(x))
#define Mem1(x) memset(x, -1, sizeof(x))

#define Unique(v) v.resize(unique(All(v)) - v.begin())

#define peq(p0, p1)(p0.first == p1.first && p0.second == p1.second)

#define End '\n'
#define Out(x) cout<<(x)<<End
#define OutP(p, sep, end) cout<<p.first<<sep<<p.second<<end

template<typename T> inline bool Max(T &x, const T &y) { return x < y ? x = y, 1 : 0; }
template<typename T> inline bool Min(T &x, const T &y) { return x > y ? x = y, 1 : 0; }
template<typename T> using V = vector<T>;
template<typename T> using VV = V<V<T> >;

#define Sort(v) sort(All(v))
#define SortR(v) sort(All(v), std::greater<__typeof(v[0])>())

#define pb push_back
#define mp make_pair
#define X first
#define Y second
#define lb std::lower_bound
#define ub std::upper_bound

#define lbi(v, x) lb(All(v), (x))-v.begin()
#define ubi(v, x) ub(All(v), (x))-v.begin()

static const ll MOD = 1e9 + 7;
static const double PI = 3.141592653589793;

#define LOCAL 0

int main()
{
#if LOCAL
    freopen("in.txt", "r", stdin);
    freopen("out.txt", "w", stdout);
    freopen("debug.txt", "w", stderr);
#endif

    cin.tie(0);
    ios::sync_with_stdio(false);
	//std::cout.precision(18);

    int x1, y1;
	int x2, y2;

	cin >> x1 >> y1 >> x2 >> y2;

	int diffX = Abs(x1 - x2);
	int diffY = Abs(y1 - y2);

	if (x1 < x2) {
		if (y1 < Y2) cout << x2 - diffY << " " << y2 + diffX << " " << (x2 - diffY) - diffX << " " << (y2 + diffX) - diffY << End;
		else cout << x2 + diffY << " " << y2 + diffX << " " << (x2 - diffY) - diffX << " " << (y2 + diffX) + diffY << End;
	} else {
		if (y1 < y2) cout << x2 - diffY << " " << y2 - diffX << " " << (x2 - diffY) - diffX << " " << (y2 - diffX) - diffY << End;
		else cout << x2 + diffY << " " << y2 - diffX << " " << (x2 + diffY) + diffX << " " << (y2 - diffX) - diffY << End;
	}
	
	return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:80:26: error: 'Y2' was not declared in this scope; did you mean 'y2'?
   80 |                 if (y1 < Y2) cout << x2 - diffY << " " << y2 + diffX << " " << (x2 - diffY) - diffX << " " << (y2 + diffX) - diffY << End;
      |                          ^~
      |                          y2
Language: C++

#include <bits/stdc++.h>
#define inf 1000000000
#define maxs(x,y) (x = max(x , y))
#define mins(x,y) (x = min(x , y))
using namespace std;
typedef long long int ll;

int main(){

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

  xx = x2-x1; 
  yy = y2-y1;

  x3 = x2 - yy;
  y3 = y2 + xx;

  x4 = x1 - yy;
  y4 = y1 + xx;

  cout << x3 << y3 << x4 << y4 << endl;

}


Compiler output:
a.cc: In function 'int main()':
a.cc:13:3: error: 'xx' was not declared in this scope; did you mean 'x4'?
   13 |   xx = x2-x1;
      |   ^~
      |   x4
a.cc:14:3: error: 'yy' was not declared in this scope; did you mean 'y4'?
   14 |   yy = y2-y1;
      |   ^~
      |   y4
Language: C++

#include<iostream>
#include<array>
#include<cmath>
using namespace std;

int main(){

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

    cin >> x1 >> y1 >> x2 >> y2;

    sqx = abs(x1-x2);

    sqy = abs(y1-y2);

    if(x1 <= x2 && y1 <= y2){
        
        x3 = x2 - sqy;
        y3 = y2 + sqx;
        x4 = x3 - sqx;
        y4 = y3 - sqy;
        

    }else if(x1 <= x2){

        x3 = x2 - sqy;
        y3 = y2 - sqx;
        x3 = x3 - sqx;
        y4 = y3 + sqy;

    }else if(y1 <= y2){

        x3 = x2 - sqy;
        y3 = y2 - sqx;
        x4 = x3 + sqx;
        y4 = y3 - sqy;

    }else{

        x3 = x2 - sqy;
        y3 = y2 + sqx;
        x4 = x3 + sqx;
        y4 = y3 + sqy;
    }

    cout << x3 << " " << y3 << " " << x4 << " " << y4 <<endl;

    return 0; 


Compiler output:
a.cc: In function 'int main()':
a.cc:50:14: error: expected '}' at end of input
   50 |     return 0;
      |              ^
a.cc:6:11: note: to match this '{'
    6 | int main(){
      |           ^
Language: C++

#include <iostream>
#include <algorithm>
#include <string>
#include <vector>
#include <cmath>
using namespace std;
int main() {
    int x_1,x_2,y_1,y_2;
    cin >> x_1 >> y_1 >> x_2 >> y_2;
    int dx,dy;
    dx = x_1 - x_2;
    dy = y_1 - y_2;
    cout << x_2  - dy << y_3 + dx << x_4 - dy << y_4 + dx << endl; 
}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:26: error: 'y_3' was not declared in this scope; did you mean 'y_2'?
   13 |     cout << x_2  - dy << y_3 + dx << x_4 - dy << y_4 + dx << endl;
      |                          ^~~
      |                          y_2
a.cc:13:38: error: 'x_4' was not declared in this scope; did you mean 'x_2'?
   13 |     cout << x_2  - dy << y_3 + dx << x_4 - dy << y_4 + dx << endl;
      |                                      ^~~
      |                                      x_2
a.cc:13:50: error: 'y_4' was not declared in this scope; did you mean 'y_2'?
   13 |     cout << x_2  - dy << y_3 + dx << x_4 - dy << y_4 + dx << endl;
      |                                                  ^~~
      |                                                  y_2
Language: C++

#include <bits/stdc++.h>

using namespace std;
typedef pair<int,int> pii;
typedef long long int ll;

#define INF 1 << 30
#define REP(i,n) for(ll i=0; i<(int)(n); i++)
#define FOR(i,k,n) for(ll i=(k);i<(int)(n);i++)
int x[4];
int y[4];
int main(){
  REP(i,2) cin >> x[i] >> y[i];
  FOR(i,2,4){
    int dx = x[i-1] - x[i-2];
    int dy = y[i-1] - y[i-2];
    x[i] = x[i-1] - dy;
    y[i] = y[i-1] + dx;
    }
  }
  REP(i,2) cout << x[i+2] << " " << y[i+2] << " ";
  cout <<endl;
}


Compiler output:
a.cc:8:18: error: expected unqualified-id before 'for'
    8 | #define REP(i,n) for(ll i=0; i<(int)(n); i++)
      |                  ^~~
a.cc:21:3: note: in expansion of macro 'REP'
   21 |   REP(i,2) cout << x[i+2] << " " << y[i+2] << " ";
      |   ^~~
a.cc:21:7: error: 'i' does not name a type
   21 |   REP(i,2) cout << x[i+2] << " " << y[i+2] << " ";
      |       ^
a.cc:8:30: note: in definition of macro 'REP'
    8 | #define REP(i,n) for(ll i=0; i<(int)(n); i++)
      |                              ^
a.cc:21:7: error: 'i' does not name a type
   21 |   REP(i,2) cout << x[i+2] << " " << y[i+2] << " ";
      |       ^
a.cc:8:42: note: in definition of macro 'REP'
    8 | #define REP(i,n) for(ll i=0; i<(int)(n); i++)
      |                                          ^
a.cc:22:3: error: 'cout' does not name a type
   22 |   cout <<endl;
      |   ^~~~
a.cc:23:1: error: expected declaration before '}' token
   23 | }
      | ^
Language: C++

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

int main(){
	int i,x[5],y[5],a,b;
  	for(i=0;i<2){
  		cin>>x[i]>>y[i];
    }
  	
  	a=x[1]-x[0];
  	b=y[1]-y[0];
  
  	x[2]=a-b+x[1];
    y[2]=a+b+y[1];
  
  	x[3]=-a+x[2];
  	y[3]=-b+y[2];

  	cout<<x[2] <<y[2] <<x[3] <<y[3]  <<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:20: error: expected ';' before ')' token
    6 |         for(i=0;i<2){
      |                    ^
      |                    ;
Language: C++

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

int main() {
  int x1,y1,x2,y2,x3,y3,x4,y4;
  cin>>x>>y1>>x2>>y2;
  x3=x2+y1-y2;
  y3=y2-x1+x2;
  x4=x1+y1-y2;
  y4=y1-x1+y2;
  cout<<x3<<y3<<x4<<y4<<endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:6:8: error: 'x' was not declared in this scope; did you mean 'x4'?
    6 |   cin>>x>>y1>>x2>>y2;
      |        ^
      |        x4
Language: C++

import java.util.Scanner

object ABC108_A {
  def main(args: Array[String]): Unit ={

    println("start")
    val sc = new Scanner(System.in)

    val x1 = sc.nextInt
    val y1 = sc.nextInt
    val x2 = sc.nextInt
    val y2 = sc.nextInt

    val dx = x2 - x1
    val dy = y2 - y1

    val (p3 , p4) =
      (dx >= 0,dy >= 0) match {
        case (true, true)   => ( (x2 - y1, y2 + x1), (x1 - y1, y1 + x1) )
        case (true, false)  => ( (x2 - y1, y2 + x1), (x1 - y1, y1 + x1) )
        case (false, true)  => ( (x2 - y1, y2 + x1), (x1 - y1, y1 + x1) )
        case (false, false) => ( (x2 - y1, y2 + x1), (x1 - y1, y1 + x1) )
    }

    println(s"$p3._1 $p3._2 $p4._1 $p4._2 ")

  }

}


Compiler output:
a.cc:1:1: error: 'import' does not name a type
    1 | import java.util.Scanner
      | ^~~~~~
a.cc:1:1: note: C++20 'import' only available with '-fmodules-ts'
Language: C++

#include <iostream>
using namespace std;

int main()
{
  int x_1, y_1, x_2, y_2:
  cin >> x_1 >> y_1 >> x_2 >> y_2:
  int x_3, y_3, x_4, y_4;
  x_3 = x_2 + (y_1 - y_2);
  y_3 = y_2 + (x_2 - x_1);
  x_4 = x_1 + (y_1 - y_2);
  y_4 = y_1 + (x_2 - x_1);
  cout << x_3 << " " << y_3 << " " << x_4 << " " << y_4 <<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:25: error: found ':' in nested-name-specifier, expected '::'
    6 |   int x_1, y_1, x_2, y_2:
      |                         ^
      |                         ::
a.cc:6:22: error: 'y_2' has not been declared
    6 |   int x_1, y_1, x_2, y_2:
      |                      ^~~
a.cc:7:7: error: qualified-id in declaration before '>>' token
    7 |   cin >> x_1 >> y_1 >> x_2 >> y_2:
      |       ^~
a.cc:9:3: error: 'x_3' was not declared in this scope; did you mean 'x_2'?
    9 |   x_3 = x_2 + (y_1 - y_2);
      |   ^~~
      |   x_2
a.cc:9:22: error: 'y_2' was not declared in this scope; did you mean 'x_2'?
    9 |   x_3 = x_2 + (y_1 - y_2);
      |                      ^~~
      |                      x_2
a.cc:10:3: error: 'y_3' was not declared in this scope; did you mean 'y_1'?
   10 |   y_3 = y_2 + (x_2 - x_1);
      |   ^~~
      |   y_1
a.cc:11:3: error: 'x_4' was not declared in this scope; did you mean 'x_2'?
   11 |   x_4 = x_1 + (y_1 - y_2);
      |   ^~~
      |   x_2
a.cc:12:3: error: 'y_4' was not declared in this scope; did you mean 'y_1'?
   12 |   y_4 = y_1 + (x_2 - x_1);
      |   ^~~
      |   y_1
Language: C++

#include <iostream>
#include <fstream>
#include <stdio.h>
#include <math.h>
#include <time.h>
#include <string>
#include <tuple>
#include <vector>
#include <map>
#include <list>
#include <set>
#include <stack>
#include <queue>
#include <cstdlib>
#include <algorithm>
#include <random>
#include <cassert>
using namespace std;
#define LL long long
#define MP(a, b) make_pair(a, b)
#define MMP(a, b, c) make_pair(make_pair(a, b), c)
#define MAX 1000000000
#undef INT_MIN
#undef INT_MAX
#define INT_MIN -2147483648
#define INT_MAX 2147483647
#define LL_MIN -9223372036854775808
#define LL_MAX 9223372036854775807
#define PI 3.14159265359

int main(){
    iostream::sync_with_stdio(false);

    int x1,y1,x2,y2;
    cin >> x1 >> y1 >> x2 >> y2;
    cout << x2 + (y1-y2) << " " << y2 + (x2-x1) << " " << x1 + (y1-y2) << " " << y1+ x(x2-x1) << endl;
    
    return 0;
}


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

#include <iostream>
using namespace std;

int main(){
	int x1, y1, x2, y2, vx, vy;

	cin >> x1 >> y1 >> x2 >> y2;

	vx = x2 - x1;
	vy = y2 - y1;

	cout << x2 - vy << " " << << y2 + vx << " " << x1 - vy << " " << y1 + vx << endl;
}

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

#include <iostream>
using namespace std;

int main(){
	int x1, y1, x2, y2;

	cin >> x1 >> y1 >> x2 >> y2;

	cout << x2-y1+y2 << " " << y2-x1+x3 << " " << x1-y1+y2 << " " << y1-x1+x2 << endl;

}

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

#include <iostream>
using namespace std;

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

  int x = x2;
  int y = y2;
  int dx = x2 - x1;
  int dy = y2 - y1;

  for (int i = 0; i < 2; i++) {
    swap(dx, dy);
    dx = -dx;
    x += dx;
    y += dy;
    cout << x << '' << y << endl;
  }

  return 0;
}

Compiler output:
a.cc:18:18: error: empty character constant
   18 |     cout << x << '' << y << endl;
      |                  ^~
Language: C++

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


Compiler output:
a.cc: In function 'int main()':
a.cc:8:22: error: invalid operands of types 'const char [2]' and 'int' to binary 'operator<<'
    8 |         cout<<c-f<" "<<e+d<<" "<<a-f<<" "<<e+b<<endl;
      |                   ~~~^~~~~
      |                   |     |
      |                   |     int
      |                   const char [2]
Language: C++

#include <iosream>
using namespace std;

int main () {
	int x1, y1, x2, y2;
	cin >> x1 >> y1 >> x2 >> y2;
	int a = x2 - x1, b = y2 - y1;

	cout << x2 - b << " " << y2 + a << " " << x1 - b << " " << y1 + a << endl;
}

Compiler output:
a.cc:1:10: fatal error: iosream: No such file or directory
    1 | #include <iosream>
      |          ^~~~~~~~~
compilation terminated.