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

import java.util.Scanner;
import java.math.BigDecimal;

public class Main
{
    public static void main(String[] args)
    {
	Scanner cin = new Scanner(System.in);
	while(cin.hasNext())
	{
		double a = cin.nextInt();
		double b = cin.nextInt();
		double c = cin.nextInt();
		double d = cin.nextInt();
		double e = cin.nextInt();
		double f = cin.nextInt();
		BigDecimal xbd = new BigDecimal((c*e-b*f)/(a*e-b*d));
		BigDecimal ybd = new BigDecimal((a*f-c*d)/(a*e-b*d));
		BigDecimal x =  xbd.BigDecimal(3, BigDecimal.ROUND_HALF_UP);
		BigDecimal y =  ybd.BigDecimal(3, BigDecimal.ROUND_HALF_UP);
		System.out.println(x.doublevalue()+" "+y.doublevalue());
	}
    }
}

Compiler output:
Main.java:19: error: cannot find symbol
		BigDecimal x =  xbd.BigDecimal(3, BigDecimal.ROUND_HALF_UP);
		                   ^
  symbol:   method BigDecimal(int,int)
  location: variable xbd of type BigDecimal
Main.java:20: error: cannot find symbol
		BigDecimal y =  ybd.BigDecimal(3, BigDecimal.ROUND_HALF_UP);
		                   ^
  symbol:   method BigDecimal(int,int)
  location: variable ybd of type BigDecimal
Main.java:21: error: cannot find symbol
		System.out.println(x.doublevalue()+" "+y.doublevalue());
		                    ^
  symbol:   method doublevalue()
  location: variable x of type BigDecimal
Main.java:21: error: cannot find symbol
		System.out.println(x.doublevalue()+" "+y.doublevalue());
		                                        ^
  symbol:   method doublevalue()
  location: variable y of type BigDecimal
Note: Main.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
4 errors
Language: Java

import java.util.Scanner;
import java.math.BigDecimal;

public class Main
{
    public static void main(String[] args)
    {
	Scanner cin = new Scanner(System.in);
	while(cin.hasNext())
	{
		double a = cin.nextInt();
		double b = cin.nextInt();
		double c = cin.nextInt();
		double d = cin.nextInt();
		double e = cin.nextInt();
		double f = cin.nextInt();
		BigDecimal xbd = new BigDecimal((c*e-b*f)/(a*e-b*d));
		BigDecimal ybd = new BigDecimal((a*f-c*d)/(a*e-b*d));
		BigDecimal x =  xbd.setScale(3, BigDecimal.ROUND_HALF_UP);
		BigDecimal y =  ybd.setScale(3, BigDecimal.ROUND_HALF_UP);
		System.out.println(x.doublevalue()+" "+y.doublevalue());
	}
    }
}

Compiler output:
Main.java:21: error: cannot find symbol
		System.out.println(x.doublevalue()+" "+y.doublevalue());
		                    ^
  symbol:   method doublevalue()
  location: variable x of type BigDecimal
Main.java:21: error: cannot find symbol
		System.out.println(x.doublevalue()+" "+y.doublevalue());
		                                        ^
  symbol:   method doublevalue()
  location: variable y of type BigDecimal
Note: Main.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
2 errors
Language: Java

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

public class Math {

	/**
	 * @param args
	 */

	static void solve(int[] a){
		double d = a[0]*a[4]-a[1]*a[3];
		BigDecimal x = new BigDecimal(String.valueOf(((double)a[4]*a[2]-a[1]*a[5])/d));
		BigDecimal y = new BigDecimal(String.valueOf(((double)-a[2]*a[3]+a[0]*a[5])/d));
		System.out.printf(
				"%.3f %.3f",
				x.setScale(3, BigDecimal.ROUND_HALF_UP).doubleValue(),
				y.setScale(3, BigDecimal.ROUND_HALF_UP).doubleValue()
				);
	}

	public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ

		Scanner scan = new Scanner(System.in);

		while(scan.hasNext()){
			int[] a= new int[6];
			for(int i=0;i<6;i++){
				a[i]=scan.nextInt();
			}
			solve(a);
		}
	}

}

Compiler output:
Main.java:4: error: class Math is public, should be declared in a file named Math.java
public class Math {
       ^
Note: Main.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
1 error
Language: Java

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

public class Main {

    public static void main(String[] args) throws IOException {
        String inputStr;
        BufferedReader bReader = new BufferedReader(new InputStreamReader(System.in));
        while ((inputStr = bReader.readLine()) != null) {
            String[] editedStr = inputStr.split(" ");
            int a = Integer.parseInt(editedStr[0]);
            int b = Integer.parseInt(editedStr[1]);
            int c = Integer.parseInt(editedStr[2]);
            int d = Integer.parseInt(editedStr[3]);
            int e = Integer.parseInt(editedStr[4]);
            int f = Integer.parseInt(editedStr[5]);
            double x = (c*e-b*f)/(a*e-b*d);
            y = (c-a*x)/b;
            System.out.println(String.format("%1.3g %1.3g",x , y));
        }
    }
}

Compiler output:
Main.java:19: error: cannot find symbol
            y = (c-a*x)/b;
            ^
  symbol:   variable y
  location: class Main
Main.java:20: error: cannot find symbol
            System.out.println(String.format("%1.3g %1.3g",x , y));
                                                               ^
  symbol:   variable y
  location: class Main
2 errors
Language: Java

import java.util.*;
public class Main {
    static Scanner sc = new Scanner(System.in);
    static double a, b, c, d, e, f;
    public static void main(String[] args) {
        while(read()){
            solve();
        }
    }
    static boolean read(){
        if(!sc.hasNext())return false;
        a = sc.nextDouble();
        b = sc.nextDouble();
        c = sc.nextDouble();
        d = sc.nextDouble();
        e = sc.nextDouble();
        f = sc.nextDouble();
        return true;
    }
    static void solve(){
        double det = a*e - b*d;
        double x = (c*e - b*f)/det, y = (-c*d + a*f)/det;
        if(x==0)x=0;
        if(y==0)y=0;
        System.out.printf("%.3f %.3f\n", x, y);
    }

Compiler output:
Main.java:26: error: reached end of file while parsing
    }
     ^
1 error
Language: Java

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.math.BigDecimal;

public class CopyOfMain {

