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

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

int main(){
  int n,i,j;
  double x[4],y[4],r,a1,a2,b1,b2,c1,c2;

  scanf("%d",&n);
  for(i=0;i<n;i++){
    for(j=0;j<3;j++)scanf("%lf%lf",&x[j],&y[j]);
    a1=2*(x[1]-x[0]);b1=2*(y[1]-y[0]);c1=x[0]*x[0]-x[1]*x[1]+y[0]*y[0]-y[1]*y[1];
    a2=2*(x[2]-x[0]);b2=2*(y[2]-y[0]);c2=x[0]*x[0]-x[2]*x[2]+y[0]*y[0]-y[2]*y[2];

    x[3]=(b1*c2-b2*c1)/(a1*b2-a2*b1);
    y[3]=(c1*a2-c2*a1)/(a1*b2-a2*b1);

    r=sqrt((x[3]-x[0])*(x[3]-x[0])+(y[3]-y[0])*(y[3]-y[0]));

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

Compiler output:
main.c:1:8: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token
    1 | include<stdio.h>
      |        ^
main.c: In function 'main':
main.c:8:3: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    8 |   scanf("%d",&n);
      |   ^~~~~
main.c:3:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
    2 | #include<math.h>
  +++ |+#include <stdio.h>
    3 | 
main.c:8:3: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    8 |   scanf("%d",&n);
      |   ^~~~~
main.c:8:3: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:19:5: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
   19 |     printf("%.3f %.3f %.3f\n",x[3],y[3],r);
      |     ^~~~~~
main.c:19:5: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:19:5: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:19:5: note: include '<stdio.h>' or provide a declaration of 'printf'
Language: C

#include <stdio.h>

int main(void){

	int Num, i;
	double X1, Y1, X2, Y2, X3, Y3;
	doubel Xp, Yp, R;

	scanf("%d",&Num);
	
	for(i = 0; i < Num; i++){
		scanf("%lf %lf %lf %lf %lf %lf", &X1, &Y1, &X2, &Y2, &X3, &Y3);
		R = 2*(X1*(Y2-Y3) + X2*(Y3-Y1) + X3*(Y1-Y2));
		Xp = ((X1*X1 + Y1*Y1)*(Y2-Y3) + (X2*X2 + Y2*Y2)*(Y3-Y1) + (X3*X3 + Y3*Y3)*(Y1-Y2))/R;
		Yp = ((X1*X1 + Y1*Y1)*(X3-X2) + (X2*X2 + Y2*Y2)*(X1-X3) + (X3*X3 + Y3*Y3)*(X2-X1))/R;
		printf("%.03lf %.03lf %.03lf\n", Xp, Yp, R);
	}
	
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:7:9: error: unknown type name 'doubel'; did you mean 'double'?
    7 |         doubel Xp, Yp, R;
      |         ^~~~~~
      |         double
Language: C

#include<stdio.h>
#include<math.h>
main(){
	int n;
	scanf("%d",&n);
	double x[10000000000000000000],y[1000000000000000000000];
	int i;
	for(i=0;i<n;i++){
		scanf("%lf%lf%lf%lf%lf%lf",&x[i],&y[i],&x[i+1],&y[i+1],&x[i+2],&y[i+2]);
		double xp,yp;
		double a,b,c,d;
		a=x[i]-x[i+1],b=y[i+1]-y[i];c=x[i]-x[i+2],d=y[i+2]-y[i];
		xp=(a*d*(x[i]+x[i+1])-b*c*(x[i+2]+x[i])+b*d*(y[i+2]-y[i+1]))/(2*(a*d-b*c));
		if(b==0){
			yp=(c/d)*xp-(c*(x[i+2]+x[i]))/(2*d)+(y[i]+y[i+2])/2;
		}else{
			yp=(a/b)*xp-(a*(x[i+2]+x[i]))/(2*b)+(y[i]+y[i+2])/2;
		}
		double r=hypot(xp-x[i],yp-y[i]);
		printf("%.3lf %.3lf %.3lf\n",xp,yp,r);
	}
	return 0;
}

Compiler output:
main.c:3:1: error: return type defaults to 'int' [-Wimplicit-int]
    3 | main(){
      | ^~~~
main.c: In function 'main':
main.c:6:18: warning: integer constant is so large that it is unsigned
    6 |         double x[10000000000000000000],y[1000000000000000000000];
      |                  ^~~~~~~~~~~~~~~~~~~~
main.c:6:16: error: size of array 'x' is too large
    6 |         double x[10000000000000000000],y[1000000000000000000000];
      |                ^
main.c:6:42: warning: integer constant is too large for its type
    6 |         double x[10000000000000000000],y[1000000000000000000000];
      |                                          ^~~~~~~~~~~~~~~~~~~~~~
main.c:6:40: error: size of array 'y' exceeds maximum object size '9223372036854775807'
    6 |         double x[10000000000000000000],y[1000000000000000000000];
      |                                        ^
Language: C

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

int main(void)
{
    int n;

    scanf("%d", &n);
    for (int i = 0; i < n; ++i) {
        double x1, y1, x2, y2, x3, y3;
        double z1, z2, z3;
        double xp, yp, r;

        scanf("%lf %lf %lf %lf %lf %lf", &x1, &y1, &x2, &y2, &x3, &y3);

        z1 = x1 * x1 + y1 * y1;
        z2 = x2 * x2 + y2 * y2;
        z3 = x3 * x3 + y3 * y3;
        xp = (z1 * (y2 - y3) + z2 * (y3 - y1) + z3 * (y1 - y2)) /
            (2 * (x1 * (y2 - y3) + x2 * (y3 - y1) + x3 * (y1 - y2)));
        yp = (z1 * (x2 - x3) + z2 * (x3 - x1) + z3 * (x1 - x2)) /
            (2 * (y1 * (x2 - x3) + y2 * (x3 - x1) + y3 * (x1 - x2)));
        r = sqrt((x1 - xp) * (x1 - xp) + (y1 - yp) * (y1 - yp));

        printf("%.3f %.3f %.3f\n", xp, yp, r);
    }

    return 0;
}

// refered to #513632 by ytetsuwo

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

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

  int main(void)
 { int n;
    double x1,x2,x3,y1,y2,y3,xa,ya,r;
    double a12,a13,b12,b13;
    scanf("%d",&n);
    while(n)
     {
     scanf("%ld %ld %ld %ld %ld %ld",&x1,&y1,&x2,
     &y2,&x3,&y3);
     a12 = (x1-x2)/(y2-y1));
     a13 = (x1-x3)/(y3-y1));
     b12 = (y1+y2-a12*(x1+x2))/2;
     b13 = (y1+y3-a13*(x1+x3))/2;
     xa = (b12-b13)/(a13-a12);
     ya = a12*xa+b12;
     r = sqrt((x1-xa)*(x1-xa)+(y1-ya)*(y1-ya))
     printf("%.3ld %.3ld %.3ld\n",xa,ya,r);
     n--;
     }
    return 0;
  }  

Compiler output:
main.c: In function 'main':
main.c:13:27: error: expected ';' before ')' token
   13 |      a12 = (x1-x2)/(y2-y1));
      |                           ^
      |                           ;
main.c:13:27: error: expected statement before ')' token
main.c:14:27: error: expected ';' before ')' token
   14 |      a13 = (x1-x3)/(y3-y1));
      |                           ^
      |                           ;
main.c:14:27: error: expected statement before ')' token
main.c:19:47: error: expected ';' before 'printf'
   19 |      r = sqrt((x1-xa)*(x1-xa)+(y1-ya)*(y1-ya))
      |                                               ^
      |                                               ;
   20 |      printf("%.3ld %.3ld %.3ld\n",xa,ya,r);
      |      ~~~~~~
