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

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

int main(){
	double A[2][3],x,y;
	int i;

	/*
	printf("6つの実数を入力してください 例:6 3 4 8 9 1\n");
	scanf("%lf%lf%lf%lf%lf%lf",&A[0][0],&A[0][1],&A[0][2],&A[1][0],&A[1][1],&A[1][2]);

	printf("連立方程式%lfx+%lfy=%lf,%lfx+%lfy=%lfを解きます\n",A[0][0],A[0][1],A[0][2],A[1][0],A[1][1],A[1][2]);
	*/

	while(scanf("%lf%lf%lf%lf%lf%lf",&A[0][0],&A[0][1],&A[0][2],&A[1][0],&A[1][1],&A[1][2]) != EOF){
	
		//掃き出し法で
		for(i=2;i>=0;i--){
			A[0][i] /= A[0][0];
		}
	
		for(int i=2;i>=0;i--){
			A[1][i] -= A[0][i] * A[1][0];
		}

		if(A[1][1] == 0){
			if(A[1][2] == 0){
				printf("解はすべての実数\n");
			}else{
				printf("解無し\n");
			}
			return 0;
		}

		y = A[1][2] / A[1][1];
		x = A[0][2] - A[0][1]*y;

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

		x *= 1e+3;
		y *= 1e+3;

		//切上げ処理
		x = floor(x+0.5)*(1e-3);
		y = floor(y+0.5)*(1e-3);

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

	return 0;
}

Compiler output:
/usr/bin/ld: /tmp/ccpNQbJl.o: in function `main':
main.c:(.text+0x17d): undefined reference to `floor'
/usr/bin/ld: main.c:(.text+0x1ae): undefined reference to `floor'
collect2: error: ld returned 1 exit status
Language: C

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

int main(){
	double A[2][3],x,y;
	int i;

	/*
	printf("6つの実数を入力してください 例:6 3 4 8 9 1\n");
	scanf("%lf%lf%lf%lf%lf%lf",&A[0][0],&A[0][1],&A[0][2],&A[1][0],&A[1][1],&A[1][2]);

	printf("連立方程式%lfx+%lfy=%lf,%lfx+%lfy=%lfを解きます\n",A[0][0],A[0][1],A[0][2],A[1][0],A[1][1],A[1][2]);
	*/

	while(scanf("%lf%lf%lf%lf%lf%lf",&A[0][0],&A[0][1],&A[0][2],&A[1][0],&A[1][1],&A[1][2]) != EOF){
	
		//掃き出し法で
		for(i=2;i>=0;i--){
			A[0][i] /= A[0][0];
		}
	
		for(int i=2;i>=0;i--){
			A[1][i] -= A[0][i] * A[1][0];
		}

		if(A[1][1] == 0){
			if(A[1][2] == 0){
				printf("解はすべての実数\n");
			}else{
				printf("解無し\n");
			}
			return 0;
		}

		y = A[1][2] / A[1][1];
		x = A[0][2] - A[0][1]*y;

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

		x *= 1e+3;
		y *= 1e+3;

		//切上げ処理
		x = floor(x+0.5)*(1e-3);
		y = floor(y+0.5)*(1e-3);

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

	return 0;
}

Compiler output:
/usr/bin/ld: /tmp/ccYNew9X.o: in function `main':
main.c:(.text+0x17d): undefined reference to `floor'
/usr/bin/ld: main.c:(.text+0x1ae): undefined reference to `floor'
collect2: error: ld returned 1 exit status
Language: C

#include<math.h>

double a1,b1,c1,a2,b2,c2,delta,x,y;

int main(){
while(scanf("%lf%lf%lf%lf%lf%lf",&a1,&b1,&c1,&a2,&b2,&c2) != EOF){
  delta = a1*b2 - b1*a2;
  x = (c1*b2 - b1*c2)/delta;
  y = (a1*c2 - a2*c1)/delta;
  x = floor(10000*x+0.5)/10000;
  y = floor(10000*y+0.5)/10000;
 printf("%.3lf %.3lf\n",x,y);
 }
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:6:7: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    6 | while(scanf("%lf%lf%lf%lf%lf%lf",&a1,&b1,&c1,&a2,&b2,&c2) != EOF){
      |       ^~~~~
main.c:2:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
    1 | #include<math.h>
  +++ |+#include <stdio.h>
    2 | 
main.c:6:7: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    6 | while(scanf("%lf%lf%lf%lf%lf%lf",&a1,&b1,&c1,&a2,&b2,&c2) != EOF){
      |       ^~~~~
main.c:6:7: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:6:62: error: 'EOF' undeclared (first use in this function)
    6 | while(scanf("%lf%lf%lf%lf%lf%lf",&a1,&b1,&c1,&a2,&b2,&c2) != EOF){
      |                                                              ^~~
main.c:6:62: note: 'EOF' is defined in header '<stdio.h>'; this is probably fixable by adding '#include <stdio.h>'
main.c:6:62: note: each undeclared identifier is reported only once for each function it appears in
main.c:12:2: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
   12 |  printf("%.3lf %.3lf\n",x,y);
      |  ^~~~~~
main.c:12:2: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:12:2: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:12:2: note: include '<stdio.h>' or provide a declaration of 'printf'
Language: C

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

    }
    return 0;
}

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

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

Compiler output:
main.c: In function 'main':
main.c:7:1: error: 'i' undeclared (first use in this function)
    7 | i=c*d-a*f;
      | ^
main.c:7:1: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#include<cstdio>
#include<cmath>
#include<cstring>
#include<iostream>
#include<iterator>
#include<stack>
#include<queue>
#include<set>
#include<algorithm>
using namespace std;
float a,b,c,d,e,f;
void main()
{

  float x,y;
  scanf("%f%f%f%f%f%f",&a,&b,&c,&d,&e,&f);
  y=(c*d-a*f)/(b*d-a*e);
  x=(c-b*y)/a;
  printf("x=%3f,y=%3f",x,y);
} 

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

#include<cstdio>
#include<cmath>
#include<cstring>
#include<iostream>
#include<iterator>
#include<stack>
#include<queue>
#include<set>
#include<algorithm>
using namespace std;
double a,b,c,d,e,f;
int main()
{
double x,y,z;
    while(scanf("%lf%lf%lf%lf%lf%lf",&a,&b,&c,&d,&e,&f)!=EOF)
{
z=a*e-b*d;
x=c*e-b*f;
y=a*f-c*d;
printf("%.3f %.3f\n",x/z,y/z);
}
    return 0;
}

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

#include<cstdio>
#include<cmath>
#include<cstring>
#include<iostream>
#include<iterator>
#include<stack>
#include<queue>
#include<set>
#include<algorithm>
using namespace std;
double a,b,c,d,e,f;
int main()
{
double x,y,z;
    while(scanf("%lf%lf%lf%lf%lf%lf",&a,&b,&c,&d,&e,&f)!=EOF)
{
z=a*e-b*d;
x=c*e-b*f;
y=a*f-c*d;
printf("x= %.3f y= %.3f\n",x/z,y/z);
}
    return 0;
}

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

#include <stdio.h>
     
        int main(void){
          dobule a,b,c,d,e,f,x,y;
           while (( scanf("%lf %lf %lf %lf %lf %lf",&a,&b,&c,&d,&e,&f);) != EOF){
                   x =(ce-fb)/(ae-db);
                   y =(cd-af)/(bd-ae);
          printf("%lf %lf\n",x,y);
              }
                  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:4:11: error: unknown type name 'dobule'; did you mean 'double'?
    4 |           dobule a,b,c,d,e,f,x,y;
      |           ^~~~~~
      |           double
main.c:5:71: error: expected ')' before ';' token
    5 |            while (( scanf("%lf %lf %lf %lf %lf %lf",&a,&b,&c,&d,&e,&f);) != EOF){
      |                   ~                                                   ^
      |                                                                       )
main.c:6:24: error: 'ce' undeclared (first use in this function); did you mean 'e'?
    6 |                    x =(ce-fb)/(ae-db);
      |                        ^~
      |                        e
main.c:6:24: note: each undeclared identifier is reported only once for each function it appears in
main.c:6:27: error: 'fb' undeclared (first use in this function); did you mean 'f'?
    6 |                    x =(ce-fb)/(ae-db);
      |                           ^~
      |                           f
main.c:6:32: error: 'ae' undeclared (first use in this function); did you mean 'e'?
    6 |                    x =(ce-fb)/(ae-db);
      |                                ^~
      |                                e
main.c:6:35: error: 'db' undeclared (first use in this function); did you mean 'd'?
    6 |                    x =(ce-fb)/(ae-db);
      |                                   ^~
      |                                   d
main.c:7:24: error: 'cd' undeclared (first use in this function); did you mean 'd'?
    7 |                    y =(cd-af)/(bd-ae);
      |                        ^~
      |                        d
main.c:7:27: error: 'af' undeclared (first use in this function); did you mean 'f'?
    7 |                    y =(cd-af)/(bd-ae);
      |                           ^~
      |                           f
main.c:7:32: error: 'bd' undeclared (first use in this function); did you mean 'd'?
    7 |                    y =(cd-af)/(bd-ae);
      |                                ^~
      |                                d
Language: C

#include <stdio.h>
      
        int main(void){
          double a,b,c,d,e,f,x,y;
           while (( scanf("%lf %lf %lf %lf %lf %lf",&a,&b,&c,&d,&e,&f);) != EOF){
                   x =(ce-fb)/(ae-db);
                   y =(cd-af)/(bd-ae);
          printf("%lf %lf\n",x,y);
              }
                  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:5:71: error: expected ')' before ';' token
    5 |            while (( scanf("%lf %lf %lf %lf %lf %lf",&a,&b,&c,&d,&e,&f);) != EOF){
      |                   ~                                                   ^
      |                                                                       )
main.c:6:24: error: 'ce' undeclared (first use in this function); did you mean 'e'?
    6 |                    x =(ce-fb)/(ae-db);
      |                        ^~
      |                        e
main.c:6:24: note: each undeclared identifier is reported only once for each function it appears in
main.c:6:27: error: 'fb' undeclared (first use in this function); did you mean 'f'?
    6 |                    x =(ce-fb)/(ae-db);
      |                           ^~
      |                           f
main.c:6:32: error: 'ae' undeclared (first use in this function); did you mean 'e'?
    6 |                    x =(ce-fb)/(ae-db);
      |                                ^~
      |                                e
main.c:6:35: error: 'db' undeclared (first use in this function); did you mean 'd'?
    6 |                    x =(ce-fb)/(ae-db);
      |                                   ^~
      |                                   d
main.c:7:24: error: 'cd' undeclared (first use in this function); did you mean 'd'?
    7 |                    y =(cd-af)/(bd-ae);
      |                        ^~
      |                        d
main.c:7:27: error: 'af' undeclared (first use in this function); did you mean 'f'?
    7 |                    y =(cd-af)/(bd-ae);
      |                           ^~
      |                           f
main.c:7:32: error: 'bd' undeclared (first use in this function); did you mean 'd'?
    7 |                    y =(cd-af)/(bd-ae);
      |                                ^~
      |                                d
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:4:11: error: unknown type name 'dobule'; did you mean 'double'?
    4 |           dobule a,b,c,d,e,f,x,y;
      |           ^~~~~~
      |           double
main.c:5:71: error: expected ')' before ';' token
    5 |            while (( scanf("%lf %lf %lf %lf %lf %lf",&a,&b,&c,&d,&e,&f);) != EOF){
      |                   ~                                                   ^
      |                                                                       )
Language: C

#include <stdio.h>
       
        int main(void){
          double a,b,c,d,e,f,x,y;　int xx,yy;
           while (( scanf("%lf %lf %lf %lf %lf %lf",&a,&b,&c,&d,&e,&f)) != EOF){
                   x =(c*e-f*b)/(a*e-d*b);
                   y =(c*d-a*f)/(b*d-a*e);
               xx = x*1000;
               yy = y*1000;
              x =xx; x=x/1000; y=yy; y=y/1000;

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

Compiler output:
main.c: In function 'main':
main.c:4:34: error: stray '\343' in program
    4 |           double a,b,c,d,e,f,x,y;<U+3000>int xx,yy;
      |                                  ^~~~~~~~
Language: C

#include <stdio.h>
       
        int main(void){
          double a,b,c,d,e,f,x,y;　int xx,yy;
           while (( scanf("%lf %lf %lf %lf %lf %lf",&a,&b,&c,&d,&e,&f)) != EOF){
                   x =(c*e-f*b)/(a*e-d*b);
                   y =(c*d-a*f)/(b*d-a*e);
               xx = x*1000;
               yy = y*1000;
         x =xx; x=x/1000; y=yy; y=y/1000;

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

Compiler output:
main.c: In function 'main':
main.c:4:34: error: stray '\343' in program
    4 |           double a,b,c,d,e,f,x,y;<U+3000>int xx,yy;
      |                                  ^~~~~~~~
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:4:34: error: stray '\343' in program
    4 |           double a,b,c,d,e,f,x,y;<U+3000>int xx,yy;
      |                                  ^~~~~~~~
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:4:34: error: stray '\343' in program
    4 |           double a,b,c,d,e,f,x,y;<U+3000>int xx,yy;
      |                                  ^~~~~~~~
Language: C

#include<stdio.h>

int main(){

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

		printf("%1.4f%1.4f",x,y);

	}
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:7:48: error: expected expression before ',' token
    7 |         while(scanf("%d%d%d%d%d%d",&a,&b,&c,&d,,&e,&f) != EOF){
      |                                                ^
Language: C

#include<stdio.h>

int main(){
	int a,b,c,d,e,f;
	double x,y;
	
	while(scanf("%d%d%d%d%d%d%d",a,b,c,d,e,f){
		y = (double) (c*d-a*f) / (b*d-a*e);
		x = (double) (c*e-b*f) / (a*e-b*d);
		
		printf("%0.3f %0.3f",x,y);
	}
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:7:50: error: expected ')' before '{' token
    7 |         while(scanf("%d%d%d%d%d%d%d",a,b,c,d,e,f){
      |              ~                                   ^
      |                                                  )
main.c:14:1: error: expected expression before '}' token
   14 | }
      | ^
Language: C

#include"bign.h"
int main(){
	printf("claimer(P) select a random numble r(1<=r<=q-1)");
	printf(",calculate x,then send (Cerp,x) to verifier(V):");
	cin>>r;
	cout<<r;
	x=pow(b,r,p);
	cout<<" "<<x;
	printf("verifier(V) select a numble e(1<=e<=2^t-1),send e to claimer(P)");
	cin>>e;
	cout<<e;
	y=(r+s*e)%q;
	printf("claimer(P) calculate y=(se+r)mod q),send verifier(V)");
	printf("verifier(V) verify x=(b^y+v^e)mod,if true,authentication succeed!!!");
	mid=pow(b,y,q)*pow(v,e,q)%mod;
	if(mid==x)
		cout<<"YES"<<endl;
	else
		cout<<"NO"<<endl;
	return 0;
}

Compiler output:
main.c:1:9: fatal error: bign.h: No such file or directory
    1 | #include"bign.h"
      |         ^~~~~~~~
compilation terminated.
Language: C

#include<stdio.h>

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

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

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

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

  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:5:9: error: redeclaration of 'det' with no linkage
    5 |   float det;
      |         ^~~
main.c:4:21: note: previous declaration of 'det' with type 'float'
    4 |   float a,b,c,d,e,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){
		y = (c * d - a * f) / (b * d - e * a);
		y *= 1000;
		if(y > 0) y += 0.5;
		if(y < 0) y -= 0.5;
		y = floot(y);
		y /= 1000;
		x = (c - b * y) / a;
		x *= 1000;
		if(x > 0) x += 0.5;
		if(x < 0) x -= 0.5;
		x = floot(x);
		x /= 1000;
		printf("%.3f %.3f\n", x, y);
	}
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:11:21: error: implicit declaration of function 'floot' [-Wimplicit-function-declaration]
   11 |                 y = floot(y);
      |                     ^~~~~
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 = (c*d)-(a*f) /(b*d)-(a*e);
  x = ((c-b*y)/a;
  printf("%.3lf %.3lf\n",x,y);
 }
return 0;
}

Compiler output:
main.c: In function 'main':
main.c:7:17: error: expected ')' before ';' token
    7 |   x = ((c-b*y)/a;
      |       ~         ^
      |                 )
main.c:8:31: error: expected ';' before '}' token
    8 |   printf("%.3lf %.3lf\n",x,y);
      |                               ^
      |                               ;
    9 |  }
      |  ~
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:11:24: error: expected ';' before 'r'
   11 |         printf("%d,%d")
      |                        ^
      |                        ;
   12 |         r=scanf("%lf %lf %lf %lf %lf %lf",&a,&b,&c,&d,&e,&f);
      |         ~
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:9:24: error: expected ';' before 'r'
    9 |         printf("%d %d")
      |                        ^
      |                        ;
   10 |         r=scanf("%lf %lf %lf %lf %lf %lf",&a,&b,&c,&d,&e,&f);
      |         ~
Language: C

#include<stdio.h>
int main(void){
    double a,b,c,d,e,f,x,y,return;
    int p,q;
    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=((c*d)-(a*f))/((b*d)-(a*e));
        p=(int)(x*10000);
        q=(int)(y*10000);
        if((p%10)<=4){
            p/=10;
        }else{
            p/=10;
            p++;
        }
        if((q%10)<=4){
            q/=10;
        }else{
            q/=10;
            q++;
        }
        x=(double)p/1000;
        y=(double)q/1000;
        printf("%f %f\n",x,y);
    }
    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:3:28: error: expected identifier or '(' before 'return'
    3 |     double a,b,c,d,e,f,x,y,return;
      |                            ^~~~~~
Language: C


#include <cstdio>

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

int main()
{
	while (~scanf("%lf%lf%lf%lf%lf%lf",&a,&b,&c,&d,&e,&f))
	{
		x = (c*e-f*b)/(a*e-d*b);
		y = (c-a*x)/b;
		printf("%.3f %.3f\n",x+(1e-10),y+(1e-10));
	}
}

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


#include <cstdio>

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

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

Compiler output:
main.c:2:10: 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;
  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);
    if(x==-0){
      x=0;
    }
    y=(d*c-a*f)/(d*b-a*e);
    if(y==-0){
      y=0;
    }
    cout << x <<" "<< y << endl;
  }

  return 0;
}

Compiler output:
main.c:1:9: fatal error: iostream: No such file or directory
    1 | #include<iostream>
      |         ^~~~~~~~~~
compilation terminated.
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/a-(b*(a*f-d*c))/(a*a*e-a*d*b)
y=(a*f-d*c)/(a*e-d*b);
printf("%4.3f %4.3f\n",x,y);
}

return 0;
}

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

#include <stdio.h>
int main(void){
    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-b*(a/d))/(f-e*(a/d));
        x=(c-b*y)/a
        printf("%.3f %.3f\n");
    }
    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:6:20: error: expected ';' before 'printf'
    6 |         x=(c-b*y)/a
      |                    ^
      |                    ;
    7 |         printf("%.3f %.3f\n");
      |         ~~~~~~
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:6:20: error: expected ';' before 'printf'
    6 |         x=(c-b*y)/a
      |                    ^
      |                    ;
    7 |         printf("%.3f %.3f\n",x,y);
      |         ~~~~~~
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){
x=(c*e-f*b)/(a*e-d*b);
y=(c*d-f*a)/(b*d-e*a);
if((int)(x==0)x=0;
if((int)(y==0)y=0;
printf("%.3f %.3f\n",x,y);
}
}

Compiler output:
main.c: In function 'main':
main.c:7:15: error: expected ')' before 'x'
    7 | if((int)(x==0)x=0;
      |   ~           ^
      |               )
main.c:11:1: error: expected expression before '}' token
   11 | }
      | ^
main.c:11:1: error: expected declaration or statement at end of input
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){
x=(c*e-f*b)/(a*e-d*b);
y=(c*d-f*a)/(b*d-e*a);
if((int)(x==0)x=0;
if((int)(y==0)y=0;
printf("%.3f %.3f\n",x,y);
}
return 0;
}

Compiler output:
main.c: In function 'main':
main.c:7:15: error: expected ')' before 'x'
    7 | if((int)(x==0)x=0;
      |   ~           ^
      |               )
main.c:12:1: error: expected expression before '}' token
   12 | }
      | ^
main.c:12:1: error: expected declaration or statement at end of input
Language: C

float d,b,f,e,c,a;main(X){~scanf("%f",&a+--X)?main(X+5?X:!!printf("%.3f %.3f\n",(e-c*d)/a,d/=a*b-c*f,d=a*d-f*e)):0}

Compiler output:
main.c:1:19: error: return type defaults to 'int' [-Wimplicit-int]
    1 | float d,b,f,e,c,a;main(X){~scanf("%f",&a+--X)?main(X+5?X:!!printf("%.3f %.3f\n",(e-c*d)/a,d/=a*b-c*f,d=a*d-f*e)):0}
      |                   ^~~~
main.c: In function 'main':
main.c:1:19: error: type of 'X' defaults to 'int' [-Wimplicit-int]
main.c:1:28: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    1 | float d,b,f,e,c,a;main(X){~scanf("%f",&a+--X)?main(X+5?X:!!printf("%.3f %.3f\n",(e-c*d)/a,d/=a*b-c*f,d=a*d-f*e)):0}
      |                            ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | float d,b,f,e,c,a;main(X){~scanf("%f",&a+--X)?main(X+5?X:!!printf("%.3f %.3f\n",(e-c*d)/a,d/=a*b-c*f,d=a*d-f*e)):0}
main.c:1:28: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    1 | float d,b,f,e,c,a;main(X){~scanf("%f",&a+--X)?main(X+5?X:!!printf("%.3f %.3f\n",(e-c*d)/a,d/=a*b-c*f,d=a*d-f*e)):0}
      |                            ^~~~~
main.c:1:28: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:1:60: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
    1 | float d,b,f,e,c,a;main(X){~scanf("%f",&a+--X)?main(X+5?X:!!printf("%.3f %.3f\n",(e-c*d)/a,d/=a*b-c*f,d=a*d-f*e)):0}
      |                                                            ^~~~~~
main.c:1:60: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:1:60: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:1:60: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:1:115: error: expected ';' before '}' token
    1 | float d,b,f,e,c,a;main(X){~scanf("%f",&a+--X)?main(X+5?X:!!printf("%.3f %.3f\n",(e-c*d)/a,d/=a*b-c*f,d=a*d-f*e)):0}
      |                                                                                                                   ^
      |                                                                                                                   ;
Language: C

#include<stdio.h>

int main(void){
  int a,b,c,d,e,f;
  double ansx,ansy;
 scanf("%d %d %d %d %d %d",a,b,c,d,e,f);
 
 ansy = (b*f-c*e)/(a*f-c*d);
 ansx = (f - e*ansy)/d;
 
 printf("%f %f\n" ,anx,ansy);

return 0;
}

Compiler output:
main.c: In function 'main':
main.c:11:20: error: 'anx' undeclared (first use in this function); did you mean 'ansx'?
   11 |  printf("%f %f\n" ,anx,ansy);
      |                    ^~~
      |                    ansx
main.c:11:20: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#include<stdio.h>
double determinant(double a, double b, double c, double d)
{
	return (a * d) - (b * c);
}

int main(void)
{
	double a, b, c, d, e, f;
	double A, D1, D2;
	double x, y, X, Y;
	
	while(scanf("%lf %lf %lf %lf %lf %lf", &a, &b, &c, &d, &e, &f);)
	{
		A = determinant(a, b, d, e);
		D1 = determinant(c, b, f, e);
		D2 = determinant(a, c, d, f);
		x = D1 / A;
		y = D2 / A;
		
		if(x >= 0 && y >= 0)
		{
			printf("%.3f %.3f", (x + 0.0005), (y + 0.0005));
		}
		else if(x < 0 && y >= 0)
		{
			printf("%.3f %.3f", (x - 0.0005), (y - 0.0005));
		}
		else if(x >= 0 && y < 0)
		{
			printf("%.3f %.3f", (x + 0.0005), (y - 0.0005));
		}
		else
		{
			printf("%.3f %.3f", (x + 0.0005), (y + 0.0005));
		}
	}
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:13:71: error: expected ')' before ';' token
   13 |         while(scanf("%lf %lf %lf %lf %lf %lf", &a, &b, &c, &d, &e, &f);)
      |              ~                                                        ^
      |                                                                       )
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=(c*d-a*f)/(b*d-a*e);

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

return 0;
	

Compiler output:
main.c: In function 'main':
main.c:16:1: error: expected declaration or statement at end of input
   16 | return 0;
      | ^~~~~~
Language: C

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

float round_f(float x) {
    if ( x > 0.0 ) {
        return floor(x + 0.005);
    } else {
        return -1.0 * floor(fabs(x) + 0.005);
    }
}

int main(){
float a,b,c,d,e,f,x,y;
while(scanf("%d %d %d %d %d %d",&a,&b,&c,&d,&e,&f)!=EOF){
x=(bf-ce)/(bd-ae);
x=round_f(x);
y=(af-cd)/(ae-bd);
y=roundf_(y);
printf("%.3f %.3f",x,y);
}
return 0;
}

Compiler output:
main.c: In function 'main':
main.c:15:4: error: 'bf' undeclared (first use in this function); did you mean 'f'?
   15 | x=(bf-ce)/(bd-ae);
      |    ^~
      |    f
main.c:15:4: note: each undeclared identifier is reported only once for each function it appears in
main.c:15:7: error: 'ce' undeclared (first use in this function); did you mean 'e'?
   15 | x=(bf-ce)/(bd-ae);
      |       ^~
      |       e
main.c:15:12: error: 'bd' undeclared (first use in this function); did you mean 'd'?
   15 | x=(bf-ce)/(bd-ae);
      |            ^~
      |            d
main.c:15:15: error: 'ae' undeclared (first use in this function); did you mean 'e'?
   15 | x=(bf-ce)/(bd-ae);
      |               ^~
      |               e
main.c:17:4: error: 'af' undeclared (first use in this function); did you mean 'f'?
   17 | y=(af-cd)/(ae-bd);
      |    ^~
      |    f
main.c:17:7: error: 'cd' undeclared (first use in this function); did you mean 'd'?
   17 | y=(af-cd)/(ae-bd);
      |       ^~
      |       d
main.c:18:3: error: implicit declaration of function 'roundf_'; did you mean 'round_f'? [-Wimplicit-function-declaration]
   18 | y=roundf_(y);
      |   ^~~~~~~
      |   round_f
Language: C

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

float round_f(float x) {
    if ( x > 0.0 ) {
        return floor(x + 0.005);
    } else {
        return -1.0 * floor(fabs(x) + 0.005);
    }
}

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

Compiler output:
main.c: In function 'main':
main.c:15:8: error: 'ce' undeclared (first use in this function); did you mean 'e'?
   15 | x=(b*f-ce)/(b*d-a*e);
      |        ^~
      |        e
main.c:15:8: note: each undeclared identifier is reported only once for each function it appears in
main.c:18:3: error: implicit declaration of function 'roundf_'; did you mean 'round_f'? [-Wimplicit-function-declaration]
   18 | y=roundf_(y);
      |   ^~~~~~~
      |   round_f
Language: C

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

float round_f(float x) {
    if ( x > 0.0 ) {
        return floor(x + 0.005);
    } else {
        return -1.0 * floor(fabs(x) + 0.005);
    }
}

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

Compiler output:
main.c: In function 'main':
main.c:18:3: error: implicit declaration of function 'roundf_'; did you mean 'round_f'? [-Wimplicit-function-declaration]
   18 | y=roundf_(y);
      |   ^~~~~~~
      |   round_f
Language: C

#include <stdio.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);
    }
}

