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

#define _CRT_SECURE_NO_WARNINGS
#include <stdio.h>




void main(void) {
	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:7:1: error: '::main' must return 'int'
    7 | 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 <cstdio>
#include <iostream>
double sol[10000][2];
int main()
{
    double a, b, e, c, d, f;
    int i = 0;
    while (std::cin >> a >> b >> e >> c >> d >> f)
    {
        double det = a * d - b * c;
 
        double aa = d / det, bb = -b / det, cc = -c / det, dd = a / det;
        sol[i][0] = aa * e + bb * f;
        sol[i][1] = cc * e + dd * f;
 
        i++;
    }
    for (int j = 0; j < i; j++)
        printf("%.3f %.3f\n", sol[j][0], sol[j][1]);
    return 0;

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

#include<iostream>
#include<algorithm>
#include<stdio.h>
using namespace std;
int main(){
	int a,b,c,d,e,f;
	int o,p,q,r,s,t;
	float x,y;
	for(scanf("%d%d%d%d%d%d",&a,&b,&c,&d,&e,&f)!=EOF){
		o=a;p=b;q=c;r=d;s=e;t=f;
		o*=d;p*=d;q*=d;
		r*=a;s*=a;t*=a;
		//printf("%d %d %d %d %d %d \n",o,p,q,r,s,t);
		p-=s;
		q-=t;
		y=(float)(q/p);
		int g=(int)(e*y);
		g*=-1;
		x=(float)((f+g)/d);
		printf("%.3f %.3f",x,y);
	}
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:57: error: expected ';' before ')' token
    9 |         for(scanf("%d%d%d%d%d%d",&a,&b,&c,&d,&e,&f)!=EOF){
      |                                                         ^
a.cc:22:1: error: expected primary-expression before '}' token
   22 | }
      | ^
a.cc:21:10: error: expected ';' before '}' token
   21 |         }
      |          ^
      |          ;
   22 | }
      | ~         
a.cc:22:1: error: expected primary-expression before '}' token
   22 | }
      | ^
a.cc:21:10: error: expected ')' before '}' token
   21 |         }
      |          ^
      |          )
   22 | }
      | ~         
a.cc:9:12: note: to match this '('
    9 |         for(scanf("%d%d%d%d%d%d",&a,&b,&c,&d,&e,&f)!=EOF){
      |            ^
a.cc:22:1: error: expected primary-expression before '}' token
   22 | }
      | ^
Language: C++

#include<iostream>
#include<iomanip>
#include<vector>
#include<map>
#include<string>
using namespace std;