	public static void main(String[] a){

		String str;
		BufferedReader bf = new BufferedReader(new InputStreamReader(System.in));

		try {
			while(null != ( str = bf.readLine() )){
				String[] arr = str.split(" ");
				BigDecimal ansX = new BigDecimal(
						(Integer.parseInt(arr[2]) * Integer.parseInt(arr[4]) - Integer.parseInt(arr[5]) * Integer.parseInt(arr[1])) /
						(Integer.parseInt(arr[0]) * Integer.parseInt(arr[4]) - Integer.parseInt(arr[1]) * Integer.parseInt(arr[3])));
				BigDecimal ansY = new BigDecimal(
						(Integer.parseInt(arr[2]) * Integer.parseInt(arr[3]) - Integer.parseInt(arr[0]) * Integer.parseInt(arr[5])) /
						(Integer.parseInt(arr[1]) * Integer.parseInt(arr[3]) - Integer.parseInt(arr[0]) * Integer.parseInt(arr[4])));
				System.out.println(ansX.setScale(3, BigDecimal.ROUND_UP) + " " + ansY.setScale(3, BigDecimal.ROUND_UP));
			}
		} catch (IOException e) {
			e.printStackTrace();
		} finally {
			try {
				bf.close();
			} catch (IOException e) {
			}
		}
	}
}

Compiler output:
Main.java:6: error: class CopyOfMain is public, should be declared in a file named CopyOfMain.java
public class CopyOfMain {
       ^
Note: Main.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
1 error
Language: Java

public class Main{
	public static void main(String[] args){
		Scanner scan = new Scanner(System.in);
		float num[] = new float[6];

		while(scan.hasNextFloat()){
			for(int i=0; i<6;i++){
				num[i] = scan.nextFloat();
			}

			float det = num[0]*num[4] - num[1]*num[3];
			float x = (num[1]*num[5] - num[4]*num[2])/det;
			float y = (num[2]-num[0]*x)/num[1];

			System.out.printf("%.3f %.3f",x,y);
			
		}
	}
}

Compiler output:
Main.java:3: error: cannot find symbol
		Scanner scan = new Scanner(System.in);
		^
  symbol:   class Scanner
  location: class Main
Main.java:3: error: cannot find symbol
		Scanner scan = new Scanner(System.in);
		                   ^
  symbol:   class Scanner
  location: class Main
2 errors
Language: Java

 import java.util.Scanner;
 
 public class Main{
     public static void main(String[] args){
 
         Scanner scan = new Scanner(System.in);
 
         while(scan.hasNextInt()){
 
             int a = scan.nextInt();
             int b = scan.nextInt();
             int c = scan.nextInt();
             int d = scan.nextInt();
             int e = scan.nextInt();
             int f = scan.nextInt();
 
             double tmp = a*e-b*d;
             double x = (double)(c*e-b*f)/tmp;
             double y = (double)(-c*d+a*f)/tmp;
 
            System.out.println(String.format("%.3f",x) +" "　+ String.format("%.3f",y));

         }
      }
  }

Compiler output:
Main.java:21: error: illegal character: '\u3000'
            System.out.println(String.format("%.3f",x) +" "?+ String.format("%.3f",y));
                                                           ^
Main.java:21: error: ';' expected
            System.out.println(String.format("%.3f",x) +" "?+ String.format("%.3f",y));
                                                                                     ^
2 errors
Language: Java

import java.util.Scanner;

class Main {
	public static void main(String args[]) {
		Scanner sc = new Scanner(System.in);
		DecimalFormat df = new DecimalFormat(".000");
		while (sc.hasNext()) {
			double v[] = new double[6];
			for (int i = 0; i < 6; i++) {
				v[i] = sc.nextDouble();
			}
			double root = v[0]*v[4] - v[1]*v[3];
			double x = (v[4]*v[2] - v[1]*v[5]) / root;
			double y = (v[0]*v[5] - v[3]*v[2]) / root;
			System.out.printf("%.3f %.3f\n", x, y);
		}
	}
}

Compiler output:
Main.java:6: error: cannot find symbol
		DecimalFormat df = new DecimalFormat(".000");
		^
  symbol:   class DecimalFormat
  location: class Main
Main.java:6: error: cannot find symbol
		DecimalFormat df = new DecimalFormat(".000");
		                       ^
  symbol:   class DecimalFormat
  location: class Main
2 errors
Language: Java

import java.util.Scanner;

public class aoj0004 {
	public static void main(String[] args)
	{
		Scanner sc = new Scanner(System.in);
		while(sc.hasNext()){
			double a = sc.nextDouble();
			double b = sc.nextDouble();
			double c = sc.nextDouble();
			double d = sc.nextDouble();
			double e = sc.nextDouble();
			double f = sc.nextDouble();
					   b = b*d;
					   c = c*d;
					   e = e*a;
					   f = f*a;

					double y = (c-f)/(b-e);
					double x = (c-(b*y))/(a*d);
					if(x>0)x = (double)((int)((x * 1000)+0.5))/1000;
					if(x<0)x = (double)((int)((x * 1000)-0.5))/1000;
					if(y>0)y = (double)((int)((y * 1000)+0.5))/1000;
					if(y<0)y = (double)((int)((y * 1000)-0.5))/1000;
					if(x==-0.0)x=0.0;
					if(y==-0.0)y=0.0;
			System.out.println(x +" "+ y);
		}
	}
}

Compiler output:
Main.java:3: error: class aoj0004 is public, should be declared in a file named aoj0004.java
public class aoj0004 {
       ^
1 error
Language: Java

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.text.DecimalFormat;
import java.util.ArrayList;
import java.util.List;


public class AOJ_004 {
	public static void main(String[] args)throws IOException {
		
		BufferedReader buf= new BufferedReader(new InputStreamReader(System.in));
		DecimalFormat df=new DecimalFormat("0.000");
		int a,b,c,d,e,f;
		float x,y;
		List<String> xlist=new ArrayList<String>();
		List<String> ylist=new ArrayList<String>();
		
		String line;
		while((line=buf.readLine())!=null){
			a=Integer.parseInt(line.split(" ")[0]);
			b=Integer.parseInt(line.split(" ")[1]);
			c=Integer.parseInt(line.split(" ")[2]);
			d=Integer.parseInt(line.split(" ")[3]);
			e=Integer.parseInt(line.split(" ")[4]);
			f=Integer.parseInt(line.split(" ")[5]);
			
			x=(e*c-b*f)/(e*a-b*d);
			y=(d*c-a*f)/(d*b-a*e);
			xlist.add(df.format(x));
			ylist.add(df.format(y));
		}
		
		for(int i=0;i<xlist.size();i++){
			System.out.println(xlist.get(i)+" "+ylist.get(i));
		}
		
	}
}

Compiler output:
Main.java:9: error: class AOJ_004 is public, should be declared in a file named AOJ_004.java
public class AOJ_004 {
       ^
1 error
Language: Java