#include <stdio.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 num1[100],num2[100],num3[100],num4[100],num5[100],num6[100],x=0.0,y=0.0;
int i,count=0;
for(i=0;i<2;i++){
if(scanf("%lf %lf %lf %lf %lf %lf",&num1[i],&num2[i],&num3[i],&num4[i],&num5[i],&num6[i])==EOF)break;
count++;
}
for(i=0;i<count;i++){
if((num1[i]==0&&num4[i]==0)!=1&&(num2[i]==0&&num5[i])!=1&&(num1[i]==0&&num2[i]==0)!=1&&(num4[i]==0&&num5[i]==0)!=1&&(num2[i]*num4[i]-num1[i]*num5[i])!=0.0){
if(num1[i]==0.0){y=num3[i]/num2[i];x=num6[i]/num4[i]-num3[i]*num5[i]/num2[i]*num4[i];}
else if(num2[i]==0.0){x=num3[i]/num1[i];y=num6[i]/num5[i]-num3[i]*num4[i]/num1[i]*num5[i];}
else if(num4[i]==0.0){y=num6[i]/num5[i];x=num3[i]/num1[i]-num2[i]*num6[i]/num1[i]*num5[i];}
else if(num5[i]==0.0){x=num6[i]/num4[i];y=num3[i]/num2[i]-num1[i]*num6[i]/num2[i]*num4[i];}
else{
x=(num2[i]*num6[i]-num3[i]*num5[i])/(num2[i]*num4[i]-num1[i]*num5[i]);
x=round_d(x*1000.0)/1000.0;
y=(num1[i]*num6[i]-num3[i]*num4[i])/(num1[i]*num5[i]-num2[i]*num4[i]);
y=round_d(y*1000.0)/1000.0;
}
}
printf("%.3f %.3f\n",x,y);
}
return 0;
}

