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

#include <stdio.h>

int main(void){
    int a,b,c,d;
    scanf("%d %d %d %d",&a,&b,&c,&d);
    int ansx,ansy;
    ansa = c-a;
    ansb = d-b;
    printf("%d %d %d %d\n",c-ansb,d+ansa,a-ansb,b+ansa);
}

Compiler output:
main.c: In function 'main':
main.c:7:5: error: 'ansa' undeclared (first use in this function); did you mean 'ansy'?
    7 |     ansa = c-a;
      |     ^~~~
      |     ansy
main.c:7:5: note: each undeclared identifier is reported only once for each function it appears in
main.c:8:5: error: 'ansb' undeclared (first use in this function); did you mean 'ansy'?
    8 |     ansb = d-b;
      |     ^~~~
      |     ansy
Language: Java

import java.util.*;
public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		// 整数の入力
		int xone = sc.nextInt();
		// スペース区切りの整数の入力
		int yone = sc.nextInt();
		int xtwo = sc.nextInt();
                int ytwo = sc.nextInt();
		// 文字列の入力
		//String s = sc.next();
		// 出力
		int nagasa = Math.abs(ytwo - yone);
		system.out.print(xtwo + nagasa);
		system.out.print(ytwo);
		system.out.print(xone + nagasa);
		system.out.print(yone);
	}
}

Compiler output:
Main.java:15: error: package system does not exist
		system.out.print(xtwo + nagasa);
		      ^
Main.java:16: error: package system does not exist
		system.out.print(ytwo);
		      ^
Main.java:17: error: package system does not exist
		system.out.print(xone + nagasa);
		      ^
Main.java:18: error: package system does not exist
		system.out.print(yone);
		      ^
4 errors
Language: C

#include<stdio.h>
int main()
{
  int x1, y1, x2, y2, a, b;
  scanf("%d %d %d %d", &x1, &y1, &x2, &y2);
  
  a = x2-x1;
  b = y2-y1;
  
  if (a >= 0)  printf ("%d %d %d %d", x2-b, y2+a, x2-b-a, x2+a-b);
  else printf ("%d %d %d %d", x2+b, y2-a, x2+b-a, x2-a-b)
    
    return 0;
}


Compiler output:
main.c: In function 'main':
main.c:11:58: error: expected ';' before 'return'
   11 |   else printf ("%d %d %d %d", x2+b, y2-a, x2+b-a, x2-a-b)
      |                                                          ^
      |                                                          ;
   12 | 
   13 |     return 0;
      |     ~~~~~~
Language: C++

int main(int argc, char const *argv[])
{
    int x[8];

    std::cin >> x[0] >> x[1] >> x[2] >>x[3];

    x[4] = x[2] - (x[3] - x[1]) ;
    x[5] = x[3] - (x[2] - x[0]) ;

    x[6] = x[4] - (x[5] - x[3]);
    x[7] = x[5] - (x[4] - x[2]);

    std::cout << x[4] <<x[5] <<x[6] <<x[7];

    return 0;
}

Compiler output:
a.cc: In function 'int main(int, const char**)':
a.cc:5:10: error: 'cin' is not a member of 'std'
    5 |     std::cin >> x[0] >> x[1] >> x[2] >>x[3];
      |          ^~~
a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 | int main(int argc, char const *argv[])
a.cc:13:10: error: 'cout' is not a member of 'std'
   13 |     std::cout << x[4] <<x[5] <<x[6] <<x[7];
      |          ^~~~
a.cc:13:10: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:6:31: error: 'y_2' was not declared in this scope; did you mean 'y_4'?
    6 |   cin >> x_1 >> y_1 >> x_2 >> y_2;
      |                               ^~~
      |                               y_4
Language: C++

a = gets.chomp.split(" ").map(&:to_i)
print (a[2]+(a[1]-a[3])).to_s + " " + (a[3]+(a[2]-a[0])).to_s + " " + (a[0]+(a[1]-a[3])).to_s + " " + (a[1]+(a[2]-a[0])).to_s


Compiler output:
a.cc:1:1: error: 'a' does not name a type
    1 | a = gets.chomp.split(" ").map(&:to_i)
      | ^
Language: C

#include<stdio.h>
int main()
{
int x1,y1,x2,y23;
scanf("%d %d %d %d",&x1,&y1,&x2,&y2);
printf("%d %d %d %d\n",(x2-(y2-y1)),(y2+(x2-x1)),(x1-(y2-y1)),y1+(x2-x1));
return 0;


}


Compiler output:
main.c: In function 'main':
main.c:5:34: error: 'y2' undeclared (first use in this function); did you mean 'y23'?
    5 | scanf("%d %d %d %d",&x1,&y1,&x2,&y2);
      |                                  ^~
      |                                  y23
main.c:5:34: note: each undeclared identifier is reported only once for each function it appears in
Language: C++

int main ( )
{
	int a, b, c, d;
	scanf("%d %d %d %d", &a, &b, &c, &d);
	int x = c -a ; 
	int y = d - b ;
	printf ("%d %d %d %d\n", c - y , d + x , a - y , b + x);
}

Compiler output:
a.cc: In function 'int main()':
a.cc:4:9: error: 'scanf' was not declared in this scope
    4 |         scanf("%d %d %d %d", &a, &b, &c, &d);
      |         ^~~~~
a.cc:7:9: error: 'printf' was not declared in this scope
    7 |         printf ("%d %d %d %d\n", c - y , d + x , a - y , b + x);
      |         ^~~~~~
a.cc:1:1: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
  +++ |+#include <cstdio>
    1 | int main ( )
Language: C++

#include <cstdio>
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: In function 'int main()':
a.cc:8:24: error: 'y' was not declared in this scope
    8 |         int x = c -a ; y = d - b ;
      |                        ^
Language: C