		Scanner in = new Scanner(System.in);
		
		while(in.hasNext()) {
			// ax + by = c
			double a = in.nextDouble();
			double b = in.nextDouble();
			double c = in.nextDouble();
			// dx + ey = f
			double d = in.nextDouble();
			double e = in.nextDouble();
			double f = in.nextDouble();
			
			double y = (f + (-1 * d * (c / a))) / ((-1 * (d / a) * b) + e);
			double x = (f + (-1 * e * y)) / d;
		
			if(x == -0.000 || x == +0.000) {
				x = 0.000;
			}
			if(y == -0.000 || y == +0.000) {
				y = 0.000;
			}
			
			System.out.println(String.format("%.3f %.3f", x, y));
		}

Compiler output:
Main.java:1: error: unnamed classes are a preview feature and are disabled by default.
		Scanner in = new Scanner(System.in);
		^
  (use --enable-preview to enable unnamed classes)
Main.java:3: error: class, interface, enum, or record expected
		while(in.hasNext()) {
		^
Main.java:16: error: class, interface, enum, or record expected
			if(x == -0.000 || x == +0.000) {
			^
Main.java:18: error: class, interface, enum, or record expected
			}
			^
Main.java:21: error: class, interface, enum, or record expected
			}
			^
Main.java:24: error: class, interface, enum, or record expected
		}
		^
6 errors
Language: Java

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.math.BigDecimal;

/*
 *  連立方程式
        ax + by = c
        dx + ey = f
	の解、x, y を出力して終了するプログラムを作成して下さい。
	a, b, c, d, e, f はそれぞれ、 -1000 以上 1000 以下の実数とし、連立方程式の解が一意に存在するように与えれれるものとします。
	
	Input
	複数のデータセットが与えられます。入力の最後まで処理して下さい。１つのデータセットが１行に与えられます。
	１つのデータセットに a, b, c, d, e, f が１つのスペースで区切られて与えられます。
	
	Output
	各データセットに対して、x, y を１つのスペースで区切って１行に出力して下さい。
	各値は小数点以下第３位まで出力して下さい。小数点以下第４位を四捨五入して下さい。 
	
	ｘ，ｙは以下の解法で求める
	x = (ce - fb) / (ae -bd)
	y = (cd - fa) / (bd - ae)

 */
public class SimultaneousEquation0004 {

	public static void main(String[] args) {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String line = null;
		
		try {
			while((line = br.readLine()) != null) {
				line = line.trim();
				String[] values = line.split("\\s");
				if(values.length != 6) System.exit(-1);
				int[] value = new int[6];
				int i = 0;
				for(String s : values) {
					value[i] = Integer.parseInt(s);
					if(value[i] < -1000 || value[i] > 1000) System.exit(-1);
					i++;
				}
				
				int a = value[0];
				int b = value[1];
				int c = value[2];
				int d = value[3];
				int e = value[4];
				int f = value[5];
				
				double x = (double)(c*e - f*b) / (a*e - b*d);
				double y = (double)(c*d - f*a) / (b*d - a*e);
				
				BigDecimal bdX = new BigDecimal(x);
				BigDecimal bdY = new BigDecimal(y);
				bdX = bdX.setScale(3, BigDecimal.ROUND_HALF_UP);
				bdY = bdY.setScale(3, BigDecimal.ROUND_HALF_UP);

				System.out.println(bdX + " " + bdY);
			}
		} catch (IOException e) {
			e.printStackTrace();
		}
		
	}

}

Compiler output:
Main.java:26: error: class SimultaneousEquation0004 is public, should be declared in a file named SimultaneousEquation0004.java
public class SimultaneousEquation0004 {
       ^
Note: Main.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
1 error
Language: Java

import java.io.*;
 
public class aoj {
 
public static void main(String[] args) throws IOException {
 BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
 String line;
 
while ((line = br.readLine()) != null && line.length() > 0) {
 
String[] data = line.split(" ");
 double[] d = new double[data.length];
 
for (int i = 0; i < d.length; i++) {
 d[i] = Double.parseDouble(data[i]);
 }
 
double x = (d[2] * d[4] - d[5] * d[1]) / (d[0] * d[4] - d[3] * d[1]),
 y = (d[0] * d[5] - d[3] * d[2]) / (d[0] * d[4] - d[3] * d[1]);
 
x = Math.round(x * 1000) / (double) 1000;
 y = Math.round(y * 1000) / (double) 1000;
 
System.out.printf("%.3f %.3f\n", x, y);
 }
 }
 }

Compiler output:
Main.java:3: error: class aoj is public, should be declared in a file named aoj.java
public class aoj {
       ^
1 error
Language: Java

import java.util.*;

public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int a,b,c,d,e,f;
		double x,y;
		while(sc.hasNext()){
			a = sc.nextInt();
			b = sc.nextInt();
			c = sc.nextInt();
			d = sc.nextInt();
			e = sc.nextInt();
			f = sc.nextInt();
			x = (c*e - b*f)/(a*e - b*d);
			y = (c*d - a*f)/(b*d - a*e);
			if(x == -0) x = 0;
			if(y == -0) y = 0;
			System.out.printf("%.3f %.3f",x1,y1);
		}
	}
}

Compiler output:
Main.java:19: error: cannot find symbol
			System.out.printf("%.3f %.3f",x1,y1);
			                              ^
  symbol:   variable x1
  location: class Main
Main.java:19: error: cannot find symbol
			System.out.printf("%.3f %.3f",x1,y1);
			                                 ^
  symbol:   variable y1
  location: class Main
2 errors
Language: Java

import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.math.BigDecimal;

public class Equation {

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