Language: C

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

  int main(void)
 { int n;
    double x1,x2,x3,y1,y2,y3,xa,ya,r;
    double a12,a13,b12,b13;
    scanf("%d",&n);
    while(n)
     {
     scanf("%ld %ld %ld %ld %ld %ld",&x1,&y1,&x2,
     &y2,&x3,&y3);
     a12 = (x1-x2)/(y2-y1));
     a13 = (x1-x3)/(y3-y1));
     b12 = (y1+y2-a12*(x1+x2))/2;
     b13 = (y1+y3-a13*(x1+x3))/2;
     xa = (b12-b13)/(a13-a12);
     ya = a12*xa+b12;
     r = sqrt((x1-xa)*(x1-xa)+(y1-ya)*(y1-ya));
     printf("%.3ld %.3ld %.3ld\n",xa,ya,r);
     n--;
     }
    return 0;
  }  

Compiler output:
main.c: In function 'main':
main.c:13:27: error: expected ';' before ')' token
   13 |      a12 = (x1-x2)/(y2-y1));
      |                           ^
      |                           ;
main.c:13:27: error: expected statement before ')' token
main.c:14:27: error: expected ';' before ')' token
   14 |      a13 = (x1-x3)/(y3-y1));
      |                           ^
      |                           ;
main.c:14:27: error: expected statement before ')' token
Language: C