#i n cl u d e <s t d i o . h>
u si n g namespace s t d ;
i n t main ( )
{
i n t a , b , c , d ;
s c a n f (”%d%d%d%d ” , &a , &b , &c , &d ) ;
i n t x = c − a , y = d − b ;
p r i n t f (”%d %d %d %d\n ” , c − y , d + x , a − y , b + x ) ;
}

Compiler output:
main.c:1:2: error: invalid preprocessing directive #i; did you mean #if?
    1 | #i n cl u d e <s t d i o . h>
      |  ^
      |  if
main.c:2:1: error: unknown type name 'u'
    2 | u si n g namespace s t d ;
      | ^
main.c:2:6: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'n'
    2 | u si n g namespace s t d ;
      |      ^
main.c:2:6: error: unknown type name 'n'
main.c:3:1: error: unknown type name 'i'
    3 | i n t main ( )
      | ^
main.c:3:5: error: expected '=', ',', ';', 'asm' or '__attribute__' before 't'
    3 | i n t main ( )
      |     ^
main.c:3:5: error: unknown type name 't'
main.c:6:12: error: stray '\342' in program
    6 | s c a n f (<U+201D>%d%d%d%d <U+201D> , &a , &b , &c , &d ) ;
      |            ^~~~~~~~
main.c:6:22: error: stray '\342' in program
    6 | s c a n f (<U+201D>%d%d%d%d <U+201D> , &a , &b , &c , &d ) ;
      |                             ^~~~~~~~
main.c:7:13: error: stray '\342' in program
    7 | i n t x = c <U+2212> a , y = d <U+2212> b ;
      |             ^~~~~~~~
main.c:7:25: error: stray '\342' in program
    7 | i n t x = c <U+2212> a , y = d <U+2212> b ;
      |                                ^~~~~~~~
main.c:8:14: error: stray '\342' in program
    8 | p r i n t f (<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 '\' in program
    8 | p r i n t f (”%d %d %d %d\n ” , c − y , d + x , a − y , b + x ) ;
      |                          ^
main.c:8:29: error: stray '\342' in program
    8 | p r i n t f (<U+201D>%d %d %d %d\n <U+201D> , c <U+2212> y , d + x , a <U+2212> y , b + x ) ;
      |                                    ^~~~~~~~
main.c:8:35: error: stray '\342' in program
    8 | p r i n t f (<U+201D>%d %d %d %d\n <U+201D> , c <U+2212> y , d + x , a <U+2212> y , b + x ) ;
      |                                                 ^~~~~~~~
main.c:8:51: error: stray '\342' in program
    8 | p r i n t f (<U+201D>%d %d %d %d\n <U+201D> , c <U+2212> y , d + x , a <U+2212> y , b + x ) ;
      |                                                                        ^~~~~~~~
Language: C++

#include<iostream>
#include<vector>
#include<sstream>
#include<string>
#include<numeric>
using namespace std;
int input(){
  int x;
  cin>>x;
  return x;
}
int abs(int x){
  if(x>=0){
    return x;
  }else{
    return -x;
  }
}
int gcd(int x, int y){
	if(x<y){
    return gcd(y,x);
  }
  if(y==0){
    return x;
  }
  return gcd(y,x%y);
}



int main() {
  int x,y,xx,yy;
  cin>>x>>y>>xx>>yy;
  int kyori=abs(x-xx)+abs(y-yy);
  if(x==xx){
    if(y>yy){
      cout<<x+kyori<<yy<<x+kyori<<y<<endl;
    }else{
      cout<<x-kyori<<yy<<x-kyori<<y<<endl;
    }
  }else{
    if(x>xx){
      cout<<xx<<y-kyori<<x<<y-kyori<<endl;
    }else{
      cout<<xx<y+kyori<<x<<y+kyori<<endl;
    }
  }


  



  
  
  

  


}


Compiler output:
a.cc: In function 'int main()':
a.cc:45:35: error: invalid operands of types 'int' and '<unresolved overloaded function type>' to binary 'operator<<'
   45 |       cout<<xx<y+kyori<<x<<y+kyori<<endl;
      |                ~~~~~~~~~~~~~~~~~~~^~~~~~
Language: C++

import sequtils, strutils, algorithm, future


proc `+`(l, r: seq[int]): seq[int] =
  result = @[]
  for r in zip(l, r):
    result.add(r.a + r.b)

proc rotate(s: seq[int]): seq[int] =
  result = @[-s[1], s[0]]

var
  inputs = stdin.readLine.split.map(parseInt)
  two = inputs[2..3]
  vect = @[inputs[2] - inputs[0], inputs[3] - inputs[1]]
  three = two + vect.rotate
  four = three + vect.rotate.rotate


echo @[three.map(x => $x).join(" "), four.map(x => $x).join(" ")].join(" ")


Compiler output:
a.cc:4:6: error: stray '`' in program
    4 | proc `+`(l, r: seq[int]): seq[int] =
      |      ^
a.cc:4:8: error: stray '`' in program
    4 | proc `+`(l, r: seq[int]): seq[int] =
      |        ^
a.cc:5:12: error: stray '@' in program
    5 |   result = @[]
      |            ^
a.cc:10:12: error: stray '@' in program
   10 |   result = @[-s[1], s[0]]
      |            ^
a.cc:14:16: error: too many decimal points in number
   14 |   two = inputs[2..3]
      |                ^~~~
a.cc:15:10: error: stray '@' in program
   15 |   vect = @[inputs[2] - inputs[0], inputs[3] - inputs[1]]
      |          ^
a.cc:20:6: error: stray '@' in program
   20 | echo @[three.map(x => $x).join(" "), four.map(x => $x).join(" ")].join(" ")
      |      ^
a.cc:1:1: error: 'import' does not name a type
    1 | import sequtils, strutils, algorithm, future
      | ^~~~~~
a.cc:1:1: note: C++20 'import' only available with '-fmodules-ts'
Language: C++

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

	return 0;
}


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