	public static void main(String args[]) throws Exception {

		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String line;
		String[] array;

		try{
		while((line = br.readLine())  != null) {
			array = line.split(" ");
			
			setParams(array);

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

			System.out.println(new BigDecimal(x).setScale(3, BigDecimal.ROUND_HALF_UP) + " " + new BigDecimal(y).setScale(3, BigDecimal.ROUND_HALF_UP));
		}
		} catch(Exception e){
			System.out.println(e);
		}
	}

	private static void setParams(String[] array) {
		a = Double.parseDouble(array[0]);
		b = Double.parseDouble(array[1]);
		c = Double.parseDouble(array[2]);
		d = Double.parseDouble(array[3]);
		e = Double.parseDouble(array[4]);
		f = Double.parseDouble(array[5]);
	}
}

Compiler output:
Main.java:5: error: class Equation is public, should be declared in a file named Equation.java
public class Equation {
       ^
Note: Main.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
1 error
Language: Java

//
//  SimultaneousEquation.java
//  SimultaneousEquation
//
//  Created by hajime on 14/04/29.
//  Copyright (c) 2014 __MyCompanyName__. All rights reserved.

import java.util.*;
import java.io.*;
import java.text.*;

public class Main {

    public static void main (String args[]) {
        
		double x = 0.0;
		double y = 0.0;
		
		try {
			BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
			String line = "";
			
			while ((line = br.readLine()) != null) {
				String[] str = line.split(" ");
				
				if (str.length == 6) {
					double a = Double.parseDouble(str[0]);
					double b = Double.parseDouble(str[1]);
					double c = Double.parseDouble(str[2]);
					double d = Double.parseDouble(str[3]);
					double e = Double.parseDouble(str[4]);
					double f = Double.parseDouble(str[5]);
					
					x = (b*f - c*e)/(b*d - a*e);
					y = (c*d - a*f)/(b*d - a*e);
					
					//NumberFormat format = NumberFormat.getInstance();
					//format.setMaximumFractionDigits(4);
					
					
					
					System.out.println(format.format(x) + " " + format.format(y));
					
				}else {
					System.exit(0);
				}
			}
		}
		catch (Exception e) {
			e.printStackTrace();
			System.exit(0);
		}
		finally {
			System.exit(0);
		}
    }
}

Compiler output:
Main.java:42: error: cannot find symbol
					System.out.println(format.format(x) + " " + format.format(y));
					                   ^
  symbol:   variable format
  location: class Main
Main.java:42: error: cannot find symbol
					System.out.println(format.format(x) + " " + format.format(y));
					                                            ^
  symbol:   variable format
  location: class Main
2 errors
Language: C

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

float si(float a) {
	a *= 1000;
	if (a > 0) {
		a += 0.5;
	}
	else {
		a -= 0.5;
	}
	a = int(a);
	a /= 1000;
	return a;
}

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



Compiler output:
main.c: In function 'si':
main.c:13:13: error: expected expression before 'int'
   13 |         a = int(a);
      |             ^~~
Language: C

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

float si(float a) {
	a *= 1000;
	if (a > 0) {
		a += 0.5;
	}
	else {
		a -= 0.5;
	}
	a = int(a);
	a /= 1000;
	return a;
}

int main() {
	float a, b, c, d, e, f;
	while (~scanf("%f %f %f %f %f %f", &a, &b, &c, &d, &e, &f)) {
		b *= d;
		c *= d;
		e *= a;
		f *= a;
		float x, y;
		if (a != 0) {
			y = (c - f) / (b - e);
			x = (c / d - b / d * y) / a;
		}
		else {
			y = c / b;
			x = (f - e * y) / d;
		}
		printf("%.3f %.3f\n", si(x), si(y));
	}
}



Compiler output:
main.c: In function 'si':
main.c:13:13: error: expected expression before 'int'
   13 |         a = int(a);
      |             ^~~
Language: C

#include<stdio.h>

float s(float a) {
	a *= 1000;
	if (a > 0) {
		a += 0.5;
	}
	else {
		a -= 0.5;
	}
	a = int(a);
	a /= 1000;
	return a;
}

int main() {
	float a, b, c, d, e, f;
	while (~scanf("%f %f %f %f %f %f", &a, &b, &c, &d, &e, &f)) {
		b *= d;
		c *= d;
		e *= a;
		f *= a;
		float x, y;
		if (a != 0) {
			y = (c - f) / (b - e);
			x = (c / d - b / d * y) / a;
		}
		else {
			y = c / b;
			x = (f - e * y) / d;
		}
		printf("%.3f %.3f\n", s(x), s(y));
	}
}


Compiler output:
main.c: In function 's':
main.c:11:13: error: expected expression before 'int'
   11 |         a = int(a);
      |             ^~~
Language: C

#include<stdio.h>
#include<math.h>
rround(double x);
double det(double a,double b,double c,double d);
int main(){
double a,b,c,d,e,f;
 while(scanf("\n%lf %lf %lf %lf %lf %lf",&a,&b,&c,&d,&e,&f)!=EOF){
 printf("%.3lf %.3lf\n",rround(1000*det(c,f,b,e)/det(a,d,b,e))/1000.0,rround(1000*det(a,d,c,f)/det(a,d,b,e))/1000.0);
 }
return 0;
}
double det(double a,double b,double c,double d){
double determinant;
determinant=a*d-b*c;
return determinant;
}

double rround(double x){
if(x==-0.0){
x=-x
}
return x;
}

Compiler output:
main.c:3:1: warning: data definition has no type or storage class
    3 | rround(double x);
      | ^~~~~~
main.c:3:1: error: type defaults to 'int' in declaration of 'rround' [-Wimplicit-int]
main.c:18:8: error: conflicting types for 'rround'; have 'double(double)'
   18 | double rround(double x){
      |        ^~~~~~
main.c:3:1: note: previous declaration of 'rround' with type 'int(double)'
    3 | rround(double x);
      | ^~~~~~
main.c: In function 'rround':
main.c:20:5: error: expected ';' before '}' token
   20 | x=-x
      |     ^
      |     ;
   21 | }
      | ~
Language: C

#include<stdio.h>
#include<math.h>
double rround(double x);
double det(double a,double b,double c,double d);
int main(){
double a,b,c,d,e,f;
 while(scanf("\n%lf %lf %lf %lf %lf %lf",&a,&b,&c,&d,&e,&f)!=EOF){
 printf("%.3lf %.3lf\n",rround(1000*det(c,f,b,e)/det(a,d,b,e))/1000.0,rround(1000*det(a,d,c,f)/det(a,d,b,e))/1000.0);
 }
return 0;
}
double det(double a,double b,double c,double d){
double determinant;
determinant=a*d-b*c;
return determinant;
}

double rround(double x){
if(x==-0.0){
x=-x
}
return x;
}

Compiler output:
main.c: In function 'rround':
main.c:20:5: error: expected ';' before '}' token
   20 | x=-x
      |     ^
      |     ;
   21 | }
      | ~
Language: C

#include <stdio.h>

int main()
{
	int i=0,k;
	double a[10],b[10],c[10],d[10],e[10],f[10],x[10],y[10];
	
	while(scanf("%d %d %d %d %d %d",&a[i],&b[i],&c[i],&d[i],&e[i],&f[i])!=EOF)
	{
		i++; k++;
	}
	
	for(i=0;i<k;i++)
	{
		y[i] = (c[i]*d[i]-f[i]*a[i])-(b[i]*d[i]-e[i]*a[i]);
		x[i] = (c[i]*e[i]-f[i]*b[i])-(a[i]*e[i]-d[i]*b[i]);
		printf("%d %d",x[i],y[i])
	}
	
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:17:42: error: expected ';' before '}' token
   17 |                 printf("%d %d",x[i],y[i])
      |                                          ^
      |                                          ;
   18 |         }
      |         ~
Language: C

#include<stdio.h>

void calc_inverse_matrix(double mat[2][2], double inv_mat[2][2])
{
    double det = mat[0][0]*mat[1][1] - mat[0][1]*mat[1][0];

    inv_mat[0][0] = mat[1][1]/det;
    inv_mat[0][1] = -mat[0][1]/det;
    inv_mat[1][0] = -mat[1][0]/det;
    inv_mat[1][1] = mat[0][0]/det;
}

int read_inputline(double mat[2][2], double vec[2])
{
    return scanf("%d %d %d %d %d %d", 
                         &mat[0][0], &mat[0][1], &vec[0],
                         &mat[1][0], &mat[1][1], &vec[1]);
}

void calc_ans(double mat[2][2], double vec[2], ans[2])
{
    static inv_mat[2][2];

    calc_inverse_matrix(mat, inv_mat);

    ans[0] = inv_mat[0][0]*vec[0] + inv_mat[0][1]*vec[1];
    ans[1] = inv_mat[1][0]*vec[0] + inv_mat[1][1]*vec[1];
}

int main(){
    double mat[2][2], vec[2], inv_mat[2][2], ans[2];

    while(read_inputline(mat, vec)!=EOF){
        calc_ans(mat, inv_mat, ans);
        printf("%.3f\n", ans[0], ans[1]);
    }

    return 0;
}

Compiler output:
main.c:20:48: error: unknown type name 'ans'
   20 | void calc_ans(double mat[2][2], double vec[2], ans[2])
      |                                                ^~~
main.c: In function 'main':
main.c:34:9: error: implicit declaration of function 'calc_ans' [-Wimplicit-function-declaration]
   34 |         calc_ans(mat, inv_mat, ans);
      |         ^~~~~~~~
Language: C

#include<stdio.h>
main()
    double a,b,c,d,e,f,x,y;
    while(scanf("%f %f %f %f %f %f",&a,&b,&c,&d,&e,&f)!=EOF){
        x=(b*f-c*e)/(a*e-b*d);
        y=(a*f-c*d)/(b*d-a*e);
        printf("%4.3f %4.3f",x,y);
    }
    return 0;
}

Compiler output:
main.c:2:1: error: return type defaults to 'int' [-Wimplicit-int]
    2 | main()
      | ^~~~
main.c: In function 'main':
main.c:4:5: error: expected declaration specifiers before 'while'
    4 |     while(scanf("%f %f %f %f %f %f",&a,&b,&c,&d,&e,&f)!=EOF){
      |     ^~~~~
main.c:9:5: error: expected declaration specifiers before 'return'
    9 |     return 0;
      |     ^~~~~~
main.c:10:1: error: expected declaration specifiers before '}' token
   10 | }
      | ^
main.c:3:26: error: declaration for parameter 'y' but no such parameter
    3 |     double a,b,c,d,e,f,x,y;
      |                          ^
main.c:3:24: error: declaration for parameter 'x' but no such parameter
    3 |     double a,b,c,d,e,f,x,y;
      |                        ^
main.c:3:22: error: declaration for parameter 'f' but no such parameter
    3 |     double a,b,c,d,e,f,x,y;
      |                      ^
main.c:3:20: error: declaration for parameter 'e' but no such parameter
    3 |     double a,b,c,d,e,f,x,y;
      |                    ^
main.c:3:18: error: declaration for parameter 'd' but no such parameter
    3 |     double a,b,c,d,e,f,x,y;
      |                  ^
main.c:3:16: error: declaration for parameter 'c' but no such parameter
    3 |     double a,b,c,d,e,f,x,y;
      |                ^
main.c:3:14: error: declaration for parameter 'b' but no such parameter
    3 |     double a,b,c,d,e,f,x,y;
      |              ^
main.c:3:12: error: declaration for parameter 'a' but no such parameter
    3 |     double a,b,c,d,e,f,x,y;
      |            ^
main.c:11: error: expected '{' at end of input
Language: C

#include <stdio.h>

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