/*
??£???????¨????
	ax + by = c
	dx + ey = f
????§£x, y???????????????????????°??????
*/
int main() {
	double a, b, c, d, e, f;
	int cnt = 0;						//??\??????????????£???????¨????????????°
	std::vector<double> x_vector;		//x????§£???????´?
	std::vector<double> y_vector;		//y????§£???????´?

#if 0
	while (cnt < 2) {
		cin >> a >> b >> c >> d >> e >> f;
#else
	while (cin >> a >> b >> c >> d >> e >> f) {
#endif
		double x = (b * f - c * e) / (b * d - a * e);
		double y = (c * d - a * f) / (b * d - a * e);

		cnt++;
		x_vector.push_back(x);
		y_vector.push_back(y);
	}

	for (unsigned int i = 0; i < cnt; i++) {
		double x_result = round(x_vector[i] * 1000) / 1000;
		double y_result = round(y_vector[i] * 1000) / 1000;

		std::cout << std::fixed;
		std::cout << std::setprecision(3) << x_result << " ";
		std::cout << std::setprecision(3) << y_result << endl;
	}

	//???????????°
	//while (1);

	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:35:35: error: 'round' was not declared in this scope
   35 |                 double x_result = round(x_vector[i] * 1000) / 1000;
      |                                   ^~~~~
Language: C++

#include<iostream>
#include<iomanip>
#include<vector>
#include<map>
#include<string>
using namespace std;

/*
??£???????¨????
	ax + by = c
	dx + ey = f
????§£x, y???????????????????????°??????
*/
int main() {
	double a, b, c, d, e, f;
	int cnt = 0;						//??\??????????????£???????¨????????????°
	std::vector<double> x_vector;		//x????§£???????´?
	std::vector<double> y_vector;		//y????§£???????´?

#if 0
	while (cnt < 2) {
		cin >> a >> b >> c >> d >> e >> f;
#else
	while (cin >> a >> b >> c >> d >> e >> f) {
#endif
		double x = (b * f - c * e) / (b * d - a * e);
		double y = (c * d - a * f) / (b * d - a * e);

		cnt++;
		x_vector.push_back(x);
		y_vector.push_back(y);
	}

	for (unsigned int i = 0; i < cnt; i++) {
		double x_result = std::round(x_vector[i] * 1000) / 1000;
		double y_result = std::round(y_vector[i] * 1000) / 1000;

		std::cout << std::fixed;
		std::cout << std::setprecision(3) << x_result << " ";
		std::cout << std::setprecision(3) << y_result << endl;
	}

	//???????????°
	//while (1);

	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:35:40: error: 'round' is not a member of 'std'
   35 |                 double x_result = std::round(x_vector[i] * 1000) / 1000;
      |                                        ^~~~~
a.cc:36:40: error: 'round' is not a member of 'std'
   36 |                 double y_result = std::round(y_vector[i] * 1000) / 1000;
      |                                        ^~~~~
Language: C++

while(True):
	try:
		a,b,c,d,e,f = map(float,input().split(" "))
		z = a*e - b*d
		if(z!=0):
			x = (c*e-b*f)/z
			y = (a*f-c*d)/z
		print("{:.3f} {:.3f}".format(x+0,y+0))
	except:
		break

Compiler output:
a.cc:1:1: error: expected unqualified-id before 'while'
    1 | while(True):
      | ^~~~~
Language: C++

#include <bits/stdc++.h>
// #include "bits/stdc++.h"

#define pout(n)  printf ("%d\n", n)

#define rep(i,a,n) for (int i = a;i < n;i++)
#define per(i,n,a) for (int i = n-1;i >= a;i--)

const int d4x[4] = {1, 0, -1, 0};
const int d4y[4] = {0, 1, 0, -1};
const int d8x[8] = { 1,1,0,-1,-1,-1,0,1 };
const int d8y[8] = { 0,1,1,1,0,-1,-1,-1 };
 
typedef long long ll;
using namespace std;
 
int main() {
  double a,b,c,d,e,f,x,y;

  while(cin >> a >> b >> c >> d >> e >> f;){
    y = (c*d-a*f)/(b*d-a*e);
    x = (c-b*y)/a;
  }
  

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


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

#include <iostream>
#include <cstdio>
using namespace std;
void calc(double x1, double y1, double a, double x2, double y2, double b)
{
	double d1 = x2;
	double d2 = x1;
	double xx1 = d1 * x1;
	double xy1 = d1 * y1;
	double a1 = d1 * a;
	double xx2 = d2 * x2;
	double xy2 = d2 * y2;
	double b1 = d2 * b;
	double y = xy1 - xy2;
	double c = a1 - b1;
	y = c / y;


	d1 = y2;
	d2 = y1;
	xx1 = d1 * x1;
	xy1 = d1 * y1;
	a1 = d1 * a;
	xx2 = d2 * x2;
	xy2 = d2 * y2;
	b1 = d2 * b;
	double x = xx1 - xx2;
	c = a1 - b1;
	x = c / x;
	if (x == 0)
	{
		x = 0;
	}
	if (y == 0)
	{
		y = 0;
	}
	printf("%.3lf %.3lf\n", x, y);
}
int main()
{
	double x1, y1, a, x2, y2, b;

	while(scanf_s("%d %d %d %d %d %d", &x1, &y1, &a, &x2, &y2, &y2 , &b) != EOF)
	{
		calc(x1, y1, a, x2, y2, b);
	}

		
	return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:44:15: error: 'scanf_s' was not declared in this scope; did you mean 'scanf'?
   44 |         while(scanf_s("%d %d %d %d %d %d", &x1, &y1, &a, &x2, &y2, &y2 , &b) != EOF)
      |               ^~~~~~~
      |               scanf
Language: C++

#include <iostream>
#include <cstdio>
using namespace std;
void calc(double x1, double y1, double a, double x2, double y2, double b)
{
	double d1 = x2;
	double d2 = x1;
	double xx1 = d1 * x1;
	double xy1 = d1 * y1;
	double a1 = d1 * a;
	double xx2 = d2 * x2;
	double xy2 = d2 * y2;
	double b1 = d2 * b;
	double y = xy1 - xy2;
	double c = a1 - b1;
	y = c / y;


	d1 = y2;
	d2 = y1;
	xx1 = d1 * x1;
	xy1 = d1 * y1;
	a1 = d1 * a;
	xx2 = d2 * x2;
	xy2 = d2 * y2;
	b1 = d2 * b;
	double x = xx1 - xx2;
	c = a1 - b1;
	x = c / x;
	if (x == 0)
	{
		x = 0;
	}
	if (y == 0)
	{
		y = 0;
	}
	printf("%.3lf %.3lf\n", x, y);
}
int main()
{
	int x1, y1, a, x2, y2, b;

	while(scanf_s("%d %d %d %d %d %d", &x1, &y1, &a, &x2, &y2, &b) != EOF)
	{
		calc(x1, y1, a, x2, y2, b);
	}

		
	return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:44:15: error: 'scanf_s' was not declared in this scope; did you mean 'scanf'?
   44 |         while(scanf_s("%d %d %d %d %d %d", &x1, &y1, &a, &x2, &y2, &b) != EOF)
      |               ^~~~~~~
      |               scanf
Language: C++

#include <iostream>
#include <cstdio>
using namespace std;
void calc(double x1, double y1, double a, double x2, double y2, double b)
{
	double d1 = x2;
	double d2 = x1;
	double xx1 = d1 * x1;
	double xy1 = d1 * y1;
	double a1 = d1 * a;
	double xx2 = d2 * x2;
	double xy2 = d2 * y2;
	double b1 = d2 * b;
	double y = xy1 - xy2;
	double c = a1 - b1;
	y = c / y;


	d1 = y2;
	d2 = y1;
	xx1 = d1 * x1;
	xy1 = d1 * y1;
	a1 = d1 * a;
	xx2 = d2 * x2;
	xy2 = d2 * y2;
	b1 = d2 * b;
	double x = xx1 - xx2;
	c = a1 - b1;
	x = c / x;
	if (x == 0)
	{
		x = 0;
	}
	if (y == 0)
	{
		y = 0;
	}
	printf("%.3lf %.3lf\n", x, y);
}
int main(int argc, char const *argv[])
{
	int x1, y1, a, x2, y2, b;

	while(scanf_s("%d %d %d %d %d %d", &x1, &y1, &a, &x2, &y2, &b) != EOF)
	{
		calc(x1, y1, a, x2, y2, b);
	}

		
	return 0;
}


Compiler output:
a.cc: In function 'int main(int, const char**)':
a.cc:44:15: error: 'scanf_s' was not declared in this scope; did you mean 'scanf'?
   44 |         while(scanf_s("%d %d %d %d %d %d", &x1, &y1, &a, &x2, &y2, &b) != EOF)
      |               ^~~~~~~
      |               scanf
Language: C++

#include <cstdio>
void calc(int x1, int y1, int a, int x2, int y2, int b)
{
	double d1 = x2;
	double d2 = x1;
	double xx1 = d1 * x1;
	double xy1 = d1 * y1;
	double a1 = d1 * a;
	double xx2 = d2 * x2;
	double xy2 = d2 * y2;
	double b1 = d2 * b;
	double y = xy1 - xy2;
	double c = a1 - b1;
	y = c / y;


	d1 = y2;
	d2 = y1;
	xx1 = d1 * x1;
	xy1 = d1 * y1;
	a1 = d1 * a;
	xx2 = d2 * x2;
	xy2 = d2 * y2;
	b1 = d2 * b;
	double x = xx1 - xx2;
	c = a1 - b1;
	x = c / x;
	if (x == 0)
	{
		x = 0;
	}
	if (y == 0)
	{
		y = 0;
	}
	printf("%.3lf %.3lf\n", x, y);
}
int main(int argc, char const *argv[])
{
	int x1, y1, a, x2, y2, b;

	while(scanf_s("%d %d %d %d %d %d", &x1, &y1, &a, &x2, &y2, &b) != EOF)
	{
		calc(x1, y1, a, x2, y2, b);
	}

		
	return 0;
}


Compiler output:
a.cc: In function 'int main(int, const char**)':
a.cc:42:15: error: 'scanf_s' was not declared in this scope; did you mean 'scanf'?
   42 |         while(scanf_s("%d %d %d %d %d %d", &x1, &y1, &a, &x2, &y2, &b) != EOF)
      |               ^~~~~~~
      |               scanf
Language: C++

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

using namespace std;

using DataSet = vector<double>;


void readInputData(vector<string>& input_data){
    string buff;
    while(getline(cin, buff)){
        input_data.push_back(buff);
    }
}

void _parseString(const string& input_data, DataSet& data_set) {
    data_set.resize(6);

    stringstream ss;
    ss << input_data;
    ss >> data_set[0] >> data_set[1] >> data_set[2]
        >> data_set[3] >> data_set[4] >> data_set[5];
}

void parseString(const vector<string>& input_data, vector<DataSet>& data_set) {
    data_set.resize(input_data.size());
    for(int i = 0; i < input_data.size(); ++i) {
        DataSet buff;
        _parseString(input_data[i], buff);
        data_set[i] = buff;
    }
}

double determinant2d(const DataSet& data){
    return data[0] * data[4] - data[1] * data[3];
}

void inverse2d(DataSet& data){
    double t = data[0];
    data[0] = data[4];
    data[4] = t;

    data[1] = -data[1];
    data[3] = -data[3];
}


void calculateXY(const DataSet& data, double det, vector<double>& result){
    result.resize(2);

    result[0] = (data[0] * data[2] + data[1] * data[5]) / det;
    result[1] = (data[3] * data[2] + data[4] * data[5]) / det;
}

void solve(vector<DataSet>& data_set){
    cout << fixed;
    cout << setprecision(3);

    for(int i = 0; i < data_set.size(); ++i){
        vector<double> buff;

        double det = determinant2d(data_set[i]);

        inverse2d(data_set[i]);

        calculateXY(data_set[i], det, buff);

        cout << buff[0] << " " << buff[1] << endl;
    }
}




void doAllProcess(){
    vector<string> input_data;
    readInputData(input_data);

    vector<DataSet> data_set;
    parseString(input_data, data_set);

    solve(data_set);
}


}

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



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

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

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

	return 0;
}



Compiler output:
a.cc: In function 'int main()':
a.cc:11:20: error: redeclaration of 'double y'
   11 |             double y = (c*d - a * f) / (b*d - a * e);
      |                    ^
a.cc:10:24: note: 'double y' previously declared here
   10 |                 double y = (a * f - c * d) / (a * e - b * d);
      |                        ^
a.cc:12:53: error: 'x' was not declared in this scope
   12 |                 cout << fixed << setprecision(3) << x << " " << y << endl;
      |                                                     ^
Language: C++

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

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

	return 0;
}



Compiler output:
a.cc:11:12: error: extended character 　 is not valid in an identifier
   11 |            　　 double y = (c*d - a * f) / (b*d - a * e);
      |            ^
a.cc:11:12: error: extended character 　 is not valid in an identifier
a.cc: In function 'int main()':
a.cc:11:12: error: '\U00003000\U00003000' was not declared in this scope
   11 |            　　 double y = (c*d - a * f) / (b*d - a * e);
      |            ^~~~
a.cc:12:53: error: 'x' was not declared in this scope
   12 |                 cout << fixed << setprecision(3) << x << " " << y << endl;
      |                                                     ^
Language: C++

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

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

	return 0;
}



Compiler output:
a.cc: In function 'int main()':
a.cc:11:16: error: redeclaration of 'double y'
   11 |         double y = (c*d - a * f) / (b*d - a * e);
      |                ^
a.cc:10:16: note: 'double y' previously declared here
   10 |         double y = (a * f - c * d) / (a * e - b * d);
      |                ^
a.cc:12:45: error: 'x' was not declared in this scope
   12 |         cout << fixed << setprecision(3) << x << " " << y << endl;
      |                                             ^
Language: C++

#include <stdio.h>
#include <vector>
#include <utility>
#include <algorithm>
#include <iostream>
using namespace std;
#define rep(i,n) for(int i=0;i<n;++i)
#define ld long double
ld a,b,c,d,e,f,x,y;
ld shish(ld a)
{
a*=1000;
a+=0.5;
a=int(a);
a/=1000;
}
int main(){
  while(cin>>a>>b>>c>>d>>e>>f){
    y=(a*f-c*d)/(ld)(a*e-b*d);
    x=(c*e-f*b)/(ld)(a*e-b*d);
    x=shish(x);
    y=sihsh(y);
    printf("%.3f "  , x); printf("%.3f"  , y); 
    cout<<endl;
  }
}


Compiler output:
a.cc: In function 'long double shish(long double)':
a.cc:16:1: warning: no return statement in function returning non-void [-Wreturn-type]
   16 | }
      | ^
a.cc: In function 'int main()':
a.cc:22:7: error: 'sihsh' was not declared in this scope; did you mean 'shish'?
   22 |     y=sihsh(y);
      |       ^~~~~
      |       shish
Language: C++

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

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


Compiler output:
a.cc:6:9: error: expected initializer before 'double'
    6 |         double a, b, c, d, e, f;
      |         ^~~~~~
a.cc:7:9: error: expected unqualified-id before 'while'
    7 |         while (cin >> a >> b >> c >> d >> e >> f) {
      |         ^~~~~
a.cc:12:9: error: expected unqualified-id before 'return'
   12 |         return 0;
      |         ^~~~~~
a.cc:13:1: error: expected declaration before '}' token
   13 | }
      | ^
Language: C++

using namespace std;
int main(){
    int a,b,c,d,e,f;
    double x,y;
    while(cin>>a>>b>>c>>d>>e>>f){
        if(x != 0) x=(b*f-c*e)/(b*d-a*e);
        else x=0;
        
        if(y != 0)y = (a*f-c*d)/(a*e-b*d);
        else y = 0;
        
        cout<<fixed<<setprecision(3)<<x<<' '<<y<<endl;
    }
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:5:11: error: 'cin' was not declared in this scope
    5 |     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 | using namespace std;
a.cc:12:9: error: 'cout' was not declared in this scope
   12 |         cout<<fixed<<setprecision(3)<<x<<' '<<y<<endl;
      |         ^~~~
a.cc:12:9: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:12:15: error: 'fixed' was not declared in this scope
   12 |         cout<<fixed<<setprecision(3)<<x<<' '<<y<<endl;
      |               ^~~~~
a.cc:1:1: note: 'std::fixed' is defined in header '<ios>'; this is probably fixable by adding '#include <ios>'
  +++ |+#include <ios>
    1 | using namespace std;
a.cc:12:22: error: 'setprecision' was not declared in this scope
   12 |         cout<<fixed<<setprecision(3)<<x<<' '<<y<<endl;
      |                      ^~~~~~~~~~~~
a.cc:1:1: note: 'std::setprecision' is defined in header '<iomanip>'; this is probably fixable by adding '#include <iomanip>'
  +++ |+#include <iomanip>
    1 | using namespace std;
a.cc:12:50: error: 'endl' was not declared in this scope
   12 |         cout<<fixed<<setprecision(3)<<x<<' '<<y<<endl;
      |                                                  ^~~~
a.cc:1:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
  +++ |+#include <ostream>
    1 | using namespace std;
Language: C++

#include<stdio.h>
int main(void){

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

	while(scanf("%lf %lf %lf %lf %lf %lf", &a, &b, &c, &d, &e, &f) != EOF){
		 
	 
	 if ( (a >= 0 && d < =0)|| (a >= 0 && d >= 0)) {
		A = c*d - f*a;
		B = b*d - e*a;
        y = A / B;
    }
    
    else if ((a < 0 && d > 0) || (a < 0 && d < 0)) {
		A = c*d + f*a;
		B = b*d + e*a;
        y = A / B;
    }


    x = (c - y * b) / a;
	printf("%.3f %.3f\n" ,x , y);
	}
	return 0;

}


Compiler output:
a.cc: In function 'int main()':
a.cc:11:30: error: expected primary-expression before '=' token
   11 |          if ( (a >= 0 && d < =0)|| (a >= 0 && d >= 0)) {
      |                              ^
Language: C++

#include<stdio.h>
int main(void){

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

	while(scanf("%lf %lf %lf %lf %lf %lf", &a, &b, &c, &d, &e, &f) != EOF){
		 
	 
	 if ( (a >= 0 && d <=　0)|| (a >= 0 && d >= 0)) {
		A = c*d - f*a;
		B = b*d - e*a;
        y = A / B;
    }
    
    else if ((a < 0 && d > 0) || (a < 0 && d < 0)) {
		A = c*d + f*a;
		B = b*d + e*a;
        y = A / B;
    }


    x = (c - y * b) / a;
	printf("%.3f %.3f\n" ,x , y);
	}
	return 0;

}


Compiler output:
a.cc:11:30: error: extended character 　 is not valid in an identifier
   11 |          if ( (a >= 0 && d <=　0)|| (a >= 0 && d >= 0)) {
      |                              ^
a.cc: In function 'int main()':
a.cc:11:30: error: '\U000030000' was not declared in this scope
   11 |          if ( (a >= 0 && d <=　0)|| (a >= 0 && d >= 0)) {
      |                              ^~~
Language: C++

#include<stdio.h>
int main(void){

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

	while(scanf("%lf %lf %lf %lf %lf %lf", &a, &b, &c, &d, &e, &f) != EOF){
		 
	 
	 if ( (a > 0 && d <　0)|| (a > 0 && d > 0)) {
		A = c*d - f*a;
		B = b*d - e*a;
        y = A / B;
    }
    
    else if ((a <= 0 && d >= 0) || (a <= 0 && d <= 0)) {
		A = c*d + f*a;
		B = b*d + e*a;
        y = A / B;
    }


    x = (c - y * b) / a;
	printf("%.3f %.3f\n" ,x , y);
	}
	return 0;

}


Compiler output:
a.cc:11:28: error: extended character 　 is not valid in an identifier
   11 |          if ( (a > 0 && d <　0)|| (a > 0 && d > 0)) {
      |                            ^
a.cc: In function 'int main()':
a.cc:11:28: error: '\U000030000' was not declared in this scope
   11 |          if ( (a > 0 && d <　0)|| (a > 0 && d > 0)) {
      |                            ^~~
Language: C++

#include<stdio.h>
int main(void){

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

	while(scanf("%lf %lf %lf %lf %lf %lf", &a, &b, &c, &d, &e, &f) != EOF){
		 
	 
	 if ( (a > 0 && d <　0)|| (a > 0 && d > 0)) {
		A = c*d - f*a;
		B = b*d - e*a;
        y = A / B;
    }
    
    else {
		A = c*d + f*a;
		B = b*d + e*a;
        y = A / B;
    }


    x = (c - y * b) / a;
	printf("%.3f %.3f\n" ,x , y);
	}
	return 0;

}


Compiler output:
a.cc:11:28: error: extended character 　 is not valid in an identifier
   11 |          if ( (a > 0 && d <　0)|| (a > 0 && d > 0)) {
      |                            ^
a.cc: In function 'int main()':
a.cc:11:28: error: '\U000030000' was not declared in this scope
   11 |          if ( (a > 0 && d <　0)|| (a > 0 && d > 0)) {
      |                            ^~~
Language: C++

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

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



Compiler output:
a.cc: In function 'int main()':
a.cc:9:24: error: 'e0d' was not declared in this scope
    9 |     x = (c*e-b*f) / (a*e0d*b);
      |                        ^~~
Language: C++


def ans(a, b, c, d, e, f):
    x = ((e*c - b*f)/(a*e-b*d))
    y = ((-d*x + f)/e)
    x = "%.3f" % x
    y = "%.3f" % y
    return x, y


sets = []

while True:
    try:
        line = list(map(int, input().split()))
        if(line[0] == " "):
            break;
        else:
            sets.append(line)
    except IndexError:
        break

for i in sets:
    x, y = ans(i[0],i[1],i[2],i[3],i[4],i[5])
    print(x, y)


Compiler output:
a.cc:2:1: error: 'def' does not name a type
    2 | def ans(a, b, c, d, e, f):
      | ^~~
a.cc:17:9: error: expected unqualified-id before 'else'
   17 |         else:
      |         ^~~~
Language: C++

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

int main(){
	double a, b, c, d, e, f;
	cin >> a >> b >> c >> d >> e >> f;
	double x, y;
	y = (a * f - d * c) / (a * e - d * b);
	x = (c - b * y) / a

	//小数点以下４桁で四捨五入して表示
	cout << fixed << setprecision(3) << x << " " << y << endl;

	return 0;
}



Compiler output:
a.cc: In function 'int main()':
a.cc:9:28: error: expected ';' before 'cout'
    9 |         x = (c - b * y) / a
      |                            ^
      |                            ;
......
   12 |         cout << fixed << setprecision(3) << x << " " << y << endl;
      |         ~~~~
Language: C++

import java.io.IOException;
import java.io.InputStream;
import java.util.NoSuchElementException;
 
public class Main {
    private static FastScanner sc = new FastScanner();
 
    public static void main(String[] args) {
         double a = sc.nextDouble();
	double b = sc.nextDouble();
	double c = sc.nextDouble();
	double d = sc.nextDouble();
	double e = sc.nextDouble();
	double f = sc.nextDouble();
	
	if(d != 0) {
		d = d * (a/d);
		e = e * (a/d);
		f = f * (a/d);
		double y = (c-f) / (b-e);
		double x = (e/d) * y - (f/d);
	} else {
		a = a * (d/a);
		b = b * (d/a);
		c = c * (d/a);
		double y = (c-f) / (b-e);
		double x = (b/a) * y - (c/a);	
	}
	
	System.out.println(x + " " + y);

	
	
    }
     
    static class FastScanner {
        private final InputStream in = System.in;
        private final byte[] buffer = new byte[1024];
        private int ptr = 0;
        private int buflen = 0;
        private boolean hasNextByte() {
            if(ptr < buflen) {
                return true;
            } else {
                ptr = 0;
                try {
                    buflen = in.read(buffer);
                } catch(IOException e) {
                    e.printStackTrace();
                }
                if(buflen <= 0) {
                    return false;
                }
            }
            return true;
        }
        private int readByte() { if (hasNextByte()) return buffer[ptr++]; else return -1;}
        private static boolean isPrintableChar(int c) { return 33 <= c && c <= 126;}
        private void skipUnprintable() { while(hasNextByte() && !isPrintableChar(buffer[ptr])) ptr++;}
        public boolean hasNext() { skipUnprintable(); return hasNextByte();}
        public String next() {
            if (!hasNext()) throw new NoSuchElementException();
            StringBuilder sb = new StringBuilder();
            int b = readByte();
            while(isPrintableChar(b)) {
                sb.appendCodePoint(b);
                b = readByte();
            }
            return sb.toString();
        }
        public long nextLong() {
            return Long.parseLong(next());
        }
        public int nextInt(){
            return Integer.parseInt(next());
        }
        public double nextDouble(){
            return Double.parseDouble(next());
        }
    }
}


Compiler output:
a.cc:1:1: error: 'import' does not name a type
    1 | import java.io.IOException;
      | ^~~~~~
a.cc:1:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:2:1: error: 'import' does not name a type
    2 | import java.io.InputStream;
      | ^~~~~~
a.cc:2:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:3:1: error: 'import' does not name a type
    3 | import java.util.NoSuchElementException;
      | ^~~~~~
a.cc:3:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:5:1: error: expected unqualified-id before 'public'
    5 | public class Main {
      | ^~~~~~
Language: C++

#include<iostream>
using namespace std;

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

	
	while(scanf(%d%d%d%d%d%d,&a,&b,&c,&d,&e,&f) )
	
	{
		double y=(double)(c*d-a*f)/(double)(b*d-a*e);
		if(a!=0)
		
		printf("%.3f %.3f\n",(c-b*y)/a,y);
		else
		printf("%.3f %.3f\n",(f-e*y)/d,y);
	}
}
  
    
    return 0;
    
    }


Compiler output:
a.cc: In function 'int main()':
a.cc:10:21: error: expected primary-expression before '%' token
   10 |         while(scanf(%d%d%d%d%d%d,&a,&b,&c,&d,&e,&f) )
      |                     ^
a.cc: At global scope:
a.cc:23:5: error: expected unqualified-id before 'return'
   23 |     return 0;
      |     ^~~~~~
a.cc:25:5: error: expected declaration before '}' token
   25 |     }
      |     ^
Language: C++

#include<iostream>
using namespace std;

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

	
	while (∼scanf( "%d%d%d%d%d%d" ,&a,&b,&c,&d,&e,&f) )
	
	{
		double y=(double)(c*d-a*f)/(double)(b*d-a*e);
		if(a!=0)
		
		printf("%.3f %.3f\n",(c-b*y)/a,y);
		else
		printf("%.3f %.3f\n",(f-e*y)/d,y);
	}

    return 0;
    
    }


Compiler output:
a.cc:10:16: error: extended character ∼ is not valid in an identifier
   10 |         while (∼scanf( "%d%d%d%d%d%d" ,&a,&b,&c,&d,&e,&f) )
      |                ^
a.cc: In function 'int main()':
a.cc:10:16: error: '\U0000223cscanf' was not declared in this scope; did you mean 'wscanf'?
   10 |         while (∼scanf( "%d%d%d%d%d%d" ,&a,&b,&c,&d,&e,&f) )
      |                ^~~~~~
      |                wscanf
Language: C++

#include <iostream>
#include <cstdlib>

using namespace std;

int main()
{
	double a, b, c, d, e, f;
	while(scanf("%lf%lf%lf%lf%lf%lf", &a, &b, &c, &d, &e, &f) != EOF){
		double ans1 = (e*c-f*b)/(e*a-b*d);
		double ans2 = (d*c-f*a)/(b*d-a*e);
		ans1 = (fabs(ans1) < 1e-15) ? 0.0 : ans1;
		ans2 = (fabs(ans2) < 1e-15) ? 0.0 : ans2;
		printf("%.3lf %.3lf\n", ans1, ans2);
	}
	
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:25: error: 'fabs' was not declared in this scope; did you mean 'labs'?
   12 |                 ans1 = (fabs(ans1) < 1e-15) ? 0.0 : ans1;
      |                         ^~~~
      |                         labs
Language: C++


import java.util.*;
import java.lang.*;
import java.math.*;

public class Main {
	
	Scanner sc = new Scanner(System.in);
	
	void run() {
		
		int a,b,c,d,e,f;
		
		while ( sc.hasNext() ) {
			
			a = sc.nextInt();
			b = sc.nextInt();
			c = sc.nextInt();
			d = sc.nextInt();
			e = sc.nextInt();
			f = sc.nextInt();
			
			System.out.printf( "%.3f %.3f\n",(double)(e*c-b*f)/(a*e-b*d)+0.00005,(double)(a*f-c*d)/(a*e-b*d)+0.00005 );
			
		}
		
	}
	
	public static void main(String[] args) {
		
		new Main().run();
		
	}
}

Compiler output:
a.cc:2:1: error: 'import' does not name a type
    2 | import java.util.*;
      | ^~~~~~
a.cc:2:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:3:1: error: 'import' does not name a type
    3 | import java.lang.*;
      | ^~~~~~
a.cc:3:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:4:1: error: 'import' does not name a type
    4 | import java.math.*;
      | ^~~~~~
a.cc:4:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:6:1: error: expected unqualified-id before 'public'
    6 | public class Main {
      | ^~~~~~
Language: C++

#include<iostream>
#include<iomanip>

double halfadjust(double x){
	int tmp = (x*10000);
	tmp = tmp%10;
	double ans = static_cast<double>(static_cast<int>(x*1000));
	ans = ans/1000;
	if(tmp >= 5)
		ans += 0.001;
	if(tmp <= -5)
		ans -= 0.001;
	return ans;
}

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

void solve(){
	using namespace std;
	double x = (c*e-b*f)/(a*e-b*d);
	double y = (c*d-a*f)/(b*d-a*e);
	cout << setprecision(3) << fixed << halfadjust(x) << ' ';
	cout << halfadjust(y) << endl;
	cout << setprecision(6);
}

int main(){
	using std::cin
	while(cin >> a&& cin >> b&& cin >> c&& cin >> d&& cin >> e&& cin >> f){
		solve();
	}
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:28:23: error: expected ';' before 'while'
   28 |         using std::cin
      |                       ^
      |                       ;
   29 |         while(cin >> a&& cin >> b&& cin >> c&& cin >> d&& cin >> e&& cin >> f){
      |         ~~~~~
Language: C++

#include <iostream>
using namespace std;

int main() {
	float a[6];
	float x,y;
	while(true)
		cin >> a[0];
		cin >> a[1];
		cin >> a[2];
		cin >> a[3];
		cin >> a[4];
		cin >> a[5];
		if(cin.eof())
			break;
			
		x = (a[4]*a[2]-a[1]*a[5])/(a[0]*a[4]-a[1]*a[3]);
		y = (-a[3]*a[2]+a[0]*a[5])/(a[0]*a[4]-a[1]*a[3]);
		
		cout.precision(3);
		cout << x << " " << y << endl;
	}
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:15:25: error: break statement not within loop or switch
   15 |                         break;
      |                         ^~~~~
a.cc: At global scope:
a.cc:23:9: error: expected unqualified-id before 'return'
   23 |         return 0;
      |         ^~~~~~
a.cc:24:1: error: expected declaration before '}' token
   24 | }
      | ^
Language: C++

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

int main(){
	double a[6];
	double x,y;
	while(true){
		cin >> a[0];
		cin >> a[1];
		cin >> a[2];
		cin >> a[3];
		cin >> a[4];
		cin >> a[5];
		if(cin.eof())
			break;
			
		x = (a[4]*a[2]-a[1]*a[5])/(a[0]*a[4]-a[1]*a[3]);
		y = (-a[3]*a[2]+a[0]*a[5])/(a[0]*a[4]-a[1]*a[3]);
		
		cout << setprecission(3) << x << " " <<setprecision(3) << y << endl;
	}
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:21:25: error: 'setprecission' was not declared in this scope
   21 |                 cout << setprecission(3) << x << " " <<setprecision(3) << y << endl;
      |                         ^~~~~~~~~~~~~
Language: C++

#include <iostream>

using namespace std;

/*
aX+bY=c
dX+eY=f
*/

void solve(int a, int b, int c, int d, int e, int f) {
	int x = (f - ec/b) / (d - ec/b);
	int y = (c - ax) / b;
	cout << x << " " << y << endl;
}

int main() {
	int a, b, c, d, e, f;
	while (cin >> a >> b >> c >> d >> e >> f) {
		solve(a,b,c,d,e,f);
	}
	return 0;
}

Compiler output:
a.cc: In function 'void solve(int, int, int, int, int, int)':
a.cc:11:22: error: 'ec' was not declared in this scope; did you mean 'c'?
   11 |         int x = (f - ec/b) / (d - ec/b);
      |                      ^~
      |                      c
a.cc:12:22: error: 'ax' was not declared in this scope; did you mean 'x'?
   12 |         int y = (c - ax) / b;
      |                      ^~
      |                      x
Language: C++

#include <iostream.h>
using namespace std;

int main(){
  int i;
  float x[6];

  while(cin >> x[0]){
    for(i=1; i<6; i++){
      cin >> x[i];
    }

    //normalize
    x[1]/=x[0]; x[2]/=x[1]; x[0]=1;

    //subtraction
    x[4]-=x[3]*x[1]; x[5]-=x[3]*x[2]; x[3]=0;

    //normalize
    x[5]/=x[4]; x[4]=1;

    //subtraction
    x[2]-=x[1]*x[5]; x[1]=0;

    printf("%f %f\n", x[2], x[5]);
  }

  return 0;
}

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

#include <iostream>
using namespace std;

{
	double a,b,c,d,e,f;
	double x,y;
	
	while (cin>>a>>b>>c>>d>>e>>f, cin.eof()) {
		y = (c * d - a * f) / (b * d - e * a);
		x = (c - (b * y)) / a;
		
		cout<<setprecision(3)<<setiosflags(ios::fixed)<<x<<" "<<y<<endl;
	}	
	return 0;
}

Compiler output:
a.cc:4:1: error: expected unqualified-id before '{' token
    4 | {
      | ^
Language: C++

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

{
	double a,b,c,d,e,f;
	double x,y;
	
	while (cin>>a>>b>>c>>d>>e>>f, cin.eof()) {
		y = (c * d - a * f) / (b * d - e * a);
		x = (c - (b * y)) / a;
		
		cout<<setprecision(3)<<setiosflags(ios::fixed)<<x<<" "<<y<<endl;
	}	
	return 0;
}

Compiler output:
a.cc:5:1: error: expected unqualified-id before '{' token
    5 | {
      | ^
Language: C++

#include<stdio.h>

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

Compiler output:
a.cc: In function 'int main()':
a.cc:5:9: error: 'cin' was not declared in this scope
    5 |         cin >> a >> b >> c >> d >> e >> f;
      |         ^~~
Language: C++

#include<stdio.h>
#include<iostream>
int main(void){
	double a,b,c,d,e,f,x,y;
	cin >> a >> b >> c >> d >> e >> f;
	y = (f-d*c/a)/(e-d*b/a);
	x = c/a-b/a*y;
	printf("%.4f %.4f\n",x);
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:9: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    5 |         cin >> a >> b >> c >> d >> e >> f;
      |         ^~~
      |         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<stdio.h>
int main(void)
{
double x=0 , y=0 ;
int a , b , c , d , e , f , p=0 , r=0 , s=0 ;

while(scanf("%d %d %d %d %d %d",&a ,&b ,&c ,&d ,&e ,&f) != EOF)
{
p=a*e-b*d ;
q=c*e-b*f ;
x=(double)q/p ;

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

if(x==-0) x=0 ;
if(y==-0) y=0 ;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:10:1: error: 'q' was not declared in this scope
   10 | q=c*e-b*f ;
      | ^
Language: C++

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

#define EPS 1e-12;

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

  while(scanf("%lf %lf %lf %lf %lf %lf",&a ,&b ,&c ,&d ,&e ,&f) != EOF){

    x=(c*e-b*f)/(a*e-b*d);
    y=(d*c-a*f)/(b*d-a*e);
    if(abs(x) < EPS) x = 0.000;
    if(abs(y) < EPS) y = 0.000;
    printf("%.3lf %.3lf\n",x,y);
  
  }
  
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:15:20: error: expected primary-expression before ')' token
   15 |     if(abs(x) < EPS) x = 0.000;
      |                    ^
a.cc:16:20: error: expected primary-expression before ')' token
   16 |     if(abs(y) < EPS) y = 0.000;
      |                    ^
Language: C++

#include<stdio.h>
int main(void){
  float a,b,c,d,e,f,x,y,i;
  while(scanf("%d %d %d %d %d %d",&a, &b,&c,&d,&e,&f)!=EOF){
    x=(e*c-b*f)/(d*e-b*d);
    y=(a*f-c*d)/(d*e-b*d);
    printf(" %f %f\n",x,y);}1




  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:30: error: expected ';' before 'return'
    7 |     printf(" %f %f\n",x,y);}1
      |                              ^
      |                              ;
......
   12 |   return 0;
      |   ~~~~~~
Language: C++


int main() {
	std::cout << std::setprecision(3);
	std::cout.setf(std::ios::fixed, std::ios::floatfield);
	double a, b, c, d, e, f;
	while( std::cin >> a >> b >> c >> d >> e >> f ) {
		const double x = (b*f-c*e) / (b*d-a*e);
		const double y = (c-a*x) / b;
		std::cout << ((-0.0005<=x && x<0.0005)?0.0:x) << " " << ((-0.0005<=y && y<0.0005)?0.0:y) << std::endl; 
	}
}

Compiler output:
a.cc: In function 'int main()':
a.cc:3:14: error: 'cout' is not a member of 'std'
    3 |         std::cout << std::setprecision(3);
      |              ^~~~
a.cc:1:1: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 | 
a.cc:3:27: error: 'setprecision' is not a member of 'std'
    3 |         std::cout << std::setprecision(3);
      |                           ^~~~~~~~~~~~
a.cc:1:1: note: 'std::setprecision' is defined in header '<iomanip>'; this is probably fixable by adding '#include <iomanip>'
  +++ |+#include <iomanip>
    1 | 
a.cc:4:14: error: 'cout' is not a member of 'std'
    4 |         std::cout.setf(std::ios::fixed, std::ios::floatfield);
      |              ^~~~
a.cc:4:14: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:4:29: error: 'std::ios' has not been declared
    4 |         std::cout.setf(std::ios::fixed, std::ios::floatfield);
      |                             ^~~
a.cc:4:46: error: 'std::ios' has not been declared
    4 |         std::cout.setf(std::ios::fixed, std::ios::floatfield);
      |                                              ^~~
a.cc:6:21: error: 'cin' is not a member of 'std'
    6 |         while( std::cin >> a >> b >> c >> d >> e >> f ) {
      |                     ^~~
a.cc:6:21: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:9:22: error: 'cout' is not a member of 'std'
    9 |                 std::cout << ((-0.0005<=x && x<0.0005)?0.0:x) << " " << ((-0.0005<=y && y<0.0005)?0.0:y) << std::endl;
      |                      ^~~~
a.cc:9:22: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:9:114: error: 'endl' is not a member of 'std'
    9 |                 std::cout << ((-0.0005<=x && x<0.0005)?0.0:x) << " " << ((-0.0005<=y && y<0.0005)?0.0:y) << 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 |
Language: C++

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

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

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

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

	cout << showpoint << setprecision(3);
	cout << setiosflags( ios::fixed );
	cout << ( x == -0.0 ? 0.0 : x ) << " " << ( y == -0.0 ? 0.0 : y ) << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:42: error: expected ';' before ')' token
    8 |         cin >> a >> b >> c >> d >> e >> f)
      |                                          ^
      |                                          ;
Language: C++

#include <iostream>
#include <vector>
#include <map>

typedef vector<
typedef pair<int,int> mat;
using namespace std;
int main()
{
int a,b,c,d,e,f;
double A[2][2];
double B[2];
double inv_A[2][2];
scanf("%d %d %d %d %d %d",a&,&b,&c,&d,&e,&f);
int det = a*e-b*d;
A[0][0]=a; A[0][1] = b;
A[1][0]=d; A[1][1] = e;
B[0] = c;
B[1] = f; 

inv_A[0][0]=1.0/(double)det *A[1][1]; inv_A[0][1]=1.0/(double)det *-A[1][1];
inv_A[1][0]=1.0/(double)det *-A[1][0]; inv_A[1][1]=1.0/(double)det *A[0][0];

double res[2];
res[0]=0;
res[1]=0;

for(int i=0;i<2;i++){
for(int j=0;j<2;j++){
for(int k=0;k<2;k++){
res[i]+=inv_A[j][k]*B[k];
}
}
}

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

Compiler output:
a.cc:5:9: error: 'vector' does not name a type
    5 | typedef vector<
      |         ^~~~~~
a.cc: In function 'int main()':
a.cc:14:29: error: expected primary-expression before ',' token
   14 | scanf("%d %d %d %d %d %d",a&,&b,&c,&d,&e,&f);
      |                             ^
Language: C++

#include <iostream>
#include <vector>
#include <map>

typedef pair<int,int> mat;
using namespace std;
int main()
{
int a,b,c,d,e,f;
double A[2][2];
double B[2];
double inv_A[2][2];
scanf("%d %d %d %d %d %d",&a,&b,&c,&d,&e,&f);
int det = a*e-b*d;
A[0][0]=a; A[0][1] = b;
A[1][0]=d; A[1][1] = e;
B[0] = c;
B[1] = f; 

inv_A[0][0]=1.0/(double)det *A[1][1]; inv_A[0][1]=1.0/(double)det *-A[1][1];
inv_A[1][0]=1.0/(double)det *-A[1][0]; inv_A[1][1]=1.0/(double)det *A[0][0];

double res[2];
res[0]=0;
res[1]=0;

for(int i=0;i<2;i++){
for(int j=0;j<2;j++){
for(int k=0;k<2;k++){
res[i]+=inv_A[j][k]*B[k];
}
}
}

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

Compiler output:
a.cc:5:9: error: 'pair' does not name a type
    5 | typedef pair<int,int> mat;
      |         ^~~~
Language: C++

import java.io.*;
import java.text.DecimalFormat;
class Main{

    public static void main(String[] args)throws IOException{
	BufferedReader br =new BufferedReader(new  InputStreamReader(System.in));
	String buf;
	double[][] data=new double[2][3];
	double x,y;
	while((buf=br.readLine()) != null){
	    String[] buf2=buf.split(" ");
	    for(int i=0;i<data.length;i++){
		for(int j=0;j<data[i].length;j++){
		    data[i][j]=Double.parseDouble(buf2[i*3+j]);
		}
	    }
	    double a,b,c,d;
	    a=(data[0][2] * data[1][1] - data[0][1] * data[1][2]);
	    b=(data[0][0] * data[1][1] - data[1][0] * data[0][1]);
	    c=(data[0][2] * data[1][0] - data[1][2] * data[0][0]);
	    System.out.println(c);
	    d=(data[0][1] * data[1][0] - data[0][0] * data[1][1]);
	    System.out.println(d);
	    x = a / b;
	    y = c / d;
	    DecimalFormat decimalFormat1 = new DecimalFormat("#.000");
	    System.out.print(decimalFormat1.format(x));
	    System.out.print("\t");
	    System.out.println(decimalFormat1.format(y));
	}
    }
}

Compiler output:
a.cc:1:1: error: 'import' does not name a type
    1 | import java.io.*;
      | ^~~~~~
a.cc:1:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:2:1: error: 'import' does not name a type
    2 | import java.text.DecimalFormat;
      | ^~~~~~
a.cc:2:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:5:11: error: expected ':' before 'static'
    5 |     public static void main(String[] args)throws IOException{
      |           ^~~~~~~
      |           :
a.cc:5:29: error: 'String' has not been declared
    5 |     public static void main(String[] args)throws IOException{
      |                             ^~~~~~
a.cc:5:38: error: expected ',' or '...' before 'args'
    5 |     public static void main(String[] args)throws IOException{
      |                                      ^~~~
a.cc:5:42: error: expected ';' at end of member declaration
    5 |     public static void main(String[] args)throws IOException{
      |                                          ^
      |                                           ;
a.cc:5:43: error: 'throws' does not name a type
    5 |     public static void main(String[] args)throws IOException{
      |                                           ^~~~~~
a.cc:32:2: error: expected ';' after class definition
   32 | }
      |  ^
      |  ;
Language: C++

#include<iostream>

using namespace std;

double round(double source, int precision) {	// 四捨五入
	return floor((fabs(source) * pow(10, (double)precision) + 0.5)) / pow(10, (double)precision) * (source < 0 ? -1 : 1);
}

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 = (a * f - c * d) / (a * e - b * d);

		cout.precision(3);
		cout << fixed << round(x, 3) << " " << round(y, 3) << endl;
		//cout << fixed << x + 1e-10 << " " << y + 1e-10 << endl;
	}

	return 0;
}

Compiler output:
a.cc: In function 'double round(double, int)':
a.cc:6:23: error: 'fabs' was not declared in this scope; did you mean 'labs'?
    6 |         return floor((fabs(source) * pow(10, (double)precision) + 0.5)) / pow(10, (double)precision) * (source < 0 ? -1 : 1);
      |                       ^~~~
      |                       labs
a.cc:6:38: error: 'pow' was not declared in this scope
    6 |         return floor((fabs(source) * pow(10, (double)precision) + 0.5)) / pow(10, (double)precision) * (source < 0 ? -1 : 1);
      |                                      ^~~
a.cc:6:16: error: 'floor' was not declared in this scope
    6 |         return floor((fabs(source) * pow(10, (double)precision) + 0.5)) / pow(10, (double)precision) * (source < 0 ? -1 : 1);
      |                ^~~~~
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)!=EOF)
	{
		y=(a*f-c*d)/(a*e-d*b);
		x=(c-b*y)/a:
		printf("%.3f %.3f\n",x,y);
	}
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:28: error: found ':' in nested-name-specifier, expected '::'
    8 |                 x=(c-b*y)/a:
      |                            ^
      |                            ::
a.cc:8:27: error: 'a' is not a class, namespace, or enumeration
    8 |                 x=(c-b*y)/a:
      |                           ^
Language: C++

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

int main(){

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

	double x,y;

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

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

		if(fabs(x)<1e-3 && fabs(y)<1e-3){
			printf("%.3f %.3f\n",fabs(x),fabs(y));
		}
		else if(fabs(x)<1e-3){
			printf("%.3f %.3f\n",fabs(x),y);
		}
		else if(fabs(y)<1e-3){
			printf("%.3f %.3f\n",x,fabs(y));
		}
		else{
			printf("%.3f %.3f\n",x,y);
		}

	}

	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:21:20: error: 'fabs' was not declared in this scope; did you mean 'labs'?
   21 |                 if(fabs(x)<1e-3 && fabs(y)<1e-3){
      |                    ^~~~
      |                    labs
Language: C++

#include <conio.h>
#include <iostream>
#include <iomanip>
using namespace std;

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

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