#include <iostream>
using namepspace std;
int main(){
  int x[4], y[4];
  cin >> x[0] >> y[0] >> x[1] >> y[1];
  x[2] = x[1] + y[0] - y[1];
  y[2] = y[1] + x[1] - x[0];
  x[3] = x[2] + y[1] - y[2];
  y[3] = y[2] + x[2] - x[1];
  cout << x[2] << y[2] << x[3] << y[3] << endl;
}

Compiler output:
a.cc:2:7: error: expected nested-name-specifier before 'namepspace'
    2 | using namepspace std;
      |       ^~~~~~~~~~
a.cc: In function 'int main()':
a.cc:5:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    5 |   cin >> x[0] >> y[0] >> x[1] >> y[1];
      |   ^~~
      |   std::cin
In file included from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:10:3: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   10 |   cout << x[2] << y[2] << x[3] << y[3] << endl;
      |   ^~~~
      |   std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:10:43: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   10 |   cout << x[2] << y[2] << x[3] << y[3] << endl;
      |                                           ^~~~
      |                                           std::endl
In file included from /usr/include/c++/14/iostream:41:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
Language: C++

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

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

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

#include "stdio.h"
#include "math.h"
#include "stdlib.h"

int main() {


  int a[4]={};
  for(int i=0; i<4; i++){
	scanf("%d",&a[i]);
  }
  int x3,x4,y3,y4;

  if( a[0] == a[2]){
	x3 = a[0] + abs(a[1] - a[3]);
	y3 = a[3];
	x4 = a[0] + abs(a[1] - a[3]);
	y4 = a[1];
  }
  if( a[1] == a[3] ){
	x3 = a[2];
	y3 = a[1]-abs(a[0]-a[2]);
	x4 = a[0]
	y4 = a[1]-abs(a[0]-a[2]);
  }  
	
  printf("%d %d %d %d\n", x3,y3,x4,y4);
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:23:18: error: expected ';' before 'y4'
   23 |         x4 = a[0]
      |                  ^
      |                  ;
   24 |         y4 = a[1]-abs(a[0]-a[2]);
      |         ~~
Language: C++

#include<stdio.h>
using namespace std;

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

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

  cout << x2 - y << y2+x << x1-y << y1+x << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:6:3: error: 'cin' was not declared in this scope
    6 |   cin >> x1 >> y1 >> x2 >> y2;
      |   ^~~
a.cc:2:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
    1 | #include<stdio.h>
  +++ |+#include <iostream>
    2 | using namespace std;
a.cc:12:3: error: 'cout' was not declared in this scope
   12 |   cout << x2 - y << y2+x << x1-y << y1+x << endl;
      |   ^~~~
a.cc:12:3: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:12:45: error: 'endl' was not declared in this scope
   12 |   cout << x2 - y << y2+x << x1-y << y1+x << endl;
      |                                             ^~~~
a.cc:2:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
    1 | #include<stdio.h>
  +++ |+#include <ostream>
    2 | using namespace std;
Language: C++

#include<stdio.h>>
using namespace std;

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

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

  cout << x2 - y << y2+x << x1-y << y1+x << endl;
}


Compiler output:
a.cc:1:18: warning: extra tokens at end of #include directive
    1 | #include<stdio.h>>
      |                  ^
a.cc: In function 'int main()':
a.cc:6:3: error: 'cin' was not declared in this scope
    6 |   cin >> x1 >> y1 >> x2 >> y2;
      |   ^~~
a.cc:2:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
    1 | #include<stdio.h>>
  +++ |+#include <iostream>
    2 | using namespace std;
a.cc:12:3: error: 'cout' was not declared in this scope
   12 |   cout << x2 - y << y2+x << x1-y << y1+x << endl;
      |   ^~~~
a.cc:12:3: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:12:45: error: 'endl' was not declared in this scope
   12 |   cout << x2 - y << y2+x << x1-y << y1+x << endl;
      |                                             ^~~~
a.cc:2:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
    1 | #include<stdio.h>>
  +++ |+#include <ostream>
    2 | using namespace std;
Language: C++

#include <bits/stdc++.h>
using namespace std;
#define lp(i, x, n) for (int i = x; i < (int)n; ++i)
#define all(v) (v).begin(), (v).end()
#define sz(v) (int)(v).size()
#define ll long long
#define N 123451

int x1, y1, x2, y2;

int main(){

        scanf("%d%d%d%d", &x1, &y1, &x2, &y2);
        int x3 = x2 - x1, y3 = y2 - y1;
        printf("%d %d %d %d", (x2 - y3), (y2 + x3), (x1 - y3), (y1 + x3));
        return 0;
}




Compiler output:
a.cc:9:9: error: 'int y1' redeclared as different kind of entity
    9 | int x1, y1, x2, y2;
      |         ^~
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:14:35: error: invalid operands of types 'int' and 'double(double) noexcept' to binary 'operator-'
   14 |         int x3 = x2 - x1, y3 = y2 - y1;
      |                                ~~ ^ ~~
      |                                |    |
      |                                int  double(double) noexcept
a.cc:15:68: warning: pointer to a function used in arithmetic [-Wpointer-arith]
   15 |         printf("%d %d %d %d", (x2 - y3), (y2 + x3), (x1 - y3), (y1 + x3));
      |                                                                 ~~~^~~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
#define lp(i, x, n) for (int i = x; i < (int)n; ++i)
#define all(v) (v).begin(), (v).end()
#define sz(v) (int)(v).size()
#define ll long long
#define N 123451

int x1, y1, x2, y2;

int main(){

        scanf("%d%d%d%d", &x1, &y1, &x2, &y2);
        int x3 = x2 - x1, y3 = y2 - y1;
        int s1 = (x2 - y3), s2 = (y2 + x3);
        printf("%d %d %d %d", s1, s2, (s1 - x3), (s2 - y3));
        return 0;
}