  while(EOF==scanf("%lf%lf%lf%lf%lf%lf",&a,&b,&c,&d,&e,&f) ){
    y = (c-f*(a/d)) / (b-e*(a/d))
    x = (c - b*y)/a

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

  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:7:34: error: expected ';' before 'x'
    7 |     y = (c-f*(a/d)) / (b-e*(a/d))
      |                                  ^
      |                                  ;
    8 |     x = (c - b*y)/a
      |     ~
Language: C

#include <cstdio>

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

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

#include <stdio.h>

int gcd(int a, int b);

int main(void)
{
	int a, b, c, d, e, f;
	double x, y;
	int g, l;
	
	while (scanf("%d%d%d%d%d%d", &a, &b, &c, &d, &e, &f) != EOF){
		g = gcd(a, d);
		if (g < 0)g *= -1;
		l = a / g * d;
		b *= d * g;
		e *= a * g;
		c *= d * g;
		f *= a * g;
		printf("becflgad = %d,%d,%d,%d,%d,%d,%d,%d\n", b, e, c, f, l, g, a, d);
		if ( {
			y = (c + f) / (b + e) * 1.0;
			x = (c - y * b) / l * 1.0;
		}

		if ((a > 0 && d > 0) || (a < 0 && b < 0)){
			y = (c - f) / (b - e) * 1.0;
			x = (c - y * b) / l * 1.0;
		}
		printf("%.3lf %.3lf\n", x, y);
		
	}
	
	return (0);
}

int gcd(int a, int b)
{
	if (a % b == 0)return (b);
	
	return (gcd(b, a % b));
}

Compiler output:
main.c: In function 'main':
main.c:20:22: error: expected expression before '{' token
   20 |                 if ( {
      |                      ^
main.c:31:9: error: expected expression before '}' token
   31 |         }
      |         ^
Language: C

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


double round_d(double x) {
    if ( x => 0.0 ) {
        return floor(x + 0.5);
    } else {
        return -1.0 * floor(fabs(x) + 0.5);
    }
}
    
int main(){

	double a,b,c,d,e,f,kai1[4096],kai2[4096];
    int i=0,n;

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

		kai1[i]=(c*e/b-f)/(a*e/b-d);
		kai2[i]=(f*a/d-c)/(e*a/d-b);

		if((c*e/b-f)==0||(a*e/b-d)==0)kai1[i]=0;
		if((f*a/d-c)==0||(e*a/d-b)==0)kai2[i]=0;


		i++;
	}

	for(n=0;n<i;n++)printf("%.3lf %.3lf\n",round_d(kai1[n]),round_d(kai2[n]));

    return 0;
}

Compiler output:
main.c: In function 'round_d':
main.c:7:13: error: expected expression before '>' token
    7 |     if ( x => 0.0 ) {
      |             ^
Language: C

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


    
int main(){

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

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


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

		kai2=(c-a*kai1[i])/b;



		printf("%.3lf %.3lf\n",kai1+0,00001,kai2+0,00001);

	}
    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:16:32: error: 'i' undeclared (first use in this function)
   16 |                 kai2=(c-a*kai1[i])/b;
      |                                ^
main.c:16:32: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#include<stdio.h>
#include<math.h>
int main(void){
    double a,b,c,d,e,f,det;
 
    while(scanf("%lf%lf%lf%lf%lf%lf",&a,&b,&c,&d,&e,&f)!=EOF){
 
 
    det=a*e-b*d;
    x=(e*c-b*f)/det;
    y=(-d*c+a*f)/det;
 
   printf("%.3lf %.3lf\n",x,y);
    }
 
    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:10:5: error: 'x' undeclared (first use in this function)
   10 |     x=(e*c-b*f)/det;
      |     ^
main.c:10:5: note: each undeclared identifier is reported only once for each function it appears in
main.c:11:5: error: 'y' undeclared (first use in this function)
   11 |     y=(-d*c+a*f)/det;
      |     ^
Language: C

include <stdio.h>

int main() {
    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 = (a*f-c*d)/(a*e-b*d);
        printf("%.3lf %.3lf\n", x, y);
    }

    return 0;
}

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

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

Compiler output:
main.c: In function 'main':
main.c:3:8: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    3 | while (scanf("%d %d %d %d %d %d",&a,&b,&c,&d,&e,&f) !=EOF) {
      |        ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | int main(){
main.c:3:8: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    3 | while (scanf("%d %d %d %d %d %d",&a,&b,&c,&d,&e,&f) !=EOF) {
      |        ^~~~~
main.c:3:8: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:3:55: error: 'EOF' undeclared (first use in this function)
    3 | while (scanf("%d %d %d %d %d %d",&a,&b,&c,&d,&e,&f) !=EOF) {
      |                                                       ^~~
main.c:3:55: note: 'EOF' is defined in header '<stdio.h>'; this is probably fixable by adding '#include <stdio.h>'
main.c:3:55: note: each undeclared identifier is reported only once for each function it appears in
main.c:8:1: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
    8 | printf("%.41f %.41f\n",x,y);
      | ^~~~~~
main.c:8:1: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:8:1: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:8:1: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:10:1: error: expected declaration or statement at end of input
   10 | }
      | ^
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:3:8: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    3 | while (scanf("%f %f %f %f %f %f",&a,&b,&c,&d,&e,&f) != EOF) {
      |        ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | int main(){
main.c:3:8: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    3 | while (scanf("%f %f %f %f %f %f",&a,&b,&c,&d,&e,&f) != EOF) {
      |        ^~~~~
main.c:3:8: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:3:56: error: 'EOF' undeclared (first use in this function)
    3 | while (scanf("%f %f %f %f %f %f",&a,&b,&c,&d,&e,&f) != EOF) {
      |                                                        ^~~
main.c:3:56: note: 'EOF' is defined in header '<stdio.h>'; this is probably fixable by adding '#include <stdio.h>'
main.c:3:56: note: each undeclared identifier is reported only once for each function it appears in
main.c:8:1: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
    8 | printf("%.31f %.31f\n",x,y);
      | ^~~~~~
main.c:8:1: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:8:1: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:8:1: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:10:1: error: expected declaration or statement at end of input
   10 | }
      | ^
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:3:8: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    3 | while (scanf("%f %f %f %f %f %f",&a,&b,&c,&d,&e,&f) != EOF) {
      |        ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | int main(){
main.c:3:8: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    3 | while (scanf("%f %f %f %f %f %f",&a,&b,&c,&d,&e,&f) != EOF) {
      |        ^~~~~
main.c:3:8: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:3:56: error: 'EOF' undeclared (first use in this function)
    3 | while (scanf("%f %f %f %f %f %f",&a,&b,&c,&d,&e,&f) != EOF) {
      |                                                        ^~~
main.c:3:56: note: 'EOF' is defined in header '<stdio.h>'; this is probably fixable by adding '#include <stdio.h>'
main.c:3:56: note: each undeclared identifier is reported only once for each function it appears in
main.c:8:1: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
    8 | printf("%.3f %.3f\n",x,y);
      | ^~~~~~
main.c:8:1: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:8:1: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:8:1: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:10:1: error: expected declaration or statement at end of input
   10 | }
      | ^
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:3:8: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    3 | while (scanf("%1f %1f %1f %1f %1f %1f",&a,&b,&c,&d,&e,&f) != EOF) {
      |        ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | int main(void){
main.c:3:8: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    3 | while (scanf("%1f %1f %1f %1f %1f %1f",&a,&b,&c,&d,&e,&f) != EOF) {
      |        ^~~~~
main.c:3:8: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:3:62: error: 'EOF' undeclared (first use in this function)
    3 | while (scanf("%1f %1f %1f %1f %1f %1f",&a,&b,&c,&d,&e,&f) != EOF) {
      |                                                              ^~~
main.c:3:62: note: 'EOF' is defined in header '<stdio.h>'; this is probably fixable by adding '#include <stdio.h>'
main.c:3:62: note: each undeclared identifier is reported only once for each function it appears in
main.c:8:1: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
    8 | printf("%.3f %.3f\n",x,y);
      | ^~~~~~
main.c:8:1: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:8:1: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:8:1: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:10:1: error: expected declaration or statement at end of input
   10 | }
      | ^
Language: C

#include <stdio.h>

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

Compiler output:
main.c: In function 'main':
main.c:12:1: error: expected declaration or statement at end of input
   12 | }
      | ^
Language: C

#include <stdio.h>

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

Compiler output:
main.c: In function 'main':
main.c:10:1: error: expected declaration or statement at end of input
   10 | }
      | ^
Language: C

#include<stdio.h>
//#define EPS 0.0000001
int main(void){
    double x,y,r,s,t,u,a,b,p,c,d,q;
        while(1){
        if(scanf("%lf",&a)==EOF)break;
        scanf("%lf%lf%lf%lf%lf",&b,&p,&c,&d,&q);
        r=p*d-b*q;
        s=a*d-b*c;
        x=r/s;
        t=a*q-p*c;
        u=a*d-b*c;
        y=t/u;
        if(-EPS<x && x<=0) x = 0;
        if(-EPS<y && y<=0) y = 0;
        printf("%.3lf %.3lf\n",x,y);
    }
    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:14:13: error: 'EPS' undeclared (first use in this function)
   14 |         if(-EPS<x && x<=0) x = 0;
      |             ^~~
main.c:14:13: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#include<stdio.h>
int main(void){
  int  a,b,c,d,e,f,i
  double x,y;

  for(i=0;i<2;i++)
  scanf("%d %d %d %d %d %d",&a,&b,&c,&d,&e,&f);
  x=(c*e-f*e)/(a*e-b*d);
  y=(c*d-a*f)/(b*d-a*e);
  
  
  printf("%.3f %.3f ",x,y);
  
  return(0);
  
}

Compiler output:
main.c: In function 'main':
main.c:4:3: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'double'
    4 |   double x,y;
      |   ^~~~~~
main.c:6:7: error: 'i' undeclared (first use in this function)
    6 |   for(i=0;i<2;i++)
      |       ^
main.c:6:7: note: each undeclared identifier is reported only once for each function it appears in
main.c:8:3: error: 'x' undeclared (first use in this function)
    8 |   x=(c*e-f*e)/(a*e-b*d);
      |   ^
main.c:9:3: error: 'y' undeclared (first use in this function)
    9 |   y=(c*d-a*f)/(b*d-a*e);
      |   ^
Language: C

#include<stdio.h>
int main(void){
  int  a,b,c,d,e,f,i
  double x,y;

  for(i=0;i<2;i++){
  scanf("%d %d %d %d %d %d",&a,&b,&c,&d,&e,&f);
  x=(c*e-f*e)/(a*e-b*d);
  y=(c*d-a*f)/(b*d-a*e);
  
  
  printf("%.3f %.3f ",x,y);
  }
  return(0);
  
}

Compiler output:
main.c: In function 'main':
main.c:4:3: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'double'
    4 |   double x,y;
      |   ^~~~~~
main.c:6:7: error: 'i' undeclared (first use in this function)
    6 |   for(i=0;i<2;i++){
      |       ^
main.c:6:7: note: each undeclared identifier is reported only once for each function it appears in
main.c:8:3: error: 'x' undeclared (first use in this function)
    8 |   x=(c*e-f*e)/(a*e-b*d);
      |   ^
main.c:9:3: error: 'y' undeclared (first use in this function)
    9 |   y=(c*d-a*f)/(b*d-a*e);
      |   ^
Language: C


int main(void){
	int a,b,c,d,e,f;
	int i,countx=0,county=0;
	double x,y;
	double tempx,tempy;
	
	while(scanf("%d %d %d %d %d %d",&a,&b,&c,&d,&e,&f) != EOF){
	
		x = (double)(c*e-f*b)/(a*e-b*d);
		y = (double)-(c*d-f*a)/(a*e-b*d);

		tempx = x;
		tempy = y;
		for(i = 0;i < 4;i++){
			tempx *= 10;
			tempy *= 10;
		}
		if(-0.0005<x && x<=0){
			x=0;
		}
		if(-0.0005<y && y<=0){
			y=0;
		}

		while(1){
			tempx -= 1;
			countx++;
			if(countx == 10){
				countx = 0;
			}
			if((int)tempx % 10 == 0){
				break;
			}
		}
		while(1){
			tempy -= 1;
			county++;
			if(county == 10){
				county = 0;
			}
			if((int)tempy % 10 == 0){
				break;
			}
		}
		if(countx > 4){
			x += 0.001;
		}
		if(county > 4){
			y += 0.001;
		}

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

Compiler output:
main.c: In function 'main':
main.c:8:15: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    8 |         while(scanf("%d %d %d %d %d %d",&a,&b,&c,&d,&e,&f) != EOF){
      |               ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | 
main.c:8:15: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    8 |         while(scanf("%d %d %d %d %d %d",&a,&b,&c,&d,&e,&f) != EOF){
      |               ^~~~~
main.c:8:15: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:8:63: error: 'EOF' undeclared (first use in this function)
    8 |         while(scanf("%d %d %d %d %d %d",&a,&b,&c,&d,&e,&f) != EOF){
      |                                                               ^~~
main.c:8:63: note: 'EOF' is defined in header '<stdio.h>'; this is probably fixable by adding '#include <stdio.h>'
main.c:8:63: note: each undeclared identifier is reported only once for each function it appears in
main.c:53:17: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
   53 |                 printf("%.3f %.3f\n",(double)x,(double)y);
      |                 ^~~~~~
main.c:53:17: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:53:17: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:53:17: note: include '<stdio.h>' or provide a declaration of 'printf'
Language: C

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



int main()
{
double x1,x2,y1,c1,y2,c2,y,x;
while((scanf("%lf %lf %lf %lf %lf %lf",&x1,&x2,&y1,&y2,&c1,&c2))!=EOF)
{
x=((c1*y1-x2*c2)/(x1*c1-x2*y2));
y=((-(y2*y1)+x1*c2)/(x1*c1-x2*y2));
if(x==0)
{
x=0;
}
if(y==0)
{
y=0;
}
printf("%.3lf %.3lf\n",x,y);
}
return 0;
}

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

include<stdio.h>
int main()
{
  double a[6],num;
  int i;
  double ans[2];
  for(;;){
    for(i=0;i<6;i++){
      scanf("%lf",&a[i]);
    }
    num=a[0]*a[4]-a[1]*a[3];
    ans[0]=(a[4]*a[2]-a[1]*a[5])/num;
    ans[1]=(a[0]*a[5]-a[3]*a[2])/num;

    printf("%.3lf  %.3lf\n",ans[0],ans[1]);
  }
  return 0;
}

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

/*****************************************

               AOJ 0004
			   
*****************************************/


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


#include<stdio.h>

#define  NUM  10

int main(void)
{
	int i = 0;
	double a, b, c;
	double d, e, f;
	double x[NUM] = { 0 };
	double y[NUM] = { 0 };


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

		/* y????±??????? */
		b = b / a;
		c = c / a;
		a = 1;

		e = e / d;
		f = f / d;
		d = 1;

		b = b - e;
		c = c - f;

		y[i] = c / b;

		/* x????±??????? */
		a = a / b;
		c = c / b;
		b = 1;

		d = d / e;
		f = f / e;
		e = 1;

		a = a - d;
		c = c - f;

		x[i] = c / a;

		i++;
	}

	for (j = 0; j < i; j++) {
		printf("%.3f %.3f\n", x[j], y[j])
	}

	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:60:14: error: 'j' undeclared (first use in this function)
   60 |         for (j = 0; j < i; j++) {
      |              ^
main.c:60:14: note: each undeclared identifier is reported only once for each function it appears in
main.c:61:50: error: expected ';' before '}' token
   61 |                 printf("%.3f %.3f\n", x[j], y[j])
      |                                                  ^
      |                                                  ;
   62 |         }
      |         ~
Language: C

include <stdio.h>

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

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

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

int main(int argc, char* argv[])
{
        int a = atoi(argv[1]);
        int b = atoi(argv[2]);
        int c = atoi(argv[3]);
        int d = atoi(argv[4]);
        int e = atoi(argv[5]);
        int f = atoi(argv[6]);

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

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

        return 0;
}
~

Compiler output:
main.c:21:1: error: expected identifier or '(' before '~' token
   21 | ~
      | ^
Language: C

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

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

//#include<iostream>
#include<cstdio>
//using namespace std;
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-f*a)/(b*d-e*a);
  x=(c-b*y)/a;
  if(x==-0)x=0;
  if(y==-0)y=0;
  printf("%.3f %.3f\n",x,y);
  } 
  return 0;
}

Compiler output:
main.c:2:9: fatal error: cstdio: No such file or directory
    2 | #include<cstdio>
      |         ^~~~~~~~
compilation terminated.