Compiler output:
main.c:15:8: error: redefinition of 'round_d'
   15 | double round_d(double x) {
      |        ^~~~~~~
main.c:4:8: note: previous definition of 'round_d' with type 'double(double)'
    4 | double round_d(double x) {
      |        ^~~~~~~
Language: C

#include <stdio.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 num1[10000],num2[10000],num3[10000],num4[10000],num5[10000],num6[10000],x=0.0,y=0.0;
while(scanf("%lf %lf %lf %lf %lf %lf",&num1[i],&num2[i],&num3[i],&num4[i],&num5[i],&num6[i])!=EOF){
if((num1[i]==0&&num4[i]==0)!=1&&(num2[i]==0&&num5[i])!=1&&(num1[i]==0&&num2[i]==0)!=1&&(num4[i]==0&&num5[i]==0)!=1&&(num2[i]*num4[i]-

num1[i]*num5[i])!=0.0){
if(num1[i]==0.0){y=num3[i]/num2[i];x=num6[i]/num4[i]-num3[i]*num5[i]/num2[i]*num4[i];}
else if(num2[i]==0.0){x=num3[i]/num1[i];y=num6[i]/num5[i]-num3[i]*num4[i]/num1[i]*num5[i];}
else if(num4[i]==0.0){y=num6[i]/num5[i];x=num3[i]/num1[i]-num2[i]*num6[i]/num1[i]*num5[i];}
else if(num5[i]==0.0){x=num6[i]/num4[i];y=num3[i]/num2[i]-num1[i]*num6[i]/num2[i]*num4[i];}
else{
x=(num2[i]*num6[i]-num3[i]*num5[i])/(num2[i]*num4[i]-num1[i]*num5[i]);
x=round_d(x*1000.0)/1000.0;
y=(num1[i]*num6[i]-num3[i]*num4[i])/(num1[i]*num5[i]-num2[i]*num4[i]);
y=round_d(y*1000.0)/1000.0;
}
}
printf("%.3f %.3f\n",x,y);
}
return 0;
}

Compiler output:
main.c: In function 'main':
main.c:14:45: error: 'i' undeclared (first use in this function)
   14 | while(scanf("%lf %lf %lf %lf %lf %lf",&num1[i],&num2[i],&num3[i],&num4[i],&num5[i],&num6[i])!=EOF){
      |                                             ^
main.c:14:45: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#include <stdio.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 num1,num2,num3,num4,num5,num6,x=0.0,y=0.0;
while(scanf("%lf %lf %lf %lf %lf %lf",&num1,&num2,&num3,&num4,&num5,&num6)!=EOF){
if((num1==0&&num4==0)!=1&&(num2==0&&num5)!=1&&(num1==0&&num2==0)!=1&&(num4==0&&num5==0)!=1&&(num2*num4-num1*num5)!=0.0){
if(num1==0.0){y=num3/num2;x=num6/num4-num3*num5/num2*num4;}
else if(num2==0.0){x=num3/num1;y=num6/num5-num3*num4/num1*num5;}
else if(num4==0.0){y=num6/num5;x=num3/num1-num2*num6/num1*num5;}
else if(num5==0.0){x=num6/num4;y=num3/num2-num1*num6/num2*num4;}
else{
x=(num2*num6-num3*num5)/(num2*num4-num1*num5);
x=round_d(x*1000.0)/1000.0;
y=(num1*num6-num3*num4)/(num1*num5-num2*num4);
y=round_d(y*1000.0)/1000.0;
}
else{break;}
}
printf("%.3f %.3f\n",x,y);
}
return 0;
}

Compiler output:
main.c: In function 'main':
main.c:26:1: error: expected '}' before 'else'
   26 | else{break;}
      | ^~~~
main.c: At top level:
main.c:30:1: error: expected identifier or '(' before 'return'
   30 | return 0;
      | ^~~~~~
main.c:31:1: error: expected identifier or '(' before '}' token
   31 | }
      | ^