#include<stdio.h>
#include<math.h>
int main(void){
    double n,i,x[3],y[3],a[2],b[2],px,py,r;
    scanf("%d",&n);
    for(i=0; i<n; i++){
        scanf("%lf%lf%lf%lf%lf%lf",%x[0],&y[0],&x[1],&y[1],&x[2],&y[2]);
        a[0]=(x[0]-x[1])/(y[1]-y[0]);
        b[0]=((y[0]+y[1])-(a[0]*(x[0]+x[1])))/2;
        a[1]=(x[0]-x[2])/(y[2]-y[0]);
        b[1]=((y[0]+y[2])-(a[1]*(x[0]+x[2])))/2;
        px=(b[1]-b[0])/(a[0]-a[1]);
        py=(a[0]*px)+b[0];
        r=((x[0]-px)*(x[0]-px))+((y[0]-py)*(y[0]-py))
        r=sqrt(r);
        printf("%.3f %.3f %.3f\n",px+(1e-10),py+(1e-10),r+(1e-10));
    }
    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:7:36: error: expected expression before '%' token
    7 |         scanf("%lf%lf%lf%lf%lf%lf",%x[0],&y[0],&x[1],&y[1],&x[2],&y[2]);
      |                                    ^
main.c:14:54: error: expected ';' before 'r'
   14 |         r=((x[0]-px)*(x[0]-px))+((y[0]-py)*(y[0]-py))
      |                                                      ^
      |                                                      ;
   15 |         r=sqrt(r);
      |         ~
Language: C

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

int main(void){
	double x1,x2,x3,y1,y2,y3;
	double a1,b1,c1,a2,b2,b3;
	double a_x,a_y,r,waru;
	int  kaisu,i;
	
	scanf("%d",&kaisu);
	
	for(i=0;i < kaisu;i++){
		scanf("%lf %lf %lf %lf %lf %lf",&x1,&y1,&x2,&y2,&x3,&y3);
		
		a1 = (2*(x2-x1));
		b1 = (2*(y2-y1));
		c1 = (x1*x1 - x2*x2 + y1*y1 - y2*y2);
		a2 = (2*(x3-x1));
		b2 = (2*(y3-y1));
		c2 = (x1*x1 - x3*x3 + y1*y1 - y3*y3);
		
		waru = (a1*b2-a2*b1);
		if(waru <= 0.000001 && waru >= -0.000001) waru += 0.000001;
		
		a_x = (b1*c2-b2*c1)/(waru*1.0);
		a_y = (c1*a2-c2*a1)/(waru*1.0);
		r = sqrt( (x1-a_x)*(x1-a_x) + (y1-a_y)*(y1-a_y) );
		
		if(((int)(a_x*10000)) % 10 > 4) a_x += 0.001;
		if(((int)(a_y*10000)) % 10 > 4) a_y += 0.001;
		if(((int)(r*10000))   % 10 > 4)   r += 0.001;
		
		if(a_x < 0.0001 && a_x > -0.0001) a_x = 0.00001;
		if(a_y < 0.0001 && a_y > -0.0001) a_y = 0.00001;
		if(  r < 0.0001 &&   r > -0.0001)   r = 0.00001;
		
		printf("%.3f %.3f %.3f\n",a_x,a_y,r);
	}
	
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:20:17: error: 'c2' undeclared (first use in this function); did you mean 'b2'?
   20 |                 c2 = (x1*x1 - x3*x3 + y1*y1 - y3*y3);
      |                 ^~
      |                 b2
main.c:20:17: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#include<iostream>
#include<iomanip>
#include<math.h>

using namespace std;

bool get_snb( double , double , double , double , double& , double& );
double get_distance( double , double , double , double );

int main(void)
{
	double x1, x2, x3;
	double y1, y2, y3;

	double a[3] , b[3];

	double px, py;
	double r;

	int n;

	cin >> n;

	for( int k = 0 ; k < n ; k++ )
	{
		cin >> x1 >> y1 >> x2 >> y2 >> x3 >> y3;

		int i = 0;
		while(1)
		{
			if( get_snb( x1 , x2 , y1 , y2 , a[i] , b[i] ) == true ) i++;
			if( get_snb( x1 , x3 , y1 , y3 , a[i] , b[i] ) == true )
			{
				i++;
				if( i == 2 ) break;

			}
			if( get_snb( x2 , x3 , y2 , y3 , a[i] , b[i] ) == true )
			{
				i++;
				if( i == 2 ) break;
			}
		}

	
		px = -( b[0] - b[1] )/( a[0] - a[1] );
		py = a[0] * px + b[0];
	
		r = get_distance( x1 , px , y1 , py );

		cout.setf( ios::fixed , ios::floatfield );
		cout<< setprecision(3) << px << " " << py << " " << r << endl;
	}

	return 0;


}

bool get_snb( double x1 , double x2 , double y1 , double y2 , double& a , double& b )
{
	double cx, cy;
	a = -( x1 - x2 )/( y1 - y2 );

	if( y1 - y2 <= 0.0001 && y1 - y2 >= -0.0001 ) return false;
	if( x1 - x2 <= 0.0001 && x1 - x2 >= -0.0001 ) a = 0;
	
	cx = ( x1 + x2 ) / 2;
	cy = ( y1 + y2 ) / 2;

	b = cy - a * cx;

	return true;
}

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

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

#define PI 3.14159265358979323

int calc1(float a,float b,float c,float d,float e,float f,float *x,float *y);
//void quick(int *,long long,long long);
//int comp(char *a,char *b);

int main(){
	
	float x1,y1,x2,y2,x3,y3,r1,r2;
	
	scanf("%f",&x1);
	while(scanf("%f %f %f %f %f %f",&x1,&y1,&x2,&y2,&x3,&y3)!=EOF){
		calc1(2*(x1-x2),2*(y1-y2),x1*x1-x2*x2+y1*y1-y2*y2,2*(x1-x3),2*(y1-y3),x1*x1-x3*x3+y1*y1-y3*y3,&r1,&r2);
		printf("%.3f %.3f %.3f\n",r1,r2,sqrt( (x1-r1)*(x1-r1)+(y1-r2)*(y1-r2) ));
	}
	//for(i=0;i<=1000000000;i++);
	return 0;
}

int calc1(float a,float b,float c,float d,float e,float f,float *x,float *y){

	if(a*e-b*d==0)
		return 0;
	*x=(c*e-b*f)/(a*e-b*d);
	*y=(a*f-d*c)/(a*e-b*d);
	return 1;
}

Compiler output:
main.c: In function 'main':
main.c:11:9: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
   11 |         scanf("%f",&x1);
      |         ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | #define PI 3.14159265358979323
main.c:11:9: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
   11 |         scanf("%f",&x1);
      |         ^~~~~
main.c:11:9: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:12:67: error: 'EOF' undeclared (first use in this function)
   12 |         while(scanf("%f %f %f %f %f %f",&x1,&y1,&x2,&y2,&x3,&y3)!=EOF){
      |                                                                   ^~~
main.c:12:67: note: 'EOF' is defined in header '<stdio.h>'; this is probably fixable by adding '#include <stdio.h>'
main.c:12:67: note: each undeclared identifier is reported only once for each function it appears in
main.c:14:17: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
   14 |                 printf("%.3f %.3f %.3f\n",r1,r2,sqrt( (x1-r1)*(x1-r1)+(y1-r2)*(y1-r2) ));
      |                 ^~~~~~
main.c:14:17: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:14:17: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:14:17: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:14:49: error: implicit declaration of function 'sqrt' [-Wimplicit-function-declaration]
   14 |                 printf("%.3f %.3f %.3f\n",r1,r2,sqrt( (x1-r1)*(x1-r1)+(y1-r2)*(y1-r2) ));
      |                                                 ^~~~
main.c:1:1: note: include '<math.h>' or provide a declaration of 'sqrt'
  +++ |+#include <math.h>
    1 | #define PI 3.14159265358979323
main.c:14:49: warning: incompatible implicit declaration of built-in function 'sqrt' [-Wbuiltin-declaration-mismatch]
   14 |                 printf("%.3f %.3f %.3f\n",r1,r2,sqrt( (x1-r1)*(x1-r1)+(y1-r2)*(y1-r2) ));
      |                                                 ^~~~
main.c:14:49: note: include '<math.h>' or provide a declaration of 'sqrt'
Language: C

//ヘッダファイル
#include<stdio.h>
#include<math.h>

//マクロ定義
#define DIM2 2
#define X 0
#define Y 1
//プロトタイプ宣言
double func_calAB(double num1, double num2);
double func_calC(double num1, double num2, double num3, double num4);
double func_calX(double a1, double a2, double b1, double b2, double c1, double c2);
double func_calY(double a1, double a2, double b1, double b2, double c1, double c2);
double func_calR(double p1[], double result[]);
main()
{
	int n = 0, i = 0; //繰り返し回数制御変数
	double p1[DIM2] = {0, 0}, p2[DIM2] = {0, 0}, p3[DIM2] = {0, 0}; //変数の宣言と初期化
	double a1 = 0, a2 = 0, b1 = 0, b2 = 0, c1 = 0, c2 = 0;
	double r  = 0, result[DIM2] = {0, 0};
	scanf("%d", &n); //繰り返し回数の入力
	
	for(i = 0; i < n; i++)
	{
		//座標の入力を取得
		scanf("%lf %lf %lf %lf %lf %lf", &p1[X], &p1[Y], &p2[X], &p2[Y], &p3[X], &p3[Y]);
		
		a1 = func_calAB(p2[X], p1[X]);
		b1 = func_calAB(p2[Y], p1[Y]);
		c1 = func_calC(p1[X], p2[X], p1[Y], p2[Y]);
		
		a2 = func_calAB(p3[X], p1[X]);
		b2 = func_calAB(p3[Y], p1[Y]);
		c2 = func_calC(p1[X], p3[X], p1[Y], p3[Y]);
		
		result[X] = func_calX(a1, a2, b1, b2, c1, c2);
		result[Y] = func_calY(a1, a2, b1, b2, c1, c2);
		
		r = func_calR(result, p1);
		
		printf("%.3lf %.3lf %.3lf\n", result[X], result[Y], r);
		p1[DIM2] = {0, 0}, p2[DIM2] = {0, 0}, p3[DIM2] = {0, 0};
		a1 = 0, a2 = 0, b1 = 0, b2 = 0, c1 = 0, c2 = 0;
		r  = 0, result[DIM2] = {0, 0};
	}
	return 0;
}
double func_calAB(double num1, double num2)
{
	double result = 0;
	result = 2 * (num1 - num2);
	return result;
}
double func_calC(double num1, double num2, double num3, double num4)
{
	double result = 0;
	result = pow(num1, 2) - pow(num2, 2) + pow(num3, 2) - pow(num4, 2);
	return result;
}
double func_calX(double a1, double a2, double b1, double b2, double c1, double c2)
{
	double result = 0;
	result = ((b1 * c2) - (b2 * c1)) / ((a1 * b2) - (a2 * b1));
	return result;
}
double func_calY(double a1, double a2, double b1, double b2, double c1, double c2)
{
	double result = 0;
	result = ((c1 * a2) - (c2 * a1)) / ((a1 * b2) - (a2 * b1));
	return result;
}
double func_calR(double p1[], double result[])
{
	double r = 0;
	r = sqrt(pow(p1[X] + result[X], 2) + pow(p1[Y] + result[Y], 2));
	return r;
}

Compiler output:
main.c:15:1: error: return type defaults to 'int' [-Wimplicit-int]
   15 | main()
      | ^~~~
main.c: In function 'main':
main.c:42:28: error: expected expression before '{' token
   42 |                 p1[DIM2] = {0, 0}, p2[DIM2] = {0, 0}, p3[DIM2] = {0, 0};
      |                            ^
main.c:44:40: error: expected expression before '{' token
   44 |                 r  = 0, result[DIM2] = {0, 0};
      |                                        ^
Language: C

#include<stdio.h>
#include<math.h>
int main(void){
	double x[3],y[3],z[3],l,m,n,a,b,c,d,e,f;
	int i,n;
	scanf("%d",&n);
	for(i=0; i<n; i++){
	scanf("%f%f%f%f%f%f",&x[0],&y[0],&x[1],&y[1],&x[2],&y[2]);
	z[0]=-(x[0]*x[0]+y[0]*y[0]);
	z[1]=-(x[1]*x[1]+y[1]*y[1]);
	z[2]=-(x[2]*x[2]+y[2]*y[2]);
	a=x[0]-x[1];
	b=y[0]-y[1];
	c=z[0]-z[1];
	d=x[1]-x[2];
	e=y[1]-y[2];
	f=z[1]-z[2];
	l=(c*d-a*f)/(b*d-a*e);
	m=(c*e-b*f)/(a*e-b*d);
	n=z[0]-(l*x[0]+m*y[0]);
	a=l/(-2);
	b=m/(-2);
	c=a*a+b*b-l;
	sqrt(c);
	a*=1000;
	b*=1000;
	c*=1000;
	a+=0.5;
	b+=0.5;
	c+=0.5;
	d=(int)a;
	e=(int)b;
	f=(int)c;
	a=(bouble)d/1000;
	b=(bouble)e/1000;
	c=(bouble)f/1000;
	printf("%f %f %f\n",a,b,c);
	}

	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:5:15: error: conflicting types for 'n'; have 'int'
    5 |         int i,n;
      |               ^
main.c:4:35: note: previous declaration of 'n' with type 'double'
    4 |         double x[3],y[3],z[3],l,m,n,a,b,c,d,e,f;
      |                                   ^
main.c:34:12: error: 'bouble' undeclared (first use in this function); did you mean 'double'?
   34 |         a=(bouble)d/1000;
      |            ^~~~~~
      |            double
main.c:34:12: note: each undeclared identifier is reported only once for each function it appears in
main.c:34:19: error: expected ';' before 'd'
   34 |         a=(bouble)d/1000;
      |                   ^
      |                   ;
main.c:35:19: error: expected ';' before 'e'
   35 |         b=(bouble)e/1000;
      |                   ^
      |                   ;
main.c:36:19: error: expected ';' before 'f'
   36 |         c=(bouble)f/1000;
      |                   ^
      |                   ;
Language: C

#include<stdio.h>
#include<math.h>
int main(void){
	double x[3],y[3],z[3],l,m,n,a,b,c,d,e,f;
	int i,h;
	scanf("%d",&h);
	for(i=0; i<n; i++){
	scanf("%f%f%f%f%f%f",&x[0],&y[0],&x[1],&y[1],&x[2],&y[2]);
	z[0]=-(x[0]*x[0]+y[0]*y[0]);
	z[1]=-(x[1]*x[1]+y[1]*y[1]);
	z[2]=-(x[2]*x[2]+y[2]*y[2]);
	a=x[0]-x[1];
	b=y[0]-y[1];
	c=z[0]-z[1];
	d=x[1]-x[2];
	e=y[1]-y[2];
	f=z[1]-z[2];
	l=(c*d-a*f)/(b*d-a*e);
	m=(c*e-b*f)/(a*e-b*d);
	n=z[0]-(l*x[0]+m*y[0]);
	a=l/(-2);
	b=m/(-2);
	c=a*a+b*b-l;
	sqrt(c);
	a*=1000;
	b*=1000;
	c*=1000;
	a+=0.5;
	b+=0.5;
	c+=0.5;
	d=(int)a;
	e=(int)b;
	f=(int)c;
	a=(bouble)d/1000;
	b=(bouble)e/1000;
	c=(bouble)f/1000;
	printf("%f %f %f\n",a,b,c);
	}

	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:34:12: error: 'bouble' undeclared (first use in this function); did you mean 'double'?
   34 |         a=(bouble)d/1000;
      |            ^~~~~~
      |            double
main.c:34:12: note: each undeclared identifier is reported only once for each function it appears in
main.c:34:19: error: expected ';' before 'd'
   34 |         a=(bouble)d/1000;
      |                   ^
      |                   ;
main.c:35:19: error: expected ';' before 'e'
   35 |         b=(bouble)e/1000;
      |                   ^
      |                   ;
main.c:36:19: error: expected ';' before 'f'
   36 |         c=(bouble)f/1000;
      |                   ^
      |                   ;
Language: C

#include<stdio.h>
#include<math.h>
int main(void){
	double x[3],y[3],z[3],l,m,n,a,b,c,d,e,f;
	int i,h;
	scanf("%d",&h);
	for(i=0; i<n; i++){
	scanf("%f%f%f%f%f%f",&x[0],&y[0],&x[1],&y[1],&x[2],&y[2]);
	z[0]=-(x[0]*x[0]+y[0]*y[0]);
	z[1]=-(x[1]*x[1]+y[1]*y[1]);
	z[2]=-(x[2]*x[2]+y[2]*y[2]);
	a=x[0]-x[1];
	b=y[0]-y[1];
	c=z[0]-z[1];
	d=x[1]-x[2];
	e=y[1]-y[2];
	f=z[1]-z[2];
	l=(c*d-a*f)/(b*d-a*e);
	m=(c*e-b*f)/(a*e-b*d);
	n=z[0]-(l*x[0]+m*y[0]);
	a=l/(-2);
	b=m/(-2);
	c=a*a+b*b-l;
	sqrt(c);
	a*=1000;
	b*=1000;
	c*=1000;
	a+=0.5;
	b+=0.5;
	c+=0.5;
	d=(int)a;
	e=(int)b;
	f=(int)c;
	a=(double)d/1000;
	b=(double)e/1000;
	c=(double)f/1000;
	printf("%f %f %f\n",a,b,c);
	}

	return 0;

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

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

int main ()
{
    int num;
    double x1,y1,x2,y2,x3,y3;

    cin >> num;

    for( int i = 0; i < num; i++ )
    {
        double px = 0, py = 0, r = 0;
        cin >> x1 >> y1 >> x2 >> y2 >> x3 >> y3;

        px = ((x1*x1-x3*x3+y1*y1-y3*y3)*(y2-y1)-(x1*x1-x2*x2+y1*y1-y2*y2)*(y3-y1)) / (2*(x2-x1)*(y3-y1)-2*(x3-x1)*(y2-y1));
        py = ((x1-x3)(x1*x1 -x2*x2 +y1*y1 -y2*y2)-(x1-x2)*(x1*x1-x3*x3+y1*y1-y3*y3)) / (2*(x1-x3)*(y1-y2)-2*(x1-x2)*(y1-y3));
        //py = ((2*(x1-x2)*px+x2*x2-x1*x1+y2*y2-y1*y1)) / (2*(y2-y1));
        r = sqrt((px-x1)*(px-x1) + (py-y1)*(py-y1));

        cout << fixed;
        cout << setprecision(3) << px << " " << py << " " << r << endl;
    }

    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:19:22: error: expression cannot be used as a function
   19 |         py = ((x1-x3)(x1*x1 -x2*x2 +y1*y1 -y2*y2)-(x1-x2)*(x1*x1-x3*x3+y1*y1-y3*y3)) / (2*(x1-x3)*(y1-y2)-2*(x1-x2)*(y1-y3));
      |               ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~
Language: C++

#include<iostream>
#include<cmath>

using namespace std;

int main(void){
	int n;
	cin >> n;
	double x1,x2,x3,y1,y2,y3;
	for(int i = 0 ; i < n ; i ++){
		cin>>x1>>y1>>x2>>y2>>x3>>y3;
		double a = x2 * x2 - x1 * x1 + y2 * y2 - y1 * y1;
		double b = x3 * x3 - x1 * x1 + y3 * y3 - y1 * y1);
		
		double x = (2 * (y3 - y1) * a - 2 * (y2 - y1) * b ) / c;
		double y = (2 * (x3 - x1) * a - 2 * (x2 - x1) * b ) / c;
		double r = sqrt((x - x1) * (x - x1) + (y - y1) * (y - y1));
		
		printf("%.3f %.3f %.3f\n",x,y,r);
		
	} 
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:65: error: expected ',' or ';' before ')' token
   13 |                 double b = x3 * x3 - x1 * x1 + y3 * y3 - y1 * y1);
      |                                                                 ^
a.cc:15:71: error: 'c' was not declared in this scope
   15 |                 double x = (2 * (y3 - y1) * a - 2 * (y2 - y1) * b ) / c;
      |                                                                       ^
Language: C++

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

double heronsMethod(double a, double b, double c){
	double s = (a + b + c) / 2;
	return sqrt(s * (s - a) * (s - b) * (s - c));
}

int main()
{
	int n;
	cin >> n;
	for (int i = 0; i < n; i++){
		double x1, x2, x3, y1, y2, y3;
		cin >> x1 >> y1 >> x2 >> y2 >> x3 >> y3;
		double a = sqrt((x1 - x2) * (x1 - x2) + (y1 - y2) * (y1 - y2));
		double b = sqrt((x2 - x3) * (x2 - x3) + (y2 - y3) * (y2 - y3));
		double c = sqrt((x3 - x1) * (x3 - x1) + (y3 - y1) * (y3 - y1));
		double s = heronsMethod(a, b, c);
		double x = (a*a * (b*b + c*c - a*a) *x3 + b*b * (c*c + a*a - b*b) *x1 + c*c *(a*a + b*b - c*c) *x2) / (16 * s * s);
		double y = (a*a * (b*b + c*c - a*a) *y3 + b*b * (c*c + a*a - b*b) *y1 + c*c *(a*a + b*b - c*c) *y2) / (16 * s * s);
		double r = (a * b * c) / sqrt((a + b + c) * (-a + b + c) * (a - b + c) * (a + b - c));
		printf("%.3f %.3f %.3f\n", x, y, r);
	}
}

Compiler output:
a.cc: In function 'double heronsMethod(double, double, double)':
a.cc:7:16: error: 'sqrt' was not declared in this scope
    7 |         return sqrt(s * (s - a) * (s - b) * (s - c));
      |                ^~~~
a.cc: In function 'int main()':
a.cc:17:28: error: 'sqrt' was not declared in this scope
   17 |                 double a = sqrt((x1 - x2) * (x1 - x2) + (y1 - y2) * (y1 - y2));
      |                            ^~~~
Language: C++

#include<cstdio>
#include<algorithm>
#include<vector>
#include<string>
#include<iostream>
#include<queue>
#include<map>
#include<set>
#include<complex>

using namespace std;

#define reps(i,f,n) for(int i=f;i<int(n);i++)
#define rep(i,n) reps(i,0,n)

#define X real()
#define Y imag()

typedef complex<double> P;
class C:public P{
	public:
	double r;
	C(double x,double y,double r):P(x,y),r(r){}
};

template<class T> sq(T x){return x*x;}
double dot(P a, P b){return a.X*b.X + a.Y*b.Y;}

P solve_eq2(double a,double b,double c,double d,double e,double f){
	double A = a*e-b*d;
	return P((c*e-b*f)/A, (a*f-c*d)/A);
}

C C_PPP(P a,P b,P c){
	P d = b-a;
	P e = c-a;
	
	double z1 = -dot(a,a);
	double z2 = -dot(b,b);
	double z3 = -dot(c,c);
	
	P f = solve_eq2(d.X, d.Y, z2-z1, e.X, e.Y, z3-z1);
	double u = z1-dot(a,f);
	
	return C(-f.X/2, -f.Y/2, sqrt(dot(f,f)/4-u));
}

int main(){
	
	int n;
	cin>>n;
	
	rep(i,n){
		double xa,ya,xb,yb,xc,yc;
		cin>>xa>>ya>>xb>>yb>>xc>>yc;
		
		C circle = C_PPP(P(xa,ya),P(xb,yb),P(xc,yc));
		
		printf("%.3lf %.3lf %.3lf\n",circle.X,circle.Y,circle.r);
	}
}

Compiler output:
a.cc:26:19: error: ISO C++ forbids declaration of 'sq' with no type [-fpermissive]
   26 | template<class T> sq(T x){return x*x;}
      |                   ^~
Language: C++

#include<iostrea>
#include<cmath>
#include<cstdio>
using namespace std;

int main(){

  double x[3], y[3], mx, my, lx, ly, dm, dl, cx, cy, r;
  
  for(int i=0; i<3; i++){
    cin >> x[i] >> y[i];
  }
  
  mx = (x1 + x2) / 2;
  my = (y1 + y2) / 2;
  dm = (y1 - y2) / (x1 - y2);
  lx = (x2 + x3) / 2;
  ly = (y2 + y3) / 2;
  dl = (y2 - y3) / (x2 - x3);
  cx = (my + dm * mx) - (ly + dl * lx);
  cy = (ly + dl * lx) * dm - (my + dm * mx) * dl;
  
  r = sqrt((x1 - cx) * (x1 - cx) + (y1 - cy) * (y1 - cy));

  cx = round(cx * 1000) / 1000;
  cy = round(cy * 1000) / 1000;
  r = round(r * 1000) / 1000;

  printf("%.3d %.3d %.3d\n", cx, cy, r);

  return 0;
}

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

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

int main(){

  double x[3], y[3], mx, my, lx, ly, dm, dl, cx, cy, r;
  
  for(int i=0; i<3; i++){
    cin >> x[i] >> y[i];
  }
  
  mx = (x1 + x2) / 2;
  my = (y1 + y2) / 2;
  dm = (y1 - y2) / (x1 - y2);
  lx = (x2 + x3) / 2;
  ly = (y2 + y3) / 2;
  dl = (y2 - y3) / (x2 - x3);
  cx = (my + dm * mx) - (ly + dl * lx);
  cy = (ly + dl * lx) * dm - (my + dm * mx) * dl;
  
  r = sqrt((x1 - cx) * (x1 - cx) + (y1 - cy) * (y1 - cy));

  cx = round(cx * 1000) / 1000;
  cy = round(cy * 1000) / 1000;
  r = round(r * 1000) / 1000;

  printf("%.3d %.3d %.3d\n", cx, cy, r);

  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:14:9: error: 'x1' was not declared in this scope; did you mean 'x'?
   14 |   mx = (x1 + x2) / 2;
      |         ^~
      |         x
a.cc:14:14: error: 'x2' was not declared in this scope; did you mean 'x'?
   14 |   mx = (x1 + x2) / 2;
      |              ^~
      |              x
a.cc:15:14: error: 'y2' was not declared in this scope; did you mean 'y'?
   15 |   my = (y1 + y2) / 2;
      |              ^~
      |              y
a.cc:17:14: error: 'x3' was not declared in this scope; did you mean 'x'?
   17 |   lx = (x2 + x3) / 2;
      |              ^~
      |              x
a.cc:18:14: error: 'y3' was not declared in this scope; did you mean 'y'?
   18 |   ly = (y2 + y3) / 2;
      |              ^~
      |              y
a.cc:23:40: error: invalid operands of types 'double(double) noexcept' and 'double' to binary 'operator-'
   23 |   r = sqrt((x1 - cx) * (x1 - cx) + (y1 - cy) * (y1 - cy));
      |                                     ~~ ^ ~~
      |                                     |    |
      |                                     |    double
      |                                     double(double) noexcept
a.cc:23:52: error: invalid operands of types 'double(double) noexcept' and 'double' to binary 'operator-'
   23 |   r = sqrt((x1 - cx) * (x1 - cx) + (y1 - cy) * (y1 - cy));
      |                                                 ~~ ^ ~~
      |                                                 |    |
      |                                                 |    double
      |                                                 double(double) noexcept
Language: C++

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

int main(){

  double x[3], y[3], mx, my, lx, ly, dm, dl, cx, cy, r;
  
  for(int i=0; i<3; i++){
    cin >> x[i] >> y[i];
  }
  
  mx = (x1 + x2) / 2;
  my = (y1 + y2) / 2;
  dm = (y1 - y2) / (x1 - y2);
  lx = (x2 + x3) / 2;
  ly = (y2 + y3) / 2;
  dl = (y2 - y3) / (x2 - x3);
  cx = (my + dm * mx) - (ly + dl * lx);
  cy = (ly + dl * lx) * dm - (my + dm * mx) * dl;
  
  r = sqrt((x1 - cx) * (x1 - cx) + (y1 - cy) * (y1 - cy));

  cx = round(cx * 1000) / 1000;
  cy = round(cy * 1000) / 1000;
  r = round(r * 1000) / 1000;

  printf("%.3f %.3f %.3f\n", cx, cy, r);

  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:14:9: error: 'x1' was not declared in this scope; did you mean 'x'?
   14 |   mx = (x1 + x2) / 2;
      |         ^~
      |         x
a.cc:14:14: error: 'x2' was not declared in this scope; did you mean 'x'?
   14 |   mx = (x1 + x2) / 2;
      |              ^~
      |              x
a.cc:15:14: error: 'y2' was not declared in this scope; did you mean 'y'?
   15 |   my = (y1 + y2) / 2;
      |              ^~
      |              y
a.cc:17:14: error: 'x3' was not declared in this scope; did you mean 'x'?
   17 |   lx = (x2 + x3) / 2;
      |              ^~
      |              x
a.cc:18:14: error: 'y3' was not declared in this scope; did you mean 'y'?
   18 |   ly = (y2 + y3) / 2;
      |              ^~
      |              y
a.cc:23:40: error: invalid operands of types 'double(double) noexcept' and 'double' to binary 'operator-'
   23 |   r = sqrt((x1 - cx) * (x1 - cx) + (y1 - cy) * (y1 - cy));
      |                                     ~~ ^ ~~
      |                                     |    |
      |                                     |    double
      |                                     double(double) noexcept
a.cc:23:52: error: invalid operands of types 'double(double) noexcept' and 'double' to binary 'operator-'
   23 |   r = sqrt((x1 - cx) * (x1 - cx) + (y1 - cy) * (y1 - cy));
      |                                                 ~~ ^ ~~
      |                                                 |    |
      |                                                 |    double
      |                                                 double(double) noexcept
Language: C++

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

int main(){
	int num;
	cin>>num;
	for(int i=0;i<n;i++){
		double a,b,c,d,e,f;
		double x1,y1,x2,y2,x3,y3;
		cin>>x1>>y1>>x2>>y2>>x3>>y3;
	
		a=x1-x2;
		b=y1-y2;
		c=x2-x3;
		d=y2-y3;
		e=(x2*x2+y2*y2)-(x1*x1+y1*y1);
		f=(x3*x3+y3*y3)-(x2*x2+y2*y2);
		double l=(e*d-f*b)/(a*d-c*b);
		double m=(c*e-a*f)/(c*b-a*d);
		double n=-1*x1*x1-(y1*y1)-l*x1-m*y1;
	
		double x=-1*l/2.0;
		double y=-1*m/2.0;
		double r=sqrt(l*l+m*m-4*n)/2.0;
		printf("%.3f %.3f %3f\n",x,y,r);
	}
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:23: error: 'n' was not declared in this scope
    9 |         for(int i=0;i<n;i++){
      |                       ^
Language: C++

#include<iostream>
#include<cstdio>
#include<algorithm>
#include<climits>
#include<queue>
#include<map>
#include<set>
#include<vector>
#include<list>
#include<stack>
#include<cstring>
#include<string>
#include<cmath>
using namespace std;

struct Coor{
	double x,y;
};

struct Ans2{
	double l,m;
};

struct Ans3{
	double l,m,n;
	Ans3(Ans2 &a){
		l=a.l; m=a.m;
	}
};

Ans2 solve2(double l[2],double m[2],double n[2]){
	/*for(int i=0;i<2;i++){
		printf("(%lfl)+(%lfm)+n = (%lf)\n",l[i],m[i],n[i]);
	}*/
	Ans2 ans;
	double a,b;
	a = l[0]*m[1]-l[1]*m[0]; b = n[0]*m[1]-n[1]*m[0];
	ans.l = b/a;
	//printf("%lfx = %lf\n",a,b);
	a = m[0]*l[1]-m[1]*l[0]; b = n[0]*l[1]-n[1]*l[0];
	ans.m = b/a;
	//printf("%lfy = %lf\n",a,b);
	return ans;
}

Ans3 solve3(double l[3],double m[3],double n[3]){
	double _l[2],_m[2],_n[2];
	_l[0] = l[0]-l[1]; _l[1] = l[0]-l[2];
	_m[0] = m[0]-m[1]; _m[1] = m[0]-m[2];
	_n[0] = n[0]-n[1]; _n[1] = n[0]-n[2];
	Ans3 ans = Ans3(solve2(_l,_m,_n));
	ans.n = n[0]-(l[0]*ans.l+m[0]*ans.m);
	return ans;
}

int main(){
	int N;
	cin>>N;
	for(int i=0;i<N;i++){
		Coor in[3];
		double l[3],m[3],n[3];
		for(int i=0;i<3;i++){
			cin>>in[i].x>>in[i].y;
			l[i] = in[i].x;
			m[i] = in[i].y;
			n[i] = -(in[i].x*in[i].x+in[i].y*in[i].y);
			//printf("(%lfl)+(%lfm)+n = (%lf)\n",l[i],m[i],n[i]);
		}
		Ans3 ans3 = solve3(l,m,n);
		//printf("l = %lf, m = %lf, n = %lf\n",ans3.l,ans3.m,ans3.n);
		double r = sqrt(-(ans3.n-ans3.l/2*ans3.l/2-ans3.m/2*ans3.m/2));
		printf("%.3lf %.3lf %.3lf\n",-ans3.l/2,-ans3.m/2,r);
	}
}

Compiler output:
a.cc: In function 'Ans3 solve3(double*, double*, double*)':
a.cc:51:31: error: cannot bind non-const lvalue reference of type 'Ans2&' to an rvalue of type 'Ans2'
   51 |         Ans3 ans = Ans3(solve2(_l,_m,_n));
      |                         ~~~~~~^~~~~~~~~~
a.cc:26:20: note:   initializing argument 1 of 'Ans3::Ans3(Ans2&)'
   26 |         Ans3(Ans2 &a){
      |              ~~~~~~^
Language: C++

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

int main(void)
{
double  x1,x2,x3,y1,y2,y3,x,y ,r ,a   ;

while(scanf("%lf%lf%lf%lf%lf%lf",&x1,&x2,&x3,&y1,&y2,&y3)!=EOF){
a=(x1*x1+x2*x2-x3*x3)/2*x1*x2;
r=x3/(2*sin(double a));

Compiler output:
a.cc: In function 'int main()':
a.cc:10:13: error: expected primary-expression before 'double'
   10 | r=x3/(2*sin(double a));
      |             ^~~~~~
a.cc:10:24: error: expected '}' at end of input
   10 | r=x3/(2*sin(double a));
      |                        ^
a.cc:8:64: note: to match this '{'
    8 | while(scanf("%lf%lf%lf%lf%lf%lf",&x1,&x2,&x3,&y1,&y2,&y3)!=EOF){
      |                                                                ^
a.cc:10:24: error: expected '}' at end of input
   10 | r=x3/(2*sin(double a));
      |                        ^
a.cc:5:1: note: to match this '{'
    5 | {
      | ^
Language: C++

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

class Main{
public static void main(String[] args){
Scanner sc=new Scanner(System.in);
int n=sc.nextInt();
for(int i=0;i<n;i++){
double x1,y1,x2,y2,x3,y3;
x1=sc.nextDouble();
y1=sc.nextDouble();
x2=sc.nextDouble();
y2=sc.nextDouble();
x3=sc.nextDouble();
y3=sc.nextDouble();
double a=(x1*x1-x2*x2)*(y2-y3)-(x2*x2-x3*x3)-(y1-y2)*(y2-y3)*(y3-y1);
double b=2*((x1-x2)*(y2-y3)-(x2-x3)*(y1-y2));
double px=a/b;
double py;
if(y2!=y3){
py=(px-(x2+x3)/2)*(x3-x2)/(y2-y3)+(y2+y3)/2;
}
else{
py=(px-(x2+x1)/2)*(x1-x2)/(y2-y1)+(y2+y1)/2;
}
double r=Math.hypot(px-x1,py-y1);
BigDecimal x=new BigDecimal(px);
BigDecimal y=new BigDecimal(py);
BigDecimal z=new BigDecimal(r);
x=x.setScale(3,BigDecimal.ROUND_HALF_UP);
y=y.setScale(3,BigDecimal.ROUND_HALF_UP);
z=z.setScale(3,BigDecimal.ROUND_HALF_UP);
System.out.println(x.doubleValue()+" "+y.doubleValue()+" "+z.doubleValue());
}
}
}

Compiler output:
a.cc:1:1: error: 'import' does not name a type
    1 | import java.util.Scanner;
      | ^~~~~~
a.cc:1:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:2:1: error: 'import' does not name a type
    2 | import java.math.BigDecimal;
      | ^~~~~~
a.cc:2:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:5:7: error: expected ':' before 'static'
    5 | public static void main(String[] args){
      |       ^~~~~~~
      |       :
a.cc:5:25: error: 'String' has not been declared
    5 | public static void main(String[] args){
      |                         ^~~~~~
a.cc:5:34: error: expected ',' or '...' before 'args'
    5 | public static void main(String[] args){
      |                                  ^~~~
a.cc:36:2: error: expected ';' after class definition
   36 | }
      |  ^
      |  ;
a.cc: In static member function 'static void Main::main(int*)':
a.cc:6:1: error: 'Scanner' was not declared in this scope
    6 | Scanner sc=new Scanner(System.in);
      | ^~~~~~~
a.cc:7:7: error: 'sc' was not declared in this scope
    7 | int n=sc.nextInt();
      |       ^~
a.cc:26:10: error: 'Math' was not declared in this scope
   26 | double r=Math.hypot(px-x1,py-y1);
      |          ^~~~
a.cc:27:1: error: 'BigDecimal' was not declared in this scope
   27 | BigDecimal x=new BigDecimal(px);
      | ^~~~~~~~~~
a.cc:28:12: error: expected ';' before 'y'
   28 | BigDecimal y=new BigDecimal(py);
      |            ^
a.cc:29:12: error: expected ';' before 'z'
   29 | BigDecimal z=new BigDecimal(r);
      |            ^
a.cc:30:1: error: 'x' was not declared in this scope
   30 | x=x.setScale(3,BigDecimal.ROUND_HALF_UP);
      | ^
a.cc:31:1: error: 'y' was not declared in this scope
   31 | y=y.setScale(3,BigDecimal.ROUND_HALF_UP);
      | ^
a.cc:32:1: error: 'z' was not declared in this scope
   32 | z=z.setScale(3,BigDecimal.ROUND_HALF_UP);
      | ^
a.cc:33:1: error: 'System' was not declared in this scope
   33 | System.out.println(x.doubleValue()+" "+y.doubleValue()+" "+z.doubleValue());
      | ^~~~~~
Language: C++

int main(){
	double x1 , y1 , x2 , y2 , x3 , y3;
	double a1 , b1 , c1 , a2 , b2 , c2;
	double a , b , c;
	double px , py , r;
	double tmp;
	cin >> x1 >> y1 >> x2 >> y2 >> x3 >> y3;
	a1=2*(x2-x1);
	b1=2*(y2-y1);
	c1=x1*x1-x2*x2+y1*y1-y2*y2;
	a2=2*(x3-x1);
	b2=2*(y3-y1);
	c2=x1*x1-x3*x3-y1*y1-y3*y3;
	px=(b1*c2-b2*c1)/(a1*b2-a2*b1);
	py=(c1*a2-c2*a1)/(a1*b2-a2*b1);
	a=sqrt((x1-x2)*(x1-x2)+(y1-y2)*(y1-y2));
	b=sqrt((x2-x3)*(x2-x3)+(y2-y3)*(y2-y3));
	c=sqrt((x3-x1)*(x3-x1)+(y3-y1)*(y3-y1));
	//(a/(2*r))*(a/(2*r))+((b*b-c*c-2a)/2*b*c)*((b*b-c*c-2a)/2*b*c)=1
	r=a/(2*sqrt(1-((b*b+c*c-a*a)/(2*b*c))*((b*b+c*c-a*a)/(2*b*c))));
	tmp=px*1000+0.5;
	px=(int)tmp;
	px/=1000;
	tmp=px*1000+0.5;
	py=(int)tmp;
	py/=1000;
	tmp=r*1000+0.5;
	r=(int)tmp;
	r/=1000;
	cout << fixed << setprecision(3) << px << " " << py << " " << r << endl;
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:9: error: 'cin' was not declared in this scope
    7 |         cin >> x1 >> y1 >> x2 >> y2 >> x3 >> y3;
      |         ^~~
a.cc:16:11: error: 'sqrt' was not declared in this scope
   16 |         a=sqrt((x1-x2)*(x1-x2)+(y1-y2)*(y1-y2));
      |           ^~~~
a.cc:30:9: error: 'cout' was not declared in this scope
   30 |         cout << fixed << setprecision(3) << px << " " << py << " " << r << endl;
      |         ^~~~
a.cc:30:17: error: 'fixed' was not declared in this scope
   30 |         cout << fixed << setprecision(3) << px << " " << py << " " << r << endl;
      |                 ^~~~~
a.cc:30:26: error: 'setprecision' was not declared in this scope
   30 |         cout << fixed << setprecision(3) << px << " " << py << " " << r << endl;
      |                          ^~~~~~~~~~~~
a.cc:30:76: error: 'endl' was not declared in this scope
   30 |         cout << fixed << setprecision(3) << px << " " << py << " " << r << endl;
      |                                                                            ^~~~
Language: C++

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

int main(){
	int n;
	double x1 , y1 , x2 , y2 , x3 , y3;
	double a1 , b1 , c1 , a2 , b2 , c2;
	double a , b , c;
	double px , py , r;
	double tmp;
	cin >> n;
	while(1){
		if(n==0) break;
		n--;
		cin >> x1 >> y1 >> x2 >> y2 >> x3 >> y3;
		a1=2*(x2-x1);
		b1=2*(y2-y1);
		c1=(x1*x1-x2*x2+y1*y1-y2*y2);
		a2=2*(x3-x1);
		b2=2*(y3-y1);
		c2=(x1*x1-x3*x3+y1*y1-y3*y3);
		px=(b1*c2-b2*c1)/(a1*b2-a2*b1);
		py=(c1*a2-c2*a1)/(a1*b2-a2*b1);
		a=sqrt((x1-x2)*(x1-x2)+(y1-y2)*(y1-y2));
		b=sqrt((x2-x3)*(x2-x3)+(y2-y3)*(y2-y3));
		c=sqrt((x3-x1)*(x3-x1)+(y3-y1)*(y3-y1));
		r=a/(2*sqrt(1-((b*b+c*c-a*a)/(2*b*c))*((b*b+c*c-a*a)/(2*b*c))));
		tmp=px*1000+0.5;
		px=(int)tmp;
		px/=1000;
		tmp=px*1000+0.5;
		py=(int)tmp;
		py/=1000;
		tmp=r*1000+0.5;
		r=(int)tmp;
		r/=1000;
		cout << fixed << setprecision(3) << px << " " << py << " " << r << endl;
	}
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:9: error: 'cin' was not declared in this scope
   12 |         cin >> n;
      |         ^~~
a.cc:3:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
    2 | #include <cmath>
  +++ |+#include <iostream>
    3 | using namespace std;
a.cc:38:17: error: 'cout' was not declared in this scope
   38 |                 cout << fixed << setprecision(3) << px << " " << py << " " << r << endl;
      |                 ^~~~
a.cc:38:17: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
Language: C++

//#define _USE_MATH_DEFINES
//#include <cmath>
#include <iostream>
#include <stdio.h>
//#include <stdlib.h>
//#include <iomanip>
//#include <vector>
//#include <string>
//#include <algorithm>
//#include <functional>
//#include <time.h>
//#include <sstream>
//#include <queue>

using namespace std;


int main(){

	int n;
	double ax, ay, bx, by, cx, cy;
	double A, B, C,S2;
	double x, y,r;

	cin >> n;

	while (n--){
		cin >> ax >> ay >> bx >> by >> cx >> cy;

		A = (bx - cx)*(bx - cx) + (by - cy)*(by - cy);
		B = (cx - ax)*(cx - ax) + (cy - ay)*(cy - ay);
		C = (bx - ax)*(bx - ax) + (by - ay)*(by - ay);
		S2 = A*(B + C - A) + B*(C + A - B) + C*(A + B - C);

		x = (A*(B + C - A)*ax + B*(C + A - B)*bx + C*(A + B - C)*cx) / S2;
		y = (A*(B + C - A)*ay + B*(C + A - B)*by + C*(A + B - C)*cy) / S2;

		r = sqrt((x - ax)*(x - ax) + (y - ay)*(y - ay));

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

Compiler output:
a.cc: In function 'int main()':
a.cc:38:21: error: 'sqrt' was not declared in this scope
   38 |                 r = sqrt((x - ax)*(x - ax) + (y - ay)*(y - ay));
      |                     ^~~~
Language: C++

#include<iostream>
#include<cstdio>
#include<cmath>
using namespace std;
int main()
{
long n,i;
double x1,y1,x2,y2,x3,y3,Px,Py,r,a1,b1,c1,a2,b2,c2;
cin>>n;
for(i=0;i<n;i++){
cin>>x1>>y1>>x2>>y2>>x3>>y3;
a1=(x2-x1)*2;
b1=(y2-y1)*2;
c1=x1*x1-x2*x2+y1*y1-y2*y2;
a2=(x3-x1)*2;
b2=(y3-y1)*2;
c2=x1*x1-x3*x3+y1*y1-y3*y3;
Px=(b1*c2-b2*c1)/(a1*b2-a2*b1);
Py=(c1*a2-c2*a1)/(a1*b2-a2*b1);
r=sqrt((x1-x)*(x1-x)+(y1-y)*(y1-y));
printf("%.3f %.3f %.3f\n",Px,Py,r);
}
return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:20:12: error: 'x' was not declared in this scope
   20 | r=sqrt((x1-x)*(x1-x)+(y1-y)*(y1-y));
      |            ^
a.cc:20:26: error: 'y' was not declared in this scope
   20 | r=sqrt((x1-x)*(x1-x)+(y1-y)*(y1-y));
      |                          ^
Language: C++

#include<iostream>
#include<stdio.h>
#include<cmath>
using namespace std;
int main()
{
long n,i;
double x1,y1,x2,y2,x3,y3,Px,Py,r,a1,b1,c1,a2,b2,c2;
cin>>n;
for(i=0;i<n;i++){
cin>>x1>>y1>>x2>>y2>>x3>>y3;
a1=(x2-x1)*2;
b1=(y2-y1)*2;
c1=x1*x1-x2*x2+y1*y1-y2*y2;
a2=(x3-x1)*2;
b2=(y3-y1)*2;
c2=x1*x1-x3*x3+y1*y1-y3*y3;
Px=(b1*c2-b2*c1)/(a1*b2-a2*b1);
Py=(c1*a2-c2*a1)/(a1*b2-a2*b1);
r=sqrt((x1-x)*(x1-x)+(y1-y)*(y1-y));
printf("%.3f %.3f %.3f\n",Px,Py,r);
}
return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:20:12: error: 'x' was not declared in this scope
   20 | r=sqrt((x1-x)*(x1-x)+(y1-y)*(y1-y));
      |            ^
a.cc:20:26: error: 'y' was not declared in this scope
   20 | r=sqrt((x1-x)*(x1-x)+(y1-y)*(y1-y));
      |                          ^
Language: C++

#include<iostream>
#include<stdio.h>
#include<math.h>
using namespace std;
int main()
{
long n,i;
double x1,y1,x2,y2,x3,y3,Px,Py,r,a1,b1,c1,a2,b2,c2;
cin>>n;
for(i=0;i<n;i++){
cin>>x1>>y1>>x2>>y2>>x3>>y3;
a1=(x2-x1)*2;
b1=(y2-y1)*2;
c1=x1*x1-x2*x2+y1*y1-y2*y2;
a2=(x3-x1)*2;
b2=(y3-y1)*2;
c2=x1*x1-x3*x3+y1*y1-y3*y3;
Px=(b1*c2-b2*c1)/(a1*b2-a2*b1);
Py=(c1*a2-c2*a1)/(a1*b2-a2*b1);
r=sqrt((x1-x)*(x1-x)+(y1-y)*(y1-y));
printf("%.3f %.3f %.3f\n",Px,Py,r);
}
return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:20:12: error: 'x' was not declared in this scope
   20 | r=sqrt((x1-x)*(x1-x)+(y1-y)*(y1-y));
      |            ^
a.cc:20:26: error: 'y' was not declared in this scope
   20 | r=sqrt((x1-x)*(x1-x)+(y1-y)*(y1-y));
      |                          ^
Language: C++

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

#define SQ(x) ((x) * (x))

int main(void)
{
    int s;
    int i;
    double x1, x2, x3;
    double y1, y2, y3;
    double a, b, c, d, e, f;
    double l, m, n;
    
    scanf("%d", &s);
    for (i = 0; i < s; i++){
        scanf("%lf%lf%lf%lf%lf%lf", &x1, &y1, &x2, &y2, &x3, &y3);
        
        a = (x1 - x2);
        b = (y1 - y2);
        c = -1 * (SQ(x1) - SQ(x2) + SQ(y1) - SQ(y2));
        d = (x1 - x3);
        e = (y1 - y3);
        f = -1 * (SQ(x1) - SQ(x3) + SQ(y1) - SQ(y3));
        
        l = (c * e - b * f) / (e * a - b * d);
        m = (d * c - a * f) / (d * b - e * a);
        
        n = -1 * (SQ(x1) + SQ(y1) + l * x1 + m * y1);
        
        printf("%.3f %.3f %.3f\n", l / -2.0, m / -2.0, sqrt(SQ(l) + SQ(m) - 4 * n) / 2.0);
    }
    
    return (0);

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

#include <iostream>
#include <iomanip>
#include <math.h>

using namespace std;

int main(){
    int cnt;
    cin >> cnt;
    double x1, y1, x2, y2, x3, y3;
    double a1, a2, b1, b2, c1, c2;
    double a, b, c;
    double A;
    double xp, yp, r;
    while(cnt > 0 && cin >> x1 >> y1 >> x2 >> y2 >> x3 >> y3) {
        // ?????\??????????????§?¨?????±???????
        a1 = 2 * (x2 - x1);
        b1 = 2 * (y2 - y1);
        c1 = x1 * x1 - x2 * x2 + y1 * y1 - y2 * y2;
        a2 = 2 * (x3 - x1);
        b2 = 2 * (y3 - y1);
        c2 = x1 * x1 - x3 * x3 + y1 * y1 - y3 * y3;
        xp = (double)((b1*c2 - b2*c1)/(a1*b2 - a2*b1)*1000) / 1000.0;
        yp = (double)((c1*a2 - c2*a1)/(a1*b2 - a2*b1)*1000) / 1000.0;

     r=hypot(xp-x1,yp-y1);

        cout << fixed << setprecision(3);
        cout << xp << " " << yp << " " << r << endl;
        cnt -= 1;
    }
    return 0

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


#include <iostream>
#include <iomanip>
#include <math.h>

using namespace std;

int main(){
    int cnt;
    cin >> cnt;
    double x1, y1, x2, y2, x3, y3;
    double a1, a2, b1, b2, c1, c2;
    double a, b, c;
    double A;
    double xp, yp, r;
    while(cnt > 0 && cin >> x1 >> y1 >> x2 >> y2 >> x3 >> y3) {
        // ?????\??????????????§?¨?????±???????
        a1 = 2 * (x2 - x1);
        b1 = 2 * (y2 - y1);
        c1 = x1 * x1 - x2 * x2 + y1 * y1 - y2 * y2;
        a2 = 2 * (x3 - x1);
        b2 = 2 * (y3 - y1);
        c2 = x1 * x1 - x3 * x3 + y1 * y1 - y3 * y3;
        xp = (double)((b1*c2 - b2*c1)/(a1*b2 - a2*b1)*1000) / 1000.0;
        yp = (double)((c1*a2 - c2*a1)/(a1*b2 - a2*b1)*1000) / 1000.0;

        // ?????\????????????????±???????
        a = sqrt(pow(x2-x3, 2.0) + pow(y2-y3, 2.0));
        b = sqrt(pow(x1-x3, 2.0) + pow(y1-y3, 2.0));
        c = sqrt(pow(x1-x2, 2.0) + pow(y1-y2, 2.0));
        A = acos((b*b+c*c-a*a)/(2.0*b*c));
        r = a/(sin(A)*2.0);

        cout << fixed << setprecision(3);
        cout << xp << " " << yp << " " << r << endl;
        cnt -= 1;
    }
    return 0;

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