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

#include <stdio.h>

int main(){
  int a, b, c, d, e, f;
  std::cin >> a;
  std::cin >> b;
  std::cin >> c;
  std::cin >> d;
  std::cin >> e;
  std::cin >> f;
  
  double x, y;
  x = (c*e-b*f) / (a*e-b*d);
  y = (a*f-c*d) / (a*e-b*d);
  printf("%f.3 %f.3\n", x, y);
  
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:8: error: 'cin' is not a member of 'std'
    5 |   std::cin >> a;
      |        ^~~
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:6:8: error: 'cin' is not a member of 'std'
    6 |   std::cin >> b;
      |        ^~~
a.cc:6:8: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:7:8: error: 'cin' is not a member of 'std'
    7 |   std::cin >> c;
      |        ^~~
a.cc:7:8: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:8:8: error: 'cin' is not a member of 'std'
    8 |   std::cin >> d;
      |        ^~~
a.cc:8:8: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:9:8: error: 'cin' is not a member of 'std'
    9 |   std::cin >> e;
      |        ^~~
a.cc:9:8: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:10:8: error: 'cin' is not a member of 'std'
   10 |   std::cin >> f;
      |        ^~~
a.cc:10:8: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
Language: C++

#include <stdio.h>

int main(){
  int a, b, c, d, e, f;
  scanf("%d",&a);
  scanf("%d",&b);
  scanf("%d",&c);
  scanf("%d",&d);
  scanf("%d",&e);
  scanf("%d",&f);
  
  double x, y;
  x = (double)(c*e-b*f) / (double)(a*e-b*d);
  y = (double)(a*f-c*d) / (double)(a*e-b*d);
???x = (double)round(x*10000.0) / 10000.0;
  y = (double)round(y*10000.0) / 10000.0;
  printf("%f.3 %f.3\n", x, y);
  
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:15:1: error: expected primary-expression before '?' token
   15 | ???x = (double)round(x*10000.0) / 10000.0;
      | ^
a.cc:15:2: error: expected primary-expression before '?' token
   15 | ???x = (double)round(x*10000.0) / 10000.0;
      |  ^
a.cc:15:3: error: expected primary-expression before '?' token
   15 | ???x = (double)round(x*10000.0) / 10000.0;
      |   ^
a.cc:15:16: error: 'round' was not declared in this scope
   15 | ???x = (double)round(x*10000.0) / 10000.0;
      |                ^~~~~
a.cc:15:42: error: expected ':' before ';' token
   15 | ???x = (double)round(x*10000.0) / 10000.0;
      |                                          ^
      |                                          :
a.cc:15:42: error: expected primary-expression before ';' token
a.cc:15:42: error: expected ':' before ';' token
   15 | ???x = (double)round(x*10000.0) / 10000.0;
      |                                          ^
      |                                          :
a.cc:15:42: error: expected primary-expression before ';' token
a.cc:15:42: error: expected ':' before ';' token
   15 | ???x = (double)round(x*10000.0) / 10000.0;
      |                                          ^
      |                                          :
a.cc:15:42: error: expected primary-expression before ';' token
Language: C++

#include <stdio.h>

int main(){
  int a, b, c, d, e, f;
  scanf("%d",&a);
  scanf("%d",&b);
  scanf("%d",&c);
  scanf("%d",&d);
  scanf("%d",&e);
  scanf("%d",&f);
  
  double x, y;
  x = (double)(c*e-b*f) / (double)(a*e-b*d);
  y = (double)(a*f-c*d) / (double)(a*e-b*d);
  x = (double)round(x*10000.0) / 10000.0;
  y = (double)round(y*10000.0) / 10000.0;
  printf("%f.3 %f.3\n", x, y);
  
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:15:15: error: 'round' was not declared in this scope
   15 |   x = (double)round(x*10000.0) / 10000.0;
      |               ^~~~~
Language: C++

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

int main(){
  int i = 0;
  while(1){
  i++;
  int a, b, c, d, e, f;
  scanf("%d ",&a);
  scanf("%d ",&b);
  scanf("%d ",&c);
  scanf("%d ",&d);
  scanf("%d ",&e);
  scanf("%d ",&f);
  
  double x, y;
  x = (double)(c*e-b*f) / (double)(a*e-b*d);
  y = (double)(a*f-c*d) / (double)(a*e-b*d);
  x = (double)round(x*10000.0) / 10000.0;
  y = (double)round(y*10000.0) / 10000.0;
  printf("%.3f %.3f\n", x, y);
  
  if(scanf()==EOF) break;
  else{
    int line = i * 6
    fseek(STDIN, lineL, SEEK_SET);
  }
  }
  
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:23:11: error: too few arguments to function 'int scanf(const char*, ...)'
   23 |   if(scanf()==EOF) break;
      |      ~~~~~^~
In file included from /usr/include/features.h:523,
                 from /usr/include/x86_64-linux-gnu/bits/libc-header-start.h:33,
                 from /usr/include/stdio.h:28,
                 from a.cc:1:
/usr/include/stdio.h:445:12: note: declared here
  445 | extern int __REDIRECT (scanf, (const char *__restrict __format, ...),
      |            ^~~~~~~~~~
a.cc:26:5: error: expected ',' or ';' before 'fseek'
   26 |     fseek(STDIN, lineL, SEEK_SET);
      |     ^~~~~
Language: C++

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

int main(){
  int i = 0;
  while(1){
  i++;
  int a, b, c, d, e, f;
  scanf("%d ",&a);
  scanf("%d ",&b);
  scanf("%d ",&c);
  scanf("%d ",&d);
  scanf("%d ",&e);
  scanf("%d ",&f);
  
  double x, y;
  x = (double)(c*e-b*f) / (double)(a*e-b*d);
  y = (double)(a*f-c*d) / (double)(a*e-b*d);
  x = (double)round(x*10000.0) / 10000.0;
  y = (double)round(y*10000.0) / 10000.0;
  printf("%.3f %.3f\n", x, y);
  
  if(scanf("%d", &a)==EOF) break;
  else{
    int line = i * 6
    fseek(STDIN, lineL, SEEK_SET);
  }
  }
  
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:26:5: error: expected ',' or ';' before 'fseek'
   26 |     fseek(STDIN, lineL, SEEK_SET);
      |     ^~~~~
Language: C++

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

int main(){
  int i = 0;
  while(1){
  i++;
  int a, b, c, d, e, f;
  scanf("%d ",&a);
  scanf("%d ",&b);
  scanf("%d ",&c);
  scanf("%d ",&d);
  scanf("%d ",&e);
  scanf("%d ",&f);
  
  double x, y;
  x = (double)(c*e-b*f) / (double)(a*e-b*d);
  y = (double)(a*f-c*d) / (double)(a*e-b*d);
  x = (double)round(x*10000.0) / 10000.0;
  y = (double)round(y*10000.0) / 10000.0;
  printf("%.3f %.3f\n", x, y);
  
  if(scanf("%d", &a)==EOF) break;
  else{
    int line = i * 6;
    fseek(STDIN, lineL, SEEK_SET);
  }
  }
  
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:26:11: error: 'STDIN' was not declared in this scope
   26 |     fseek(STDIN, lineL, SEEK_SET);
      |           ^~~~~
a.cc:26:18: error: 'lineL' was not declared in this scope; did you mean 'line'?
   26 |     fseek(STDIN, lineL, SEEK_SET);
      |                  ^~~~~
      |                  line
Language: C++

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

int main(){
  int i = 0;
  while(1){
  i++;
  int a, b, c, d, e, f;
  scanf("%d ",&a);
  scanf("%d ",&b);
  scanf("%d ",&c);
  scanf("%d ",&d);
  scanf("%d ",&e);
  scanf("%d ",&f);
  
  double x, y;
  x = (double)(c*e-b*f) / (double)(a*e-b*d);
  y = (double)(a*f-c*d) / (double)(a*e-b*d);
  x = (double)round(x*10000.0) / 10000.0;
  y = (double)round(y*10000.0) / 10000.0;
  printf("%.3f %.3f\n", x, y);
  
  if(scanf("%d", &a)==EOF) break;
  else{
    int line = i * 6;
    fseek(stdin, lineL, SEEK_SET);
  }
  }
  
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:26:18: error: 'lineL' was not declared in this scope; did you mean 'line'?
   26 |     fseek(stdin, lineL, SEEK_SET);
      |                  ^~~~~
      |                  line
Language: C++

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

int main(){
  int i = 0;
  int a, b, c, d, e, f;

  while(scanf("%d", &a)!=EOF){
  i++;
  scanf("%d ",&b);
  scanf("%d ",&c);
  scanf("%d ",&d);
  scanf("%d ",&e);
  scanf("%d ",&f);
  
  double x, y;
  x = (double)(c*e-b*f) / (double)(a*e-b*d);
  y = (double)(a*f-c*d) / (double)(a*e-b*d);
  x = (double)round(x*10000.0) / 10000.0;
  y = (double)round(y*10000.0) / 10000.0;
  printf("%.3f %.3f\n", x, y);
  
  long line = ftell(stdin);
  if(scanf("%d", &a)==EOF) break;
  
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:27:2: error: expected '}' at end of input
   27 | }
      |  ^
a.cc:4:11: note: to match this '{'
    4 | int main(){
      |           ^
Language: C++

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

int main(){
  int i = 0;
  int a, b, c, d, e, f;

  while(scanf("%d", &a)!=EOF){
  i++;
  scanf("%d ",&b);
  scanf("%d ",&c);
  scanf("%d ",&d);
  scanf("%d ",&e);
  scanf("%d ",&f);
  
  double x, y;
  x = (double)(c*e-b*f) / (double)(a*e-b*d);
  y = (double)(a*f-c*d) / (double)(a*e-b*d);
  x = (double)round(x*10000.0) / 10000.0;
  y = (double)round(y*10000.0) / 10000.0;
  printf("%.3f %.3f\n", x, y);
  scanf("%d", &a)
  }
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:22:18: error: expected ';' before '}' token
   22 |   scanf("%d", &a)
      |                  ^
      |                  ;
   23 |   }
      |   ~
Language: C++

#include <iostream>
using namespace std;

float main(){
	int a, b, c, d, e;

	while(cin >> a >> b >> c >> d >> e){
		float x, y;
		x = (float)(b*f - c*e)/(b*d -a*e);
		y = (float)(c - a*x)/b;
		cout << x << " " << y << endl;
	}
	return 0;
}

Compiler output:
a.cc:4:1: error: '::main' must return 'int'
    4 | float main(){
      | ^~~~~
a.cc: In function 'int main()':
a.cc:9:31: error: 'f' was not declared in this scope
    9 |                 x = (float)(b*f - c*e)/(b*d -a*e);
      |                               ^
Language: C++

#include <iostream>
using namespace std;

float main(){
	int a, b, c, d, e, f;

	while(cin >> a >> b >> c >> d >> e >> f){
		float x, y;
		x = (float)(b*f - c*e)/(b*d -a*e);
		y = (float)(c - a*x)/b;
		cout << x << " " << y << endl;
	}
	return 0;
}

Compiler output:
a.cc:4:1: error: '::main' must return 'int'
    4 | float main(){
      | ^~~~~
Language: C++

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

using namespace std;

int main(){
	int a,b,c,d,e,f;
	float x , y , delta;

	while(cin >> a >> b >> c >> d >> e >> f){
			delta = (a * e) - (b * d);

			x = ((c * e) - (b * f)) / delta;
			y = ((a * f) - (c * d)) / delta;

			if(x % 10000 >= 5){
				x += 0.001;
			}if(y % 10000 >= 5){
				y += 0.001;
			}

		printf("%f %f\n", x , y);
	}

	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:16:30: error: invalid operands of types 'float' and 'int' to binary 'operator%'
   16 |                         if(x % 10000 >= 5){
      |                            ~ ^ ~~~~~
      |                            |   |
      |                            |   int
      |                            float
a.cc:18:31: error: invalid operands of types 'float' and 'int' to binary 'operator%'
   18 |                         }if(y % 10000 >= 5){
      |                             ~ ^ ~~~~~
      |                             |   |
      |                             |   int
      |                             float
Language: C++

#include <bits/stdc++.h>
using namespace std;
double a,b,c,d,e,f,y,x;

int main (){
	while(cin>>a>>b>>c>>d>>e>>f){
		y=(((c*d)-(f*a))/((b*d)-(e*a)));
		x=((ac-(b*y))/a);
		if(x==0){
			x=abs(x);
		}
		if(y==0){
			y=abs(y);
		}
		cout<<fixed<<showpoint<<setprecision(3);
		cout<<x<<" "<<y<<endl;
	}
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:21: error: 'ac' was not declared in this scope; did you mean 'c'?
    8 |                 x=((ac-(b*y))/a);
      |                     ^~
      |                     c
Language: C++

import java.util.Scanner;

public class V0_0004 {

    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);

        while (scanner.hasNextInt()) {
            int a = scanner.nextInt();
            int b = scanner.nextInt();
            int c = scanner.nextInt();
            int d = scanner.nextInt();
            int e = scanner.nextInt();
            int f = scanner.nextInt();

            Equation equation_1 = new Equation(a, b, c);
            Equation equation_2 = new Equation(d, e, f);

            double[] solution = solve(equation_1, equation_2);

            System.out.printf("%.3f %.3f\n", solution[0], solution[1]);
        }
    }

    static double[] solve(Equation left, Equation right) {
        double determinant = left.a * right.b - right.a * left.b;
        double x = (right.b * left.c - left.b * right.c) / determinant;
        double y = (-right.a * left.c + left.a * right.c) / determinant;

        double[] result = { x, y };
        return result;
    }

}

// ax + by = c
class Equation {

    Equation(int a, int b, int c) {
        this.a = a;
        this.b = b;
        this.c = c;
    }

    public int a;
    public int b;
    public int c;

}

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'
a.cc:3:1: error: expected unqualified-id before 'public'
    3 | public class V0_0004 {
      | ^~~~~~
a.cc:45:11: error: expected ':' before 'int'
   45 |     public int a;
      |           ^~~~
      |           :
a.cc:46:11: error: expected ':' before 'int'
   46 |     public int b;
      |           ^~~~
      |           :
a.cc:47:11: error: expected ':' before 'int'
   47 |     public int c;
      |           ^~~~
      |           :
a.cc:49:2: error: expected ';' after class definition
   49 | }
      |  ^
      |  ;
a.cc: In constructor 'Equation::Equation(int, int, int)':
a.cc:40:14: error: request for member 'a' in '(Equation*)this', which is of pointer type 'Equation*' (maybe you meant to use '->' ?)
   40 |         this.a = a;
      |              ^
a.cc:41:14: error: request for member 'b' in '(Equation*)this', which is of pointer type 'Equation*' (maybe you meant to use '->' ?)
   41 |         this.b = b;
      |              ^
a.cc:42:14: error: request for member 'c' in '(Equation*)this', which is of pointer type 'Equation*' (maybe you meant to use '->' ?)
   42 |         this.c = c;
      |              ^
Language: C++

import java.util.Scanner;

public class Main {

    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);

        while (scanner.hasNextInt()) {
            int a = scanner.nextInt();
            int b = scanner.nextInt();
            int c = scanner.nextInt();
            int d = scanner.nextInt();
            int e = scanner.nextInt();
            int f = scanner.nextInt();

            Equation equation_1 = new Equation(a, b, c);
            Equation equation_2 = new Equation(d, e, f);

            double[] solution = solve(equation_1, equation_2);

            System.out.printf("%.3f %.3f\n", solution[0], solution[1]);
        }
    }

    static double[] solve(Equation left, Equation right) {
        double determinant = left.a * right.b - right.a * left.b;
        double x = (right.b * left.c - left.b * right.c) / determinant;
        double y = (-right.a * left.c + left.a * right.c) / determinant;

        double[] result = { x, y };
        return result;
    }

}

// ax + by = c
class Equation {

    Equation(int a, int b, int c) {
        this.a = a;
        this.b = b;
        this.c = c;
    }

    public int a;
    public int b;
    public int c;

}

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'
a.cc:3:1: error: expected unqualified-id before 'public'
    3 | public class Main {
      | ^~~~~~
a.cc:45:11: error: expected ':' before 'int'
   45 |     public int a;
      |           ^~~~
      |           :
a.cc:46:11: error: expected ':' before 'int'
   46 |     public int b;
      |           ^~~~
      |           :
a.cc:47:11: error: expected ':' before 'int'
   47 |     public int c;
      |           ^~~~
      |           :
a.cc:49:2: error: expected ';' after class definition
   49 | }
      |  ^
      |  ;
a.cc: In constructor 'Equation::Equation(int, int, int)':
a.cc:40:14: error: request for member 'a' in '(Equation*)this', which is of pointer type 'Equation*' (maybe you meant to use '->' ?)
   40 |         this.a = a;
      |              ^
a.cc:41:14: error: request for member 'b' in '(Equation*)this', which is of pointer type 'Equation*' (maybe you meant to use '->' ?)
   41 |         this.b = b;
      |              ^
a.cc:42:14: error: request for member 'c' in '(Equation*)this', which is of pointer type 'Equation*' (maybe you meant to use '->' ?)
   42 |         this.c = c;
      |              ^
Language: C++

#include <iostream>
#include <cstdio>

using namespace std;

int main(){
double a=1;, b, c, d, e, f;

while(a){
cin >> a >> b>> c>> d>> e>> f;
double x, y;
x =(c*e-b*f) / (a*e-b*d);
y = (c*d-a*f) / (b*d-a*e);
printf("%.3f %.3f\n",x, y);
}

return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:12: error: expected primary-expression before ',' token
    7 | double a=1;, b, c, d, e, f;
      |            ^
a.cc:7:14: error: 'b' was not declared in this scope
    7 | double a=1;, b, c, d, e, f;
      |              ^
a.cc:7:17: error: 'c' was not declared in this scope
    7 | double a=1;, b, c, d, e, f;
      |                 ^
a.cc:7:20: error: 'd' was not declared in this scope
    7 | double a=1;, b, c, d, e, f;
      |                    ^
a.cc:7:23: error: 'e' was not declared in this scope
    7 | double a=1;, b, c, d, e, f;
      |                       ^
a.cc:7:26: error: 'f' was not declared in this scope
    7 | double a=1;, b, c, d, e, f;
      |                          ^
Language: C++

#include <iostream>
#include <iomanip>
//#include <fstream>

int main(int argc, char **argv){
	//std::ifstream ifs("test.txt");
	double a = 0;
	double b = 0;
	double c = 0;
	double d = 0;
	double e = 0;
	double f = 0;

	while(std::cin >> a >> b >> c >> d >> e >> f){
	//while(ifs >> a >> b >> c >> d >> e >> f){
		double det = a * e - b * d;
		double x = (c * e - b * f) / det;
		double y = (a * f - c * d) / det;
		
		x = std::round(x * 1000) / 1000.0;
		y = std::round(y * 1000) / 1000.0;

		if(x == - 0){ x = 0; }
		if(y == - 0){ y = 0; }
		std::cout << std::fixed << std::setprecision(3) << x << " " << y << std::endl;
	}
	return 0;
}

Compiler output:
a.cc: In function 'int main(int, char**)':
a.cc:20:26: error: 'round' is not a member of 'std'
   20 |                 x = std::round(x * 1000) / 1000.0;
      |                          ^~~~~
a.cc:21:26: error: 'round' is not a member of 'std'
   21 |                 y = std::round(y * 1000) / 1000.0;
      |                          ^~~~~
Language: C++

#include <iostream>
#include <iomanip>
#include <sstream>
#include <vector>

using namespace std;

int main() {
	double a, b, c, d, e, f;

	vector<string> v;
	while (cin >> a >> b >> c >> d >> e >> f) {
		double x, y;

		x = ((c * e) - (b * f)) / ((a * e) - (b * d));
		y = ((c * d) - (a * f)) / ((b * d) - (a * e));

		x = x * 1000;
		x = round(x);
		x = x / 1000;

		y = y * 1000;
		y = round(y);
		y = y / 1000;

		stringstream ss;
		ss << fixed << setprecision(3) << x << " " << y;
		v.push_back(ss.str());
	}
	
	for (int i = 0; i < v.size(); i++) {
		cout << v[i] << endl;
	}

	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:19:21: error: 'round' was not declared in this scope
   19 |                 x = round(x);
      |                     ^~~~~
Language: C++

#include<iostream>
#include<stdio.h>
using namespace std;
int main() {
	double a, b, c, d, e, f, x, y;
	while (cin >> a >> b >> c >> d >> e >> f;) {
		double bd = b*d;
		double ea = e*a;
		double cd = c*d;
		double fa = f*a;
		y = (cd - fa) / (bd - ea);
		x = (c - b*y) / a;
		printf("%.3f %.3f\n", x, y);
	}
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:49: error: expected ')' before ';' token
    6 |         while (cin >> a >> b >> c >> d >> e >> f;) {
      |               ~                                 ^
      |                                                 )
a.cc:6:50: error: expected primary-expression before ')' token
    6 |         while (cin >> a >> b >> c >> d >> e >> f;) {
      |                                                  ^
Language: C++

#include<cstdio>
#include<iostream>
class GCDandLCM{
    public:
        void solve(int a,int b){
            int big=a,small=b;
            if(a<b){ 
                big=b;
                small=a;
                int tmp=a;
                a=b;
                b=tmp;
            }
            while(big%small!=0){ 
                int tmp=big%small;
                big=small;
                small=tmp;
            }
            printf("%d %d\n",small,(a*b)/small);
        }
};
int main(){ 
    GCDandLCM inst;
    int a,b;
    while(cin>>a>>b){ 
        inst.solve(a,b);
    }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:25:11: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
   25 |     while(cin>>a>>b){
      |           ^~~
      |           std::cin
In file included from a.cc:2:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
Language: C++

#include <iostream>
using namespace std;



int main()
{
	double a[3], b[3];
	while (cin >> a[0] >> a[1] >> a[2] >> b[0] >> b[1] >> b[2])
	{
		if (a[0] == 0)
		{
			double c = a[2] / a[1];
			double d = (b[2] - b[1] * c) / b[1];
			a[2] = d;
			b[2] = d;
		}
		else
		{
			double c = 1;
			if (b[0] != 0)
			{
				c = a[0] / b[0];
				b[1] = b[1] * c - a[1];
				b[2] = b[2] * c - a[2];
			}
			b[2] /= b[1];
			b[1] = 1;
			a[2] -= b[2] * a[1];
			a[2] /= a[0];
		}
		if (a[2] < 0.0001 && a[2] > -0.0001)
			a[2] = 0.000;
		if (b[2] < 0.0001 && b[2] > -0.0001)
			b[2] = 0.000;

		cout << fixed << setprecision(3) << a[2] << b[2] << endl;
	}

	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:37:34: error: 'setprecision' was not declared in this scope
   37 |                 cout << fixed << setprecision(3) << a[2] << b[2] << endl;
      |                                  ^~~~~~~~~~~~
a.cc:2:1: note: 'std::setprecision' is defined in header '<iomanip>'; this is probably fixable by adding '#include <iomanip>'
    1 | #include <iostream>
  +++ |+#include <iomanip>
    2 | using namespace std;
Language: C++

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

void OutputSolution(int a, int b, int c, int d, int e, int f)
{
	if(b == 0){
		double x = c / a;
		double y = (f-d*x) / e;
	}else{
		int B = b;
		a *= e;
		b *= e;
		c *= e;
		d *= B;
		e *= B;
		f *= B;
		double x = (c-f) / (a-d);
		double y = (c-a*x) / b;
	}
	cout << fixed << setprecision(3) << x << ' ' << y << endl;
}

int main()
{
	while(true){
		int a, b, c, d, e, f;
		cin >> a >> b >> c >> d >> e >> f;
		if(cin.eof()) break;
		OutputSolution(a, b, c, d, e, f);
	}
	return 0;
}

Compiler output:
a.cc: In function 'void OutputSolution(int, int, int, int, int, int)':
a.cc:21:45: error: 'x' was not declared in this scope
   21 |         cout << fixed << setprecision(3) << x << ' ' << y << endl;
      |                                             ^
a.cc:21:57: error: 'y' was not declared in this scope
   21 |         cout << fixed << setprecision(3) << x << ' ' << y << endl;
      |                                                         ^
Language: C++

#include <iostream>
#include <iomanip>

/*
ax + by = c
dx + ey = f

x = (c-by)/a
d(c-by)/a + ey = f
dc/a - dby/a + ey = f
ey - dby/a = f - dc/a
y(e-db/a) = f - dc/a
y = (f-dc/a)/(e-db/a)

aex + bey = ce
bdx + bey = bf
aex - bdx = ce - bf
x(ae - bd) = ce - bf
x = (ce - bf)/(ae - bd)
by = c - ax
y = (c - ax)/b
*/
int main()
{
    while(true){
        double a, b, c, d, e, f;
        std::cin >> a >> b >> c >> d >> e >> f;
        if(std::cin.eof()) break;
        if(b){
            double x = (c*e - b*f) / (a*e - b*d);
            double y = (c - a*x) / b;
        }else{
            double y = (f-d*c/a)/(e-d*b/a);
            double x = (c-b*y)/a;
        }
        std::cout << std::fixed << std::setprecision(3);
        std::cout << x << " " << y << std::endl;
    }
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:37:22: error: 'x' was not declared in this scope
   37 |         std::cout << x << " " << y << std::endl;
      |                      ^
a.cc:37:34: error: 'y' was not declared in this scope
   37 |         std::cout << x << " " << y << std::endl;
      |                                  ^
Language: C++

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

void OutputSolution(int a, int b, int c, int d, int e, int f)
{
    long long double x, y;
	if(b == 0){
		x = c / a;
		y = (f-d*x) / e;
	}else{
		int B = b;
		a *= e;
		b *= e;
		c *= e;
		d *= B;
		e *= B;
		f *= B;
		x = (c-f) / (a-d);
		y = (c-a*x) / b;
	}
	cout << fixed << setprecision(3) << x << ' ' << y << endl;
}

int main()
{
	while(true){
		int a, b, c, d, e, f;
		cin >> a >> b >> c >> d >> e >> f;
		if(cin.eof()) break;
		OutputSolution(a, b, c, d, e, f);
	}
	return 0;
}

Compiler output:
a.cc: In function 'void OutputSolution(int, int, int, int, int, int)':
a.cc:7:10: error: 'long long' specified with 'double'
    7 |     long long double x, y;
      |          ^~~~
a.cc:7:10: error: 'long long' specified with 'double'
Language: C++

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

int main(???
{
	int a, b, c, d, e, f;
	while (cin >> a >> b >> c >> d >> e >> f) {
		double x = (c*e - b*f) / (a*e - b*d);
		double y = (c*d - a*f) / (b*d - a*e);
		printf("%.3f %.3f", x, y);
	}
	
	return 0;
}

Compiler output:
a.cc:5:5: error: cannot declare '::main' to be a global variable
    5 | int main(???
      |     ^~~~
a.cc:5:10: error: expected primary-expression before '?' token
    5 | int main(???
      |          ^
a.cc:5:11: error: expected primary-expression before '?' token
    5 | int main(???
      |           ^
a.cc:5:12: error: expected primary-expression before '?' token
    5 | int main(???
      |            ^
a.cc:6:1: error: expected primary-expression before '{' token
    6 | {
      | ^
a.cc:5:13: error: expected ':' before '{' token
    5 | int main(???
      |             ^
      |             :
    6 | {
      | ~            
a.cc:6:1: error: expected primary-expression before '{' token
    6 | {
      | ^
a.cc:5:13: error: expected ':' before '{' token
    5 | int main(???
      |             ^
      |             :
    6 | {
      | ~            
a.cc:6:1: error: expected primary-expression before '{' token
    6 | {
      | ^
a.cc:5:13: error: expected ':' before '{' token
    5 | int main(???
      |             ^
      |             :
    6 | {
      | ~            
a.cc:6:1: error: expected primary-expression before '{' token
    6 | {
      | ^
Language: C++

#include <iostream>
#include <stdio.h>
#define swap(a,b) {a=a+b; b=a-b; a=a-b;}

void q4() {
	double a, b, c, d, e, f;
	for (;;) {
		cin >> a >> b >> c >> d >> e >> f;
		//scanf_s("%lf %lf %lf %lf %lf %lf\n", &a, &b, &c, &d, &e, &f);

		if (a == 0) {
			swap(a, d);
			swap(b, e);
			swap(c, f);
		}
		b /= a;
		c /= a;
		a = 1;

		e -= b * d;
		f -= c * d;
		d = 0;

		f = f / e;
		e = 1;
		
		c -= f * b;
		b = 0;

		printf("%4lf %4lf\n", c, f);
	}
}

int main() {
	q4();
	return 0;
}

Compiler output:
a.cc: In function 'void q4()':
a.cc:8:17: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    8 |                 cin >> a >> b >> c >> d >> e >> f;
      |                 ^~~
      |                 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
      |                  ^~~
Language: C++

#include <iostream>
#include <stdio.h>
define swap(a,b) {a=a+b; b=a-b; a=a-b;}

using namespace std;

void q4() {
	double a, b, c, d, e, f;
	for (; cin >> a >> b >> c >> d >> e >> f;) {
		//cin >> a >> b >> c >> d >> e >> f;
		//scanf_s("%lf %lf %lf %lf %lf %lf", &a, &b, &c, &d, &e, &f);

		if (a == 0) {
			swap(a, d);
			swap(b, e);
			swap(c, f);
		}
		b /= a;
		c /= a;
		a = 1;

		e -= b * d;
		f -= c * d;
		d = 0;

		f = f / e;
		e = 1;
		
		c -= f * b;
		b = 0;

		printf("%.3f %.3f\n", c, f);
	}
}

int main() {
	q4();
	return 0;
}

Compiler output:
a.cc:3:1: error: 'define' does not name a type
    3 | define swap(a,b) {a=a+b; b=a-b; a=a-b;}
      | ^~~~~~
Language: C++

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

int main() {
	// your code goes here

  int a,b,c,d,e,f;

  while(cin >> a >> b >> c >> d >> e >> f ){

    double x = (c*e-b*f)/(double)(a*e-b*d);
    double y = (c*d-a*f)/(double)(b*d-a*e);

    printf("%.3f  %3f\n",x,y);

  }
	return 0;
}

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

#include <iostream>
#include<cstdio>
using namespace std;
??
int main() {
????????// your code goes here
??
????double a,b,c,d,e,f;
??
????while(cin >> a >> b >> c >> d >> e >> f ){
??
????????double x = (c*e-b*f)/(a*e-b*d);
????????double y = (c-a*x)/b;
????????if(x == -0.0){
????????????x = 0.0;
????????}
????????if(y == 0.0){
????????????y = 0.0;
????????}
??
????????printf("%.3lf %3lf\n",x,y);
??
????}
????????return 0;
}

Compiler output:
a.cc:6:7: warning: trigraph ??/ ignored, use -trigraphs to enable [-Wtrigraphs]
    6 | ????????// your code goes here
a.cc:4:1: error: expected unqualified-id before '?' token
    4 | ??
      | ^
Language: C++

#include <bits/stdc++.h>

using namespace std;

#define Vi vector<int>
#define FOR(i,s,e) for (int i=s; i<e; i++)
#define ITER(v) v.begin(), v.end()

int main() {
    cin.tie(0);
    ios::sync_with_stdio(false);

    int a, b, c, d, e, f;
    double den, x, y;

    while (true) {
        cin >> a >> b >> c >> d >> e >> f;
        if (cin.eof()) { break; }
        den =  a * e - b * d;
        x = static_cast<double>(c * e - b * f) / den;
        y = static_cast<double>(- c * d + a * f) / den;
        // avoid -0.000
        x += 0.0
        y += 0.0
        cout << fixed << setprecision(3) << x << " " << y << endl;
    }

    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:23:17: error: expected ';' before 'y'
   23 |         x += 0.0
      |                 ^
      |                 ;
   24 |         y += 0.0
      |         ~
Language: C++

int main(){
	double a,b,c,d,e,f,x,y;
	while(scanf("%lf%lf%lf%lf%lf%lf",&a,&b,&c,&d,&e,&f)!=EOF){
		y=(((c*d)-(a*f))/((b*d)-(a*e)));
		x=(((c*e)-(b*f))/((a*e)-(b*d)));
		printf("%3lf %3lf\n",x,y);
	}
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:3:15: error: 'scanf' was not declared in this scope
    3 |         while(scanf("%lf%lf%lf%lf%lf%lf",&a,&b,&c,&d,&e,&f)!=EOF){
      |               ^~~~~
a.cc:3:62: error: 'EOF' was not declared in this scope
    3 |         while(scanf("%lf%lf%lf%lf%lf%lf",&a,&b,&c,&d,&e,&f)!=EOF){
      |                                                              ^~~
a.cc:1:1: note: 'EOF' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
  +++ |+#include <cstdio>
    1 | int main(){
a.cc:6:17: error: 'printf' was not declared in this scope
    6 |                 printf("%3lf %3lf\n",x,y);
      |                 ^~~~~~
a.cc:6:17: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
Language: C++

int main()
{
  double a, b, c, d, e, f, x, y;
  while(scanf("%lf%lf%lf%lf%lf%lf", &a, &b, &c, &d, &e, &f) != EOF)
    {
      x = (b*f - c*e) / (b*d - a*e);
      y = (c*d - a*f) / (b*d - a*e);
      if(abs(x) < 0.000001 && x < 0)
	x = 0.0;
      if(abs(y) < 0.000001 && y < 0)
	y = 0.0;
      printf("%.3f %.3f\n", x, y);
    }
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:4:9: error: 'scanf' was not declared in this scope
    4 |   while(scanf("%lf%lf%lf%lf%lf%lf", &a, &b, &c, &d, &e, &f) != EOF)
      |         ^~~~~
a.cc:4:64: error: 'EOF' was not declared in this scope
    4 |   while(scanf("%lf%lf%lf%lf%lf%lf", &a, &b, &c, &d, &e, &f) != EOF)
      |                                                                ^~~
a.cc:1:1: note: 'EOF' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
  +++ |+#include <cstdio>
    1 | int main()
a.cc:8:10: error: 'abs' was not declared in this scope
    8 |       if(abs(x) < 0.000001 && x < 0)
      |          ^~~
a.cc:10:10: error: 'abs' was not declared in this scope
   10 |       if(abs(y) < 0.000001 && y < 0)
      |          ^~~
a.cc:12:7: error: 'printf' was not declared in this scope
   12 |       printf("%.3f %.3f\n", x, y);
      |       ^~~~~~
a.cc:12:7: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
Language: C++


using namespace std;
#define j bai;
int main() {
	double a, b, c, d, e, y, x, f, bai;
	bool bo = false;
	while (cin >> a >> b >> c >> d >> e >> f) {
		if (a ==0 || b ==0) {
			if (a) {
				y = c / b;
				x = f / d - e*y;
			}
			else if (b) {
				x = a / c;
				y = f / e - d*x;
			}
			bo = true;
		}
		else if (d == 0 || e == 0) {
			if (d) {
				y = f / e;
				x = c / a - d*y;
			}
			else if (e) {
				x = f / d;
				y = f / e - d*x;
			}
			bo = true;
		}
		
		else if (a < d) {
			bai = d / a;
			a *= j;
			b *= j;
			c *= j;
		}
		else {
			bai = a / d;
			d *= j;
			e *= j;
			f *= j;
		}
		if (((a > 0 && d < 0) || (a < 0 && d>0)) && bo==false) {
			y = (c + f) / (b + e);
			x = (c - b*y) / a;
		}
		else if (bo == false) {
			y = (c - f) / (b - e);
			x = (c - b*y) / a;
		}
		if (x == -0.000) {
			x = abs(x);
		}
		if (y == -0.000) {
			y = abs(y);
		}
		printf("%.3lf %.3lf\n", x, y);
	}
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:16: error: 'cin' was not declared in this scope
    7 |         while (cin >> a >> b >> c >> d >> e >> f) {
      |                ^~~
a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 | 
a.cc:52:29: error: 'abs' was not declared in this scope
   52 |                         x = abs(x);
      |                             ^~~
a.cc:55:29: error: 'abs' was not declared in this scope
   55 |                         y = abs(y);
      |                             ^~~
a.cc:57:17: error: 'printf' was not declared in this scope
   57 |                 printf("%.3lf %.3lf\n", x, y);
      |                 ^~~~~~
a.cc:1:1: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
  +++ |+#include <cstdio>
    1 |
Language: C++

//
//  main.cpp
//  Sample
//
//  Created by h3037183 on 2017/07/31.
//  Copyright ?? 2017??´ ?°????. All rights reserved.
//

#include <iostream>
#include<cstdio>
#include<algorithm>
using namespace std;
int main(){
    double a,b,c,d,e,f,x,y;
    for(;;){
    cin>>a>>b>>c>>d>>e>>f;
    x=(c*e-b*f)/(a*e-b*d);
    y=(c*d-f*a)/(b*d-a*e);
    printf("%.3lf %.3lf",x,y);
    cout<<endl;
    }
    break
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:22:5: error: break statement not within loop or switch
   22 |     break
      |     ^~~~~
a.cc:22:10: error: expected ';' before 'return'
   22 |     break
      |          ^
      |          ;
   23 |     return 0;
      |     ~~~~~~
Language: C++

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

int main() {
	// your code goes here

  double a,b,c,d,e,f;

  while(cin >> a >> b >> c >> d >> e >> f ){

  double x = (double)((e*c-b*f) / (a*e-b*d));
????double y = (double)((-(d*c)+a*f) / (a*e-b*d));
  if(y == 0){
    y = 0;
  }

    
   if(x == 0){
    x = 0;
  }

    printf("%.3lf %3lf\n",x,y);

  }
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:1: error: expected primary-expression before '?' token
   13 | ????double y = (double)((-(d*c)+a*f) / (a*e-b*d));
      | ^
a.cc:13:2: error: expected primary-expression before '?' token
   13 | ????double y = (double)((-(d*c)+a*f) / (a*e-b*d));
      |  ^
a.cc:13:3: error: expected primary-expression before '?' token
   13 | ????double y = (double)((-(d*c)+a*f) / (a*e-b*d));
      |   ^
a.cc:13:4: error: expected primary-expression before '?' token
   13 | ????double y = (double)((-(d*c)+a*f) / (a*e-b*d));
      |    ^
a.cc:13:5: error: expected primary-expression before 'double'
   13 | ????double y = (double)((-(d*c)+a*f) / (a*e-b*d));
      |     ^~~~~~
a.cc:13:5: error: expected ':' before 'double'
   13 | ????double y = (double)((-(d*c)+a*f) / (a*e-b*d));
      |     ^~~~~~
      |     :
a.cc:13:5: error: expected primary-expression before 'double'
   13 | ????double y = (double)((-(d*c)+a*f) / (a*e-b*d));
      |     ^~~~~~
a.cc:13:5: error: expected ':' before 'double'
   13 | ????double y = (double)((-(d*c)+a*f) / (a*e-b*d));
      |     ^~~~~~
      |     :
a.cc:13:5: error: expected primary-expression before 'double'
   13 | ????double y = (double)((-(d*c)+a*f) / (a*e-b*d));
      |     ^~~~~~
a.cc:13:5: error: expected ':' before 'double'
   13 | ????double y = (double)((-(d*c)+a*f) / (a*e-b*d));
      |     ^~~~~~
      |     :
a.cc:13:5: error: expected primary-expression before 'double'
   13 | ????double y = (double)((-(d*c)+a*f) / (a*e-b*d));
      |     ^~~~~~
a.cc:13:5: error: expected ':' before 'double'
   13 | ????double y = (double)((-(d*c)+a*f) / (a*e-b*d));
      |     ^~~~~~
      |     :
a.cc:13:5: error: expected primary-expression before 'double'
   13 | ????double y = (double)((-(d*c)+a*f) / (a*e-b*d));
      |     ^~~~~~
a.cc:14:6: error: 'y' was not declared in this scope
   14 |   if(y == 0){
      |      ^
a.cc:23:29: error: 'y' was not declared in this scope
   23 |     printf("%.3lf %3lf\n",x,y);
      |                             ^
Language: C++

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

int main() {
	// your code goes here

  double a,b,c,d,e,f;
  double x,y

  while(cin >> a >> b >> c >> d >> e >> f ){

    x =(double)((e*c-b*f)/(a*e-b*d));
    y = (double)((-(d*c)+a*f)/(a*e-b*d));
    if(y == 0){
      y = 0;
    }


    if(x == 0){
      x = 0;
    }

    printf("%.3f %3f\n",x,y);
  }
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:3: error: expected initializer before 'while'
   11 |   while(cin >> a >> b >> c >> d >> e >> f ){
      |   ^~~~~
Language: C++

#include<stdio.h>
int main(){
	double a,b,c,d,e,f,x,y,;
	while(scanf("%lf%lf%lf%lf%lf%lf",&a,&b,&c,&d,&e,&f)){
		x=((c*e-f*b)/(a*e-d*b));
		y=((c-a*x)/b);
		if(x>0)x+=0.0005;
		else x-=0.0005;
		if(y>0)x+=0.0005;
		else y=-=0.0005;
		printf("%.3ld %.3ld",x,y);
	}
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:3:32: error: expected unqualified-id before ';' token
    3 |         double a,b,c,d,e,f,x,y,;
      |                                ^
a.cc:10:24: error: expected primary-expression before '-=' token
   10 |                 else y=-=0.0005;
      |                        ^~
Language: C++

#include<stdio.h>
int main(){
	double a,b,c,d,e,f;
	while(scanf("%lf%lf%lf%lf%lf%lf",&a,&b,&c,&d,&e,&f)!=-1){
		printf("%.3lf %.3lf\n",(c*e-f*b)==0?0:(c*e-f*b)/(a*e-d*b),(c*d-a*f)==0?0:(cd-a*f)/(bd-ae));
	}
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:91: error: 'cd' was not declared in this scope; did you mean 'd'?
    5 |                 printf("%.3lf %.3lf\n",(c*e-f*b)==0?0:(c*e-f*b)/(a*e-d*b),(c*d-a*f)==0?0:(cd-a*f)/(bd-ae));
      |                                                                                           ^~
      |                                                                                           d
a.cc:5:100: error: 'bd' was not declared in this scope; did you mean 'd'?
    5 |                 printf("%.3lf %.3lf\n",(c*e-f*b)==0?0:(c*e-f*b)/(a*e-d*b),(c*d-a*f)==0?0:(cd-a*f)/(bd-ae));
      |                                                                                                    ^~
      |                                                                                                    d
a.cc:5:103: error: 'ae' was not declared in this scope; did you mean 'e'?
    5 |                 printf("%.3lf %.3lf\n",(c*e-f*b)==0?0:(c*e-f*b)/(a*e-d*b),(c*d-a*f)==0?0:(cd-a*f)/(bd-ae));
      |                                                                                                       ^~
      |                                                                                                       e
Language: C++

#include<stdio.h>
int main(){
	double a,b,c,d,e,f;
	double x,y,z,v;
	while(scanf("%lf %lf %lf %lf %lf %lf",&a,&b,&c,&d,&e,&f)!=-1)
	x=(c*e-b*f)/(a*e-b*d);
	y=(c*d-a*f)/(b*d-a*e);
	if(x>=-0.0005&&x<0.0005)	x=0;
	if(y>=-0.0005&&y<0.0005)	y=0;
	printf("%.3lf %.3lf\n",x,y);
}
}

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

#include <iostream>
#include <iomanip>
using namespace std;
constexpr double eps = 1e-8;

int main() {
  double a, b, c, d, e, f, x, y;
  while (cin >> a >> b >> c >> d >> e >> f) {
    x = (c * e - b * f) / (a * e - b * d);
    y = (c - a * x) / b;
    if (fabs(x) < eps) x = 0;
    if (fabs(y) < eps) y = 0;
    cout << fixed << setprecision(3) << x << " " << y << endl;
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:9: error: 'fabs' was not declared in this scope; did you mean 'labs'?
   11 |     if (fabs(x) < eps) x = 0;
      |         ^~~~
      |         labs
a.cc:12:9: error: 'fabs' was not declared in this scope; did you mean 'labs'?
   12 |     if (fabs(y) < eps) y = 0;
      |         ^~~~
      |         labs
Language: C++

#include<iostream>
using namespace std;

void main(){
	int a,b,c,d,e,f;
	
	cout<<"ax+by=c"<<endl<<"dx+ef=f"<<endl;
	cout<<"		????§£???x,y??????????????????"<<endl;
	
	cout<<"a b c d e f >>>>";
	cin>>a>>b>>c>>d>>e>>f;
	
	cout<<"x="<<(e*c-b*f)/(a*e-b*d)
		<<"y="<<(-c*d+a*f)/(a*e-b*d)<<endl;
}
	

Compiler output:
a.cc:4:1: error: '::main' must return 'int'
    4 | void main(){
      | ^~~~
Language: C++

#include<iostream>
#include<iomanip>

double shisyagonyu(double x
  if(x>0){
    x += 0.0005;
  }
  if(x<0){
    x -= 0.0005;
  }
  return x;
}

int main(){
  double a,b,c,d,e,f,x,y;

  while(std::cin >>a>>b>>c>>d>>e>>f){

    /*x = (c*e-b*f)/(a*e-b*d);
    y = (a*f-c*d)/(a*e-b*d);

    std::cout << x;
    std::cout << " " << y << std::endl;
*/
    x = shisyagonyu((c*e-b*f)/(a*e-b*d));
    y = shisyagonyu((a*f-c*d)/(a*e-b*d));

    std::cout << std::fixed;
    std::cout << std::setprecision(3) << x;
    std::cout << " " << y << std::endl;

  }
}

Compiler output:
a.cc:5:3: error: expected ',' or '...' before 'if'
    5 |   if(x>0){
      |   ^~
a.cc:11:11: error: expected ')' before ';' token
   11 |   return x;
      |           ^
      |           )
a.cc:4:19: note: to match this '('
    4 | double shisyagonyu(double x
      |                   ^
a.cc:12:1: error: expected declaration before '}' token
   12 | }
      | ^
Language: C++

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

double a, b, c, d, e, f;

double x(double, double, double, double, double, double) {

	return (c*e - b*f) / (a*e - b*d);
}

double y(double, double, double, double, double, double) {

	return (a*f - c*d) / (a*e - b*d);
}

double round(double dat, int keta){
	int fct;

	fct = (int)pow(10, keta - 1);
	dat *= fct;
	dat += (dat < 0) ? -0.5 : 0.5;
	dat = (int)(dat);
	dat /= fct;
	return dat;
}

int main()
{
	double x1, x2, y1, y2;
	cin >> a >> b >> c >> d >> e >> f;

	x1 = x(a, b, c, d, e, f);
	y1 = y(a, b, c, d, e, f);

	cin >> a >> b >> c >> d >> e >> f;

	x2 = x(a, b, c, d, e, f);
	y2 = y(a, b, c, d, e, f);

	cout << fixed << setprecision(3) << round(x1,3) << " " << round(y1,3) << endl;
	cout << fixed << setprecision(3) << round(x2,3) << " " << round(y2,3) << endl;

	return 0;
}

Compiler output:
a.cc: In function 'double round(double, int)':
a.cc:20:20: error: 'pow' was not declared in this scope
   20 |         fct = (int)pow(10, keta - 1);
      |                    ^~~
Language: C++

#include <iostream>
#include <iomanip>
#include <cmath>

using namespace std;

double a, b, c, d, e, f;


double x(double, double, double, double, double, double) {

	return (c*e - b*f) / (a*e - b*d);
}

double y(double, double, double, double, double, double) {

	return (a*f - c*d) / (a*e - b*d);
}

double round(double dat, int keta ){

	int fct;
	fct =  double pow(10, keta - 1);
	dat *= fct;
	dat += (dat < 0) ? -0.5 : 0.5;
	dat = (int)(dat);
	dat /= fct;
	return dat;
}

int main()
{
	double x1, x2, y1, y2;
	cin >> a >> b >> c >> d >> e >> f;

	x1 = x(a, b, c, d, e, f);
	y1 = y(a, b, c, d, e, f);

	cin >> a >> b >> c >> d >> e >> f;

	x2 = x(a, b, c, d, e, f);
	y2 = y(a, b, c, d, e, f);

	cout << fixed << setprecision(3) << round(x1,3) << " " << round(y1,3) << endl;
	cout << fixed << setprecision(3) << round(x2,3) << " " << round(y2,3) << endl;

	return 0;
}

Compiler output:
a.cc: In function 'double round(double, int)':
a.cc:23:16: error: expected primary-expression before 'double'
   23 |         fct =  double pow(10, keta - 1);
      |                ^~~~~~
Language: C++

#include <iostream>
#include <iomanip>
#include <cmath>

using namespace std;

double a, b, c, d, e, f;


double x(double, double, double, double, double, double) {

	return (c*e - b*f) / (a*e - b*d);
}

double y(double, double, double, double, double, double) {

	return (a*f - c*d) / (a*e - b*d);
}

double round(double dat, int keta ){

	int fct;
	fct =  int pow(10, keta - 1);
	dat *= fct;
	dat += (dat < 0) ? -0.5 : 0.5;
	dat = (int)(dat);
	dat /= fct;
	return dat;
}

int main()
{
	double x1, x2, y1, y2;
	cin >> a >> b >> c >> d >> e >> f;

	x1 = x(a, b, c, d, e, f);
	y1 = y(a, b, c, d, e, f);

	cin >> a >> b >> c >> d >> e >> f;

	x2 = x(a, b, c, d, e, f);
	y2 = y(a, b, c, d, e, f);

	cout << fixed << setprecision(3) << round(x1,3) << " " << round(y1,3) << endl;
	cout << fixed << setprecision(3) << round(x2,3) << " " << round(y2,3) << endl;

	return 0;
}

Compiler output:
a.cc: In function 'double round(double, int)':
a.cc:23:16: error: expected primary-expression before 'int'
   23 |         fct =  int pow(10, keta - 1);
      |                ^~~
Language: C++

#include<iostream>
#include<iomanip>

int main(){
        int a,b,c,d,e,f;
        while(std::cin >> a >> b >> c >> d >> e >> f){
                double x, y;
                int p,q;
                p = a * e - d * b;
                q = c * e - f * b;
                x = q / p;
                y = (c - a * x) / b;
                printf("%.3f %.3f\n",x,y);
        }
        return 0;
}
~
~

Compiler output:
a.cc:18:1: error: expected class-name before '~' token
   18 | ~
      | ^
Language: C++

t = 0
while t == 0:	
	try:
		a,b,e,c,d,f = [int(i) for i in input().split()]
	except:
		break
	else:
		x = (d*e - b*f) / (a*d - b*c) + 0
		y = (a*f - c*e) / (a*d - b*c) + 0
		print("{0:.3f}".format(x) + "{0:.3f}".format(y))

Compiler output:
a.cc:1:1: error: 't' does not name a type
    1 | t = 0
      | ^
Language: C++

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


void main(void) {
	char string[99];
	printf("a,b,c,d,e,f??????????????????????????§??\?????????????????????\n");
	double a=0, b=0, c=0, d=0, e=0, f=0;
	scanf("%lf%lf%lf%lf%lf%lf",&a,&b,&c,&d,&e,&f);
	double x = (f*b - e*c) / (d*b - e*a);
	double y = (f*a - d*c) / (e*a - d*b);
	printf("%f %f\n", x, y);
	return;
}

Compiler output:
a.cc:6:1: error: '::main' must return 'int'
    6 | void main(void) {
      | ^~~~
a.cc: In function 'int main()':
a.cc:14:9: error: return-statement with no value, in function returning 'int' [-fpermissive]
   14 |         return;
      |         ^~~~~~
Language: C++

#include <stdio.h>


void main(void){
	double a=0, b=0, c=0, d=0, e=0, f=0;
	scanf("%lf%lf%lf%lf%lf%lf",&a,&b,&c,&d,&e,&f);
	double x = (f*b - e*c) / (d*b - e*a);
	double y = (f*a - d*c) / (e*a - d*b);
	printf("%f %f\n", x, y);
	return;
}

Compiler output:
a.cc:4:1: error: '::main' must return 'int'
    4 | void main(void){
      | ^~~~
a.cc: In function 'int main()':
a.cc:10:9: error: return-statement with no value, in function returning 'int' [-fpermissive]
   10 |         return;
      |         ^~~~~~