Language: C

#include <stdio.h>

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

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

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

Compiler output:
main.c: In function 'main':
main.c:7:21: error: 'buff' undeclared (first use in this function)
    7 |         while(scanf(buff,("%lf %lf %lf %lf %lf %lf"), &a, &b, &c, &d, &e, &f) != 6){
      |                     ^~~~
main.c:7:21: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#include <stdio.h>
 
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) == 6) {
 
            if( a < -1000 || a > 1000 ||
                b < -1000 || b > 1000 ||
                c < -1000 || d > 1000 ||
                d < -1000 || d > 1000 ||
                e < -1000 || e > 1000 ||
                f < -1000 || f > 1000
                ) break;
 
            x = (c*e - f*b) / (a*e - b*d);
            y = (c*d - f*a) / (b*d - a*e);
 
            printf("%.3f %.3f\n",x ,y);
        }
    }
    return 0;
}

Compiler output:
main.c:23:5: error: expected identifier or '(' before 'return'
   23 |     return 0;
      |     ^~~~~~
main.c:24:1: error: expected identifier or '(' before '}' token
   24 | }
      | ^
Language: C

#include <stdio.h>
 
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) == 6) {
            x = (c*e - f*b) / (a*e - b*d);
            y = (c*d - f*a) / (b*d - a*e);
             printf("%.3f %.3f\n",x ,y);
        }
    }
    return 0;
}