Compiler output:
a.cc:9:9: error: 'int y1' redeclared as different kind of entity
    9 | int x1, y1, x2, y2;
      |         ^~
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:14:35: error: invalid operands of types 'int' and 'double(double) noexcept' to binary 'operator-'
   14 |         int x3 = x2 - x1, y3 = y2 - y1;
      |                                ~~ ^ ~~
      |                                |    |
      |                                int  double(double) noexcept
Language: C++

#include <iostream>
#include <iomanip>
#include <algorithm>
#include <map>
#include <vector>
#include <string>
#include <set>

using namespace std;
typedef long long ll;

int main()
{
    ios_base::sync_with_stdio(0);
    int x, y, x2, y2;
    cin >> x >> y >> x2 >> y2;
    int xd = x2 - x, yd = y2 - y;
    y2 += xd;
    x2 -= yd;
    cout << x2 << " " < y2 << " ";
    y2 -= yd;
    x2 -= xd;
    cout << xd << " " << yd << "\n";
}

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

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

inline getdis(int a, int b,int c,int d){
	return (a-c)*(a-c)+(b-d)*(b-d);
}

int main()
{
	ios::sync_with_stdio(false);
	int x1,y1,x2,y2;
	while(cin>>x1>>y1>>x2>>y2){
		int dis1=x2-x1,dis2=y2-y1;
		int len=(x1-x2)*(x1-x2)+(y1-y2)*(y1-y2);
		for(int i=-100;i<=100;i++){
			for(int j=-100;j<=100;j++){
				int x4=i-dis1,y4=j-dis2;
				if(getdis(i,j,x2,y2)==len&&getdis(x4,y4,x1,y1)==len&&getdis(i,j,x1,y1)==getdis(x2,y2,x4,y4)){
					cout<<i<<" "<<j<<" "<<x4<<" "<<y4<<endl;
					return 0;
				}
			}
		}
	}
	return 0;
}

Compiler output:
a.cc:4:8: error: ISO C++ forbids declaration of 'getdis' with no type [-fpermissive]
    4 | inline getdis(int a, int b,int c,int d){
      |        ^~~~~~
Language: C++

#include<iostream>
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:15: error: extended character ” is not valid in an identifier
    6 |         scanf(”%d%d%d%d”, &a, &b, &c, &d);
      |               ^
a.cc:6:23: error: extended character ” is not valid in an identifier
    6 |         scanf(”%d%d%d%d”, &a, &b, &c, &d);
      |                       ^
a.cc:7:19: error: extended character − is not valid in an identifier
    7 |         int x = c − a, y = d − b;
      |                   ^
a.cc:7:30: error: extended character − is not valid in an identifier
    7 |         int x = c − a, y = d − b;
      |                              ^
a.cc:8:16: 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:28: error: stray '\' in program
    8 |         printf(”%d %d %d %d\n ”, c − y, d + x, a − y, b + x);
      |                            ^
a.cc:8:31: 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:36: 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:50: 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:15: error: '\U0000201d' was not declared in this scope
    6 |         scanf(”%d%d%d%d”, &a, &b, &c, &d);
      |               ^
a.cc:6:23: error: 'd\U0000201d' was not declared in this scope
    6 |         scanf(”%d%d%d%d”, &a, &b, &c, &d);
      |                       ^~
a.cc:7:19: error: expected ',' or ';' before '\U00002212'
    7 |         int x = c − a, y = d − b;
      |                   ^
a.cc:8:35: error: expected ')' before '\U00002212'
    8 |         printf(”%d %d %d %d\n ”, c − y, d + x, a − y, b + x);
      |               ~                   ^~
      |                                   )
a.cc:8:49: error: expected ')' before '\U00002212'
    8 |         printf(”%d %d %d %d\n ”, c − y, d + x, a − y, b + x);
      |               ~                                 ^~
      |                                                 )
Language: C++

#include <iostream>
using namespace std;

using ll = long long;

#define for_(i, a, b) for(int i = (a);i < (b);++i)
#define rfor_(i, a, b) for(int i = (b)-1;i >= (a);--i)
#define rep(i, n) for_(i, 0, n)
#define rrep(i, n) rfor_(i, 0, n)

int x[4], y[4];