Compiler output:
main.c:13:5: error: expected identifier or '(' before 'return'
   13 |     return 0;
      |     ^~~~~~
main.c:14:1: error: expected identifier or '(' before '}' token
   14 | }
      | ^
Language: C

#include<stdio.h>

int det(int a00, int a01, int a10, int a11)
{
	return a00*a11 - a01*a10;
}

int main()
{
	int a, b, c, d, e, f;
	while (cin >> a >> b >> c >> d >> e >> f)
	{
		int t = det(a, b, d, e);
		printf("%.3f %.3f\n", (double)det(c, b, f, e) / t, (double)det(a, c, d, f) / t);
	}
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:11:16: error: 'cin' undeclared (first use in this function)
   11 |         while (cin >> a >> b >> c >> d >> e >> f)
      |                ^~~
main.c:11:16: 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;
	int num1=0,num2=0;
	int x=0,y=0;
	
	 while (scanf("%lf %lf %lf %lf %lf %lf", &ax, &by, &c, &dx, &ey, &f) != EOF) {
        y = (c * dx - ax * f) / (by * dx - ax * ey);
        x = (c - by * y) / ax;
        printf("%.3lf %.3lf\n", x, y);

	}
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:9:51: error: 'ax' undeclared (first use in this function); did you mean 'x'?
    9 |          while (scanf("%lf %lf %lf %lf %lf %lf", &ax, &by, &c, &dx, &ey, &f) != EOF) {
      |                                                   ^~
      |                                                   x
main.c:9:51: note: each undeclared identifier is reported only once for each function it appears in
main.c:9:56: error: 'by' undeclared (first use in this function); did you mean 'y'?
    9 |          while (scanf("%lf %lf %lf %lf %lf %lf", &ax, &by, &c, &dx, &ey, &f) != EOF) {
      |                                                        ^~
      |                                                        y
main.c:9:65: error: 'dx' undeclared (first use in this function); did you mean 'x'?
    9 |          while (scanf("%lf %lf %lf %lf %lf %lf", &ax, &by, &c, &dx, &ey, &f) != EOF) {
      |                                                                 ^~
      |                                                                 x
main.c:9:70: error: 'ey' undeclared (first use in this function); did you mean 'y'?
    9 |          while (scanf("%lf %lf %lf %lf %lf %lf", &ax, &by, &c, &dx, &ey, &f) != EOF) {
      |                                                                      ^~
      |                                                                      y
Language: C

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

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

  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:10:24: error: 'ds' undeclared (first use in this function); did you mean 'd'?
   10 |     det=(double)(a*e-b*ds);
      |                        ^~
      |                        d
main.c:10:24: note: each undeclared identifier is reported only once for each function it appears in
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:15:5: error: expected declaration or statement at end of input
   15 |     return 0;
      |     ^~~~~~
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:17:5: error: expected declaration or statement at end of input
   17 |     return 0;
      |     ^~~~~~
Language: C

#include <stdio.h>

int main(void) {
	int a, b, c, d, e, f;
	while(scanf("%d %d %d %d %d %d"), &a, &b, &c, &d, &e, &f) == 6) {
		printf("%5.3f %5.3f\n", (c*e-b*f)/(a*e-b*d)+0.0005, (d*a-c*b)/(a*e-d*b)+0.0005);
	}
	
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:5:67: error: expected expression before '==' token
    5 |         while(scanf("%d %d %d %d %d %d"), &a, &b, &c, &d, &e, &f) == 6) {
      |                                                                   ^~
main.c:5:71: error: expected statement before ')' token
    5 |         while(scanf("%d %d %d %d %d %d"), &a, &b, &c, &d, &e, &f) == 6) {
      |                                                                       ^
Language: C

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

int main(void) {
	int A1, B1, E1, A2, B2, E2;
	double x, y;
	while(scanf("%d %d %d %d %d %d", &A1, &B1, &E1, &A2, &B2, &E2) == 6) {
		x = round(1.0*(E1*B2-B1*E2)/(A1*B2-B1*A2), 3);
		y = round(1.0*(E2*A1-E1*A2)/(A1*B2-A2*B1), 3);
		
		printf("%.3f %3f", x, y);
	}
	
	return 0;
}

double round(double src, int n) {
    double dst;
    
    dst = src * pow(10, -n - 1);
    dst = (double)(int)(dst + 0.5);
    
    return dst * pow(10, n + 1);
}

Compiler output:
main.c: In function 'main':
main.c:8:21: error: too many arguments to function 'round'
    8 |                 x = round(1.0*(E1*B2-B1*E2)/(A1*B2-B1*A2), 3);
      |                     ^~~~~
In file included from /usr/include/features.h:523,
                 from /usr/include/x86_64-linux-gnu/bits/libc-header-start.h:33,
                 from /usr/include/stdio.h:28,
                 from main.c:1:
/usr/include/x86_64-linux-gnu/bits/mathcalls.h:334:1: note: declared here
  334 | __MATHCALLX (round,, (_Mdouble_ __x), (__const__));
      | ^~~~~~~~~~~
main.c:9:21: error: too many arguments to function 'round'
    9 |                 y = round(1.0*(E2*A1-E1*A2)/(A1*B2-A2*B1), 3);
      |                     ^~~~~
/usr/include/x86_64-linux-gnu/bits/mathcalls.h:334:1: note: declared here
  334 | __MATHCALLX (round,, (_Mdouble_ __x), (__const__));
      | ^~~~~~~~~~~
main.c: At top level:
main.c:17:8: error: conflicting types for 'round'; have 'double(double,  int)'
   17 | double round(double src, int n) {
      |        ^~~~~
/usr/include/x86_64-linux-gnu/bits/mathcalls.h:334:1: note: previous declaration of 'round' with type 'double(double)'
  334 | __MATHCALLX (round,, (_Mdouble_ __x), (__const__));
      | ^~~~~~~~~~~
Language: C

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

    a[2]*=1000;
    c[0]=a[2];
    a[2]=c[0];
    a[2]/=1000;
    a[5]*=1000;
    c[1]=a[5];
    a[5]=c[1];
    a[5]/=1000;
    printf("%.3lf %.3lf\n",a[2],a[5]);
    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:16:12: error: expected ';' before 'a'
   16 |     a[0]/=b
      |            ^
      |            ;
   17 |     a[1]/=b;
      |     ~
Language: C

#include <stdio.h>

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

Compiler output:
main.c: In function 'main':
main.c:5:18: error: both 'unsigned' and 'double' in declaration specifiers
    5 |         unsigned double x, y;
      |                  ^~~~~~
Language: C

#include <stdio.h>
 
int func(int a ,int b,int c,int d,int e,int f){
	return (c*e-b*f)/(a*e-b*d);
}

int main(int argc, const char * argv[])
{
 
    double ax, by, c, dx, ey, f;
    double x, y;
     
    while (scanf("%lf %lf %lf %lf %lf %lf", &ax, &by, &c, &dx, &ey, &f) != EOF) {
        x=func(a,b,c,d,e,f);
				y=((c-(ax*x))/by);
        printf("%.3lf %.3lf\n", x, y);
    }
     
    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:14:16: error: 'a' undeclared (first use in this function)
   14 |         x=func(a,b,c,d,e,f);
      |                ^
main.c:14:16: note: each undeclared identifier is reported only once for each function it appears in
main.c:14:18: error: 'b' undeclared (first use in this function)
   14 |         x=func(a,b,c,d,e,f);
      |                  ^
main.c:14:22: error: 'd' undeclared (first use in this function)
   14 |         x=func(a,b,c,d,e,f);
      |                      ^
main.c:14:24: error: 'e' undeclared (first use in this function)
   14 |         x=func(a,b,c,d,e,f);
      |                        ^
Language: C

#include <stdio.h>

int func(int a ,int b,int c,int d,int e,int f){
	return (c*e-b*f)/(a*e-b*d);
}

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

Compiler output:
main.c: In function 'main':
main.c:7:16: error: unterminated comment
    7 | int main(void){/*
      |                ^
main.c:7:1: error: expected declaration or statement at end of input
    7 | int main(void){/*
      | ^~~
Language: C

#include <stdio.h>

int func(int a ,int b,int c,int d,int e,int f){
	return (c*e-b*f)/(a*e-b*d);
}

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

Compiler output:
main.c: In function 'main':
main.c:7:16: error: unterminated comment
    7 | int main(void){/*
      |                ^
main.c:7:1: error: expected declaration or statement at end of input
    7 | int main(void){/*
      | ^~~