int main() {
  cin.tie(0);cout.tie(0);
  ios_base::sync_with_stdio(false);
  
  rep(i, 2)cin>>x[i]>>y[i];
  
  int a = x[1] - x[0], b = y[1] - y[0];
  
  rep(i, 2)cout<<(x[1-i] - b)<<' '<<(y[1-i] + a)<<(i?'\n'?' ');

  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:21:62: error: expected ':' before ')' token
   21 |   rep(i, 2)cout<<(x[1-i] - b)<<' '<<(y[1-i] + a)<<(i?'\n'?' ');
      |                                                              ^
      |                                                              :
a.cc:21:62: error: expected primary-expression before ')' token
a.cc:21:62: error: expected ':' before ')' token
   21 |   rep(i, 2)cout<<(x[1-i] - b)<<' '<<(y[1-i] + a)<<(i?'\n'?' ');
      |                                                              ^
      |                                                              :
a.cc:21:62: error: expected primary-expression before ')' token
Language: C++

#include<stdio.h>
using namespace std;
{
  int a,b,c,d;
  cin >> a >> b >> c >> d;
  int x = c-a ,y = d-b;
  printf("%d %d %d %d",c-y,d+x,a-y,b+x);
}

Compiler output:
a.cc:3:1: error: expected unqualified-id before '{' token
    3 | {
      | ^
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: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() { 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<cstdio>
#include<iostream>
#include<vector>
#include<tuple>
#include<queue>
#include<algorithm>
#include<string.h>
#include<math.h>

using namespace std;


int main(int argc, char* argv[]){
  int x1,x2,y1,y2,x3,x4,y3,y4;
  scanf("%d%d%d%d", &x1,&y1,&x2,&y2);

  x2 = x1 + (int)((y0-y1)*1.41421356/2);
  y2 = y1 + (int)((y0-y1)*1.41421356/2);
  x3 = x0+(x1-x3);
  y3 = y0+(y1-y3);
  
  printf("%lld %lld %lld %lld\n",x2,y2,x3,y3);

  return 0;
}

Compiler output:
a.cc: In function 'int main(int, char**)':
a.cc:17:22: warning: pointer to a function used in arithmetic [-Wpointer-arith]
   17 |   x2 = x1 + (int)((y0-y1)*1.41421356/2);
      |                    ~~^~~
a.cc:17:26: error: invalid operands of types 'double (*)(double) noexcept' and 'double' to binary 'operator*'
   17 |   x2 = x1 + (int)((y0-y1)*1.41421356/2);
      |                   ~~~~~~~^~~~~~~~~~~
      |                      |    |
      |                      |    double
      |                      double (*)(double) noexcept
a.cc:18:22: warning: pointer to a function used in arithmetic [-Wpointer-arith]
   18 |   y2 = y1 + (int)((y0-y1)*1.41421356/2);
      |                    ~~^~~
a.cc:18:26: error: invalid operands of types 'double (*)(double) noexcept' and 'double' to binary 'operator*'
   18 |   y2 = y1 + (int)((y0-y1)*1.41421356/2);
      |                   ~~~~~~~^~~~~~~~~~~
      |                      |    |
      |                      |    double
      |                      double (*)(double) noexcept
a.cc:19:8: error: 'x0' was not declared in this scope; did you mean 'x4'?
   19 |   x3 = x0+(x1-x3);
      |        ^~
      |        x4
a.cc:20:10: warning: pointer to a function used in arithmetic [-Wpointer-arith]
   20 |   y3 = y0+(y1-y3);
      |        ~~^~~~~~~~
a.cc:20:10: error: invalid conversion from 'double (*)(double) noexcept' to 'int' [-fpermissive]
   20 |   y3 = y0+(y1-y3);
      |        ~~^~~~~~~~
      |          |
      |          double (*)(double) noexcept
Language: C

#include <math.h>
main()
{int x1,y1,x2,y2,x3,y3,x4,y4,s;
 do
 {scanf("%d%d%d%d",&x1,&y1,&x2,&y2);
 }while(!(abs(x1)<=100&&abs(y1)<=100&&abs(x2)<=100&&abs(y2)<=100)); 
 s=abs(x1-x2)*abs(x1-x2)+abs(y1-y2)*abs(y1-y2);
 for(x3=-100;x3<=100;x3++)
    for(y3=-100;y3<=100;y3++)
        for(x4=-100;x4<=100;x4++)
           for(y4=-100;y4<=100;y4++)
           {if(abs(x3-x2)*abs(x3-x2)+abs(y3-y2)*abs(y3-y2)=s&&
            abs(x4-x1)*abs(x4-x1)+abs(y4-y1)*abs(y4-y1)=s&&
            abs(x3-x4)*abs(x3-x4)+abs(y3-y4)*abs(y3-y4)=s)
              goto L1;
           }
 L1:  printf("%d %d %d %d",x3,y3,x4,y4);
}

Compiler output:
main.c:2:1: error: return type defaults to 'int' [-Wimplicit-int]
    2 | main()
      | ^~~~
main.c: In function 'main':
main.c:5:3: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    5 |  {scanf("%d%d%d%d",&x1,&y1,&x2,&y2);
      |   ^~~~~
main.c:2:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
    1 | #include <math.h>
  +++ |+#include <stdio.h>
    2 | main()
main.c:5:3: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    5 |  {scanf("%d%d%d%d",&x1,&y1,&x2,&y2);
      |   ^~~~~
main.c:5:3: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:6:11: error: implicit declaration of function 'abs' [-Wimplicit-function-declaration]
    6 |  }while(!(abs(x1)<=100&&abs(y1)<=100&&abs(x2)<=100&&abs(y2)<=100));
      |           ^~~
main.c:2:1: note: include '<stdlib.h>' or provide a declaration of 'abs'
    1 | #include <math.h>
  +++ |+#include <stdlib.h>
    2 | main()
main.c:14:56: error: lvalue required as left operand of assignment
   14 |             abs(x3-x4)*abs(x3-x4)+abs(y3-y4)*abs(y3-y4)=s)
      |                                                        ^
main.c:17:7: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
   17 |  L1:  printf("%d %d %d %d",x3,y3,x4,y4);
      |       ^~~~~~
main.c:17:7: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:17:7: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:17:7: note: include '<stdio.h>' or provide a declaration of 'printf'
Language: C++

#include <iostream>
 
using namespace std;
 
int main() {
    int x1, y1, x2, y2;
    cin >> x1 >> y1 >> x2 >> y2;
 
    cout << x2 + y1 - y2 << " "
         << y2 + x2 - x1 << " "
         << x1 + y1 - y2 << " "
         << y1 + x2 - x1 << endl;
 
    return 0;


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

#include <math.h>
main()
{int x1,y1,x2,y2,x3,y3,x4,y4,s;
 do
 {scanf("%d%d%d%d",&x1,&y1,&x2,&y2);
 }while(!(abs(x1)<=100&&abs(y1)<=100&&abs(x2)<=100&&abs(y2)<=100)); 
 s=abs(x1-x2)*abs(x1-x2)+abs(y1-y2)*abs(y1-y2);
 for(x3=-100;x3<=100;x3++)
    for(y3=-100;y3<=100;y3++)
        for(x4=-100;x4<=100;x4++)
           for(y4=-100;y4<=100;y4++)
           {if(abs(x3-x2)*abs(x3-x2)+abs(y3-y2)*abs(y3-y2)=s&&
            abs(x4-x1)*abs(x4-x1)+abs(y4-y1)*abs(y4-y1)=s&&
            abs(x3-x4)*abs(x3-x4)+abs(y3-y4)*abs(y3-y4)=s&&)
              goto L1;
           }
 L1:  printf("%d %d %d %d",x3,y3,x4,y4);
}
            

Compiler output:
main.c:2:1: error: return type defaults to 'int' [-Wimplicit-int]
    2 | main()
      | ^~~~
main.c: In function 'main':
main.c:5:3: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    5 |  {scanf("%d%d%d%d",&x1,&y1,&x2,&y2);
      |   ^~~~~
main.c:2:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
    1 | #include <math.h>
  +++ |+#include <stdio.h>
    2 | main()
main.c:5:3: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    5 |  {scanf("%d%d%d%d",&x1,&y1,&x2,&y2);
      |   ^~~~~
main.c:5:3: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:6:11: error: implicit declaration of function 'abs' [-Wimplicit-function-declaration]
    6 |  }while(!(abs(x1)<=100&&abs(y1)<=100&&abs(x2)<=100&&abs(y2)<=100));
      |           ^~~
main.c:2:1: note: include '<stdlib.h>' or provide a declaration of 'abs'
    1 | #include <math.h>
  +++ |+#include <stdlib.h>
    2 | main()
main.c:14:60: error: expected expression before ')' token
   14 |             abs(x3-x4)*abs(x3-x4)+abs(y3-y4)*abs(y3-y4)=s&&)
      |                                                            ^
main.c:17:7: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
   17 |  L1:  printf("%d %d %d %d",x3,y3,x4,y4);
      |       ^~~~~~
main.c:17:7: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:17:7: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:17:7: note: include '<stdio.h>' or provide a declaration of 'printf'
Language: C++

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

int main() {
    int x1, x2, x3, x4;
    int y1, y2, y3, y4;
    cin >> x1 >> y1 >> x2 >> y2;
    
    int len = (int)pow(x2-x1, 2) + (int)pow(y2-y1, 2);

    for(int i=-400; i<=400; i++) {
        for(int j=-400; j<=400; j++) {
            if((i-x1)*(x2-x1)+(j-y1)*(y2-y1)==0 && len==(int)pow(i-x1, 2) + (int)pow(j-y1, 2)){
                int x4 = i;
                int y4 = j;
                int x3 = x4 - x1 + x2;
                int y3 = y4 - y1 + y2;
                if()
            }
        }
    }
    
    END:
    
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:18:20: error: expected primary-expression before ')' token
   18 |                 if()
      |                    ^
a.cc:19:13: error: expected primary-expression before '}' token
   19 |             }
      |             ^
Language: C

#include<stdio.h>

int main(void) {
	int x1, x2, x3, x4, y1, y2, y3, y4, d1, d2;
	scanf_s("%d %d %d %d", &x1, &y1, &x2, &y2);
	d1 = x2 - x1;
	d2 = y2 - y1;
	

	if (d1 >= 0 && d2 >= 0) {//pattern1
	   x3 = x2 - d2;
	   y3 = y2 + d1;
	   x4 = x3 - d1;
	   y4 = y3 - d2;
     }
	if(d1>=0&&d2<=0){//pattern2
		if (d1 < 0) {
			d1 = -d1;
		};
		if (d2 < 0) {
			d2 = -d2;
		};
		x3 = x2 - d2;
		y3 = y2 - d1;
		x4 = x3 - d1;
		y4 = y3 + d2;
	}
	if (d1<=0&&d2>=0){//pattern3
		if (d1 < 0) {
			d1 = -d1;
		};
		if (d2 < 0) {
			d2 = -d2;
		};
		x3 = x2 - d2;
		y3 = y2 - d1;
		x4 = x3 + d1;
		y4 = y3 - d2;
	}
	if(d1<=0&&d2<=0){//pattern4
		if (d1 < 0) {
			d1 = -d1;
		};
		if (d2 < 0) {
			d2 = -d2;
		};
		x3 = x2 + d2;
		y3 = y2 - d1;
		x4 = x3 + d1;
		y4 = y3 + d2;
	}
	printf("%d %d %d %d", x3, y3, x4, y4);
}

Compiler output:
main.c: In function 'main':
main.c:5:9: error: implicit declaration of function 'scanf_s'; did you mean 'scanf'? [-Wimplicit-function-declaration]
    5 |         scanf_s("%d %d %d %d", &x1, &y1, &x2, &y2);
      |         ^~~~~~~
      |         scanf
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:5:15: error: expected primary-expression at end of input
    5 |   cin >> x1 >>
      |               ^
a.cc:5:15: error: expected '}' at end of input
a.cc:3:15: note: to match this '{'
    3 | int main(void){
      |               ^
Language: C

#include<stdio.h>

int main()
{
	int A,B,C,D,E,F,G,H,I,J;
	
	scanf("%d%d%d%d", &A,&B,&C,%D);
	E = C - A;
	F = D - B;
	G = C - F;
	H = D + E;
	I = A - F;
	J = B + E;
	printf("%d%d%d%d", G,H,I,J);
	return 0;
}


Compiler output:
main.c: In function 'main':
main.c:7:36: error: expected expression before '%' token
    7 |         scanf("%d%d%d%d", &A,&B,&C,%D);
      |                                    ^
Language: C++

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

int main() {
int xa,xb,xc,xd,ya,yb,yc,yd;
int x,y;
cin >> xa >> ya >> xb >> yb;
x = xa - xb;
y = ya - yb;

xc = xb + y;
yc = yb - x;
xd = xa + y;
yd = ya - x;
cout << xc << yc << xd << yd <, endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:15:31: error: expected primary-expression before ',' token
   15 | cout << xc << yc << xd << yd <, endl;
      |                               ^
Language: C

#include<stdio.h>

int main(void) {
	int x1, x2, x3, x4, y1, y2, y3, y4, d1, d2;
	scanf_s("%d %d %d %d", &x1, &y1, &x2, &y2);
	d1 = x2 - x1;
	d2 = y2 - y1;
	

	if (d1 > 0 && d2 > 0) {//pattern1
		if (d1 < 0) {
			d1 = -d1;
		};
		if (d2 < 0) {
			d2 = -d2;
		}
	   x3 = x2 - d2;
	   y3 = y2 + d1;
	   x4 = x3 - d1;
	   y4 = y3 - d2;
     }
	if(d1>0&&d2<0){//pattern2
		if (d1 < 0) {
			d1 = -d1;
		};
		if (d2 < 0) {
			d2 = -d2;
		};
		x3 = x2 - d2;
		y3 = y2 - d1;
		x4 = x3 - d1;
		y4 = y3 + d2;
	}
	if (d1<0&&d2>0){//pattern3
		if (d1 < 0) {
			d1 = -d1;
		};
		if (d2 < 0) {
			d2 = -d2;
		};
		x3 = x2 - d2;
		y3 = y2 - d1;
		x4 = x3 + d1;
		y4 = y3 - d2;
	}
	if(d1<0&&d2<0){//pattern4
		if (d1 < 0) {
			d1 = -d1;
		};
		if (d2 < 0) {
			d2 = -d2;
		};
		x3 = x2 + d2;
		y3 = y2 - d1;
		x4 = x3 + d1;
		y4 = y3 + d2;
	}
	printf("%d %d %d %d", x3, y3, x4, y4);
}


Compiler output:
main.c: In function 'main':
main.c:5:9: error: implicit declaration of function 'scanf_s'; did you mean 'scanf'? [-Wimplicit-function-declaration]
    5 |         scanf_s("%d %d %d %d", &x1, &y1, &x2, &y2);
      |         ^~~~~~~
      |         scanf
Language: C++

#include <iostream>
using namespace std;

int main() {
	int x1,x2,x3,x4;
	int y1,y2,y3,y4;
	int x1x1,y1y2;
	
	cin >> x1 >> y1 >> x2 >> y2;

	x1x2 = x2 - x1;
	y1y2 = y2 - y1;
	
	x3 = x2 - y1y2;
	y3 = y2 + x1x2;
	
	x4 = x1 - y1y2;
	y4 = y1 + x1x2;
	
	cout << x3 << " " << y3 << " " << x4 << " " << y4 << endl;
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:9: error: 'x1x2' was not declared in this scope; did you mean 'x1x1'?
   11 |         x1x2 = x2 - x1;
      |         ^~~~
      |         x1x1
Language: C++

include<iostream>

using namespace std;
int main(void) {
	int x1, y1, x2, y2;
	int a;
	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;
	return 0;
}

Compiler output:
a.cc:1:1: error: 'include' does not name a type
    1 | include<iostream>
      | ^~~~~~~
a.cc: In function 'int main()':
a.cc:7:9: error: 'cin' was not declared in this scope
    7 |         cin >> x1 >> y1 >> x2 >> y2;
      |         ^~~
a.cc:8:9: error: 'cout' was not declared in this scope
    8 |         cout << x2 - (y2 - y1) << endl;
      |         ^~~~
a.cc:8:35: error: 'endl' was not declared in this scope
    8 |         cout << x2 - (y2 - y1) << endl;
      |                                   ^~~~
Language: C++

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

int main(){
    int x1, y1, x2, y2, x3, y3, x4, y4, xm, ym, xc, yc;
    cin >> x1 >> y1 >> x2 >> y2;
    x3 = y3 = x4 = y4 = xm = ym = xc = yc = 0;
    (double)xm = (x1 + x2) / 2;
    (double)ym = (y1 + y2) / 2;
    (double)xc = (x2 - xm) * 0 + (y2 - ym) * (-1) + xm;
    (double)yc = (x2 - xm) * 1 + (y2 - ym) * 0 + ym;
    x3 = (x2 - xc) * 0 + (y2 - yc) * (-1) + xc;
    y3 = (x2 - xc) * 1 + (y2 - yc) * 0 + yc;
    x4 = (x3 - xc) * 0 + (y3 - yc) * (-1) + xc;
    y4 = (x3 - xc) * 1 + (y3 - yc) * 0 + yc;
    cout << x3 << y3 << x4 << y4 << endl;
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:5: error: lvalue required as left operand of assignment
    9 |     (double)xm = (x1 + x2) / 2;
      |     ^~~~~~~~~~
a.cc:10:5: error: lvalue required as left operand of assignment
   10 |     (double)ym = (y1 + y2) / 2;
      |     ^~~~~~~~~~
a.cc:11:5: error: lvalue required as left operand of assignment
   11 |     (double)xc = (x2 - xm) * 0 + (y2 - ym) * (-1) + xm;
      |     ^~~~~~~~~~
a.cc:12:5: error: lvalue required as left operand of assignment
   12 |     (double)yc = (x2 - xm) * 1 + (y2 - ym) * 0 + ym;
      |     ^~~~~~~~~~
Language: C++

#include <iostream>
#include <vector>
#include <algorithm>
#include <string>
using namespace std;

double distance(int x1, int y1, int x2, int y2) {
	return sqrt((x1 - x2)*(x1 - x2) + (y1 - y2)*(y1 - y2));
}

int main() {
	int x1, x2, x3, x4;
	int y1, y2, y3, y4;

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

	x4 = x1 + (x2 - x1) * 0 - 1 * (y2 - y1);
	y4 = y1 + 1 * (x2 - x1) + 0 * (y2 - y1);

	x3 = x2 + (x1 - x2) * 0 + 1 * (y1 - y2);
	y3 = y2 + (-1) * (x1 - x2) + 0 * (y1 - y2);

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

	
	return 0;
}


Compiler output:
a.cc: In function 'double distance(int, int, int, int)':
a.cc:8:16: error: 'sqrt' was not declared in this scope
    8 |         return sqrt((x1 - x2)*(x1 - x2) + (y1 - y2)*(y1 - y2));
      |                ^~~~
Language: C++

#include <stdio.h>


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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:3: error: 'snanf' was not declared in this scope; did you mean 'scanf'?
    7 |   snanf("%d %d %d %d",x,y,x+1,y+1);
      |   ^~~~~
      |   scanf
Language: C++

int main()
{
	int x1, x2, x3, x4, y1, y2, y3, y4;
	std::cin >> x1 >> y1 >> x2 >> y2;

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

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

	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:4:14: error: 'cin' is not a member of 'std'
    4 |         std::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 | int main()
a.cc:11:14: error: 'cout' is not a member of 'std'
   11 |         std::cout << x3;
      |              ^~~~
a.cc:11:14: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:12:14: error: 'cout' is not a member of 'std'
   12 |         std::cout << y3;
      |              ^~~~
a.cc:12:14: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:13:14: error: 'cout' is not a member of 'std'
   13 |         std::cout << x4;
      |              ^~~~
a.cc:13:14: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:14:14: error: 'cout' is not a member of 'std'
   14 |         std::cout << y4 << std::endl;
      |              ^~~~
a.cc:14:14: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:14:33: error: 'endl' is not a member of 'std'
   14 |         std::cout << y4 << std::endl;
      |                                 ^~~~
a.cc:1:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
  +++ |+#include <ostream>
    1 | int main()
Language: C++

#include <stdio.h>

int main() {
	int x1, x2, x3, x4;
	int y1, y2, y3, y4;

	std::cin >> x1;
	std::cin >> y1; 
	std::cin >> x2; 
	std::cin >> y2;

	int dis_x, dis_y;
	dis_x = x1 - x2;
	dis_y = y1 - y2;

	x3 = x2 + dis_y;
	y3 = y2 - dis_x;
	x4 = x1 + dis_y;
	y4 = y1 - dis_x;

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

	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:14: error: 'cin' is not a member of 'std'
    7 |         std::cin >> x1;
      |              ^~~
a.cc:2:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
    1 | #include <stdio.h>
  +++ |+#include <iostream>
    2 | 
a.cc:8:14: error: 'cin' is not a member of 'std'
    8 |         std::cin >> y1;
      |              ^~~
a.cc:8:14: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:9:14: error: 'cin' is not a member of 'std'
    9 |         std::cin >> x2;
      |              ^~~
a.cc:9:14: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:10:14: error: 'cin' is not a member of 'std'
   10 |         std::cin >> y2;
      |              ^~~
a.cc:10:14: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:21:14: error: 'cout' is not a member of 'std'
   21 |         std::cout << x3 << " "
      |              ^~~~
a.cc:21:14: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:25:25: error: 'endl' is not a member of 'std'
   25 |                 << std::endl;
      |                         ^~~~
a.cc:2:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
    1 | #include <stdio.h>
  +++ |+#include <ostream>
    2 |
Language: C++

#include <stdio.h>
int main(void) {
int a,b,c,d,s,t;
scanf("%d", &a);
scanf("%d", &b);
scanf("%d", &c);
scanf("%d", &d);
s = c - a;t = d - b;
printf("%d %d %d %d",c-t,d+s,c-t-s,d+s-t);
  return 0;}​​

Compiler output:
a.cc:10:13: error: '\U0000200b\U0000200b' does not name a type
   10 |   return 0;}​​
      |
Language: C++

#include <stdio.h>
int main(void) {
int a,b,c,d,s,t;
scanf("%d", &a);
scanf("%d", &b);
scanf("%d", &c);
scanf("%d", &d);
s = c - a;t = d - b;
pintf("%d %d %d %d",c-t,d+s,c-t-s,d+s-t);
  return 0;}​​

Compiler output:
a.cc: In function 'int main()':
a.cc:9:1: error: 'pintf' was not declared in this scope; did you mean 'printf'?
    9 | pintf("%d %d %d %d",c-t,d+s,c-t-s,d+s-t);
      | ^~~~~
      | printf
a.cc: At global scope:
a.cc:10:13: error: '\U0000200b\U0000200b' does not name a type
   10 |   return 0;}​​
      |
Language: C++

#include <stdio.h>

using namespace std;

int main() {
	int x1, x2, x3, x4;
	int y1, y2, y3, y4;

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

	int dis_x, dis_y;
	dis_x = x1 - x2;
	dis_y = y1 - y2;

	x3 = x2 + dis_y;
	y3 = y2 - dis_x;
	x4 = x1 + dis_y;
	y4 = y1 - dis_x;

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

	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:9: error: 'cin' was not declared in this scope
    9 |         cin >> x1;
      |         ^~~
a.cc:2:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
    1 | #include <stdio.h>
  +++ |+#include <iostream>
    2 | 
a.cc:23:9: error: 'cout' was not declared in this scope
   23 |         cout << x3 << " "
      |         ^~~~
a.cc:23:9: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:27:20: error: 'endl' was not declared in this scope
   27 |                 << endl;
      |                    ^~~~
a.cc:2:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
    1 | #include <stdio.h>
  +++ |+#include <ostream>
    2 |
Language: C++

#include <stdio.h>

using namespace std;

int main() {
	int x1, x2, x3, x4;
	int y1, y2, y3, y4;

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

	int dis_x, dis_y;
	dis_x = x1 - x2;
	dis_y = y1 - y2;

	x3 = x2 + dis_y;
	y3 = y2 - dis_x;
	x4 = x1 + dis_y;
	y4 = y1 - dis_x;

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

	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:9: error: 'cin' was not declared in this scope
    9 |         cin >> x1>>y1>>x2>>y2;
      |         ^~~
a.cc:2:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
    1 | #include <stdio.h>
  +++ |+#include <iostream>
    2 | 
a.cc:20:9: error: 'cout' was not declared in this scope
   20 |         cout << x3 << " "
      |         ^~~~
a.cc:20:9: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:24:20: error: 'endl' was not declared in this scope
   24 |                 << endl;
      |                    ^~~~
a.cc:2:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
    1 | #include <stdio.h>
  +++ |+#include <ostream>
    2 |