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

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

double ceil2(double dIn, int nLen) {
	double dOut;

	dOut = dIn * pow(10.0, nLen);
	dOut = (double)(int)(dOut + 0.9);

	return dOut * pow(10.0, -nLen);
}

int main(void) {

	double x1[20], x2[20], x3[20], y1[20], y2[20], y3[20];
	double distance_12[20],distance_23[20],distance_31[20];
	int n = 0,i=0;
	double cosA,sinA,r,p,q;

	do {
		scanf("%d",&n);
	} while (n > 20);
	

	do {
		scanf_s("%lf%lf%lf%lf%lf%lf",&x1[i],&y1[i],&x2[i],&y2[i],&x3[i],&y3[i]);
		i++;
	} while ((-100 <= (x1[i], x2[i], x3[i], y1[i], y2[i], y3[i]) 
		&& 100 >= (x1[i], x2[i], x3[i], y1[i], y2[i], y3[i])) && i < n);
	
	for (i = 0; i < n; i++) {
		distance_12[i] = sqrt(pow(x1[i] - x2[i], 2) + pow(y1[i] - y2[i], 2));
		distance_23[i] = sqrt(pow(x2[i] - x3[i], 2) + pow(y2[i] - y3[i], 2));
		distance_31[i] = sqrt(pow(x3[i] - x1[i], 2) + pow(y3[i] - y1[i], 2));
		}

	for (i = 0; i < n; i++) {
		p = ((y1[i] - y3[i])*(pow(y1[i],2) - pow(y2[i],2) + pow(x1[i],2) - pow(x2[i],2)) - (y1[i] - y2[i])*(pow(y1[i],2) - pow(y3[i],2) + pow(x1[i],2) - pow(x3[i],2))) / (2*(y1[i] - y3[i])*(x1[i] - x2[i]) - 2*(y1[i] - y2[i])*(x1[i] - x3[i]));
		q = ((x1[i] - x3[i])*(pow(x1[i],2) - pow(x2[i],2) + pow(y1[i],2) - pow(y2[i],2)) - (x1[i] - x2[i])*(pow(x1[i], 2) - pow(x3[i], 2) + pow(y1[i], 2) - pow(y3[i], 2))) / (2 * (x1[i] - x3[i])*(y1[i] - y2[i]) - 2 * (x1[i] - x2[i])*(y1[i] - y3[i]));
		cosA = (pow(distance_23[i], 2) + pow(distance_31[i], 2) - pow(distance_12[i], 2))/(2*distance_23[i]*distance_31[i]);
		sinA = sqrt(1 - pow(cosA, 2));
		r = distance_12[i] / (sinA * 2);
		printf("%.3lf %.3lf %.3lf\n",ceil2(p,4),ceil2(q,4),ceil2(r,4));
	}

	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:26:17: error: implicit declaration of function 'scanf_s'; did you mean 'scanf'? [-Wimplicit-function-declaration]
   26 |                 scanf_s("%lf%lf%lf%lf%lf%lf",&x1[i],&y1[i],&x2[i],&y2[i],&x3[i],&y3[i]);
      |                 ^~~~~~~
      |                 scanf
Language: C

#include <iostream>
#include <algorithm>
#include <cstdio>
#include <cmath>
#include <string>
#include <cctype>
#include <stack>
#include <queue>
#include <vector>
#include <cstdlib>
#include <list>
#define _USE_MATH_DEFINES
#include <math.h>

using namespace std;

int main() {

	int n;
	double x1, x2, x3, y1, y2, y3;
	double X, Y, R;
	double a, b, c, d, e, f;

	cin >> n;

	for (int i = 0; i < n; i++) {
		//cin >> x1 >> y1 >> x2 >> y2 >> x3 >> y3;
		scanf("%lf %lf %lf %lf %lf %lf", &x1, &y1, &x2, &y2, &x3, &y3);

		a = -x2 + x3;
		b = -x1*x1 + x2*x2 - y1*y1 + y2*y2;
		c = x1 - x2;
		d = -x2*x2 + x3*x3 - y2*y2 + y3*y3;
		e = -c * 2 * (y2 - y3);
		f = a * 2 * (y1 - y2);

		Y = (a*b + c*d) / (e - f);
		X = (b+2*Y*(y1-y2))/(-2*c);
		R = sqrt((X - x1)*(X - x1) + (Y-y1)*(Y-y1));

		if (X > 0)
			X = (int)(X * 1000 + 0.5) ;
		else X = (int)(X * 1000 - 0.5) ;

		if (Y>0)
			Y = (int)(Y * 1000 + 0.5) ;
		else Y = (int)(Y * 1000 - 0.5) ;

		if (R > 0)
			R = (int)(R * 1000 + 0.5);
		else R = (int)(R * 1000 - 0.5);

		printf("%.3f %.3f %.3f\n", X/1000, Y/1000, R/1000);
	}

	return 0;
}

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

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

int main(void)
{
	int n;
	int i;
	double x1, y1, x2, y2, x3, y3;
        double a, b, c, d, e, f;
	double px, py, r;

	scanf("%d",&n); 

	for(int i=0; i<n; i++)
	{
		scanf("%lf%lf%lf%lf%lf%lf",&x1, &y1, &x2, &y2, &x3, &y3); 
		
		a = 2 * (x1 -x2);
		b = 2 * (y1 -y2);
		c = 2 * (x1 -x3);
		d = 2 * (y1 -y3);
		e = x1 * x1 - x2 * x2 + y1 * y1 - y2 * y2;
		f = x1 * x1 - x3 * x3 + y1 * y1 - y3 * y3;

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

		r = sqrt((x1 - px) * (x1 - px) + (y1 - py) * (y1 - py));
		printf("%.3f %.3f %.3f\n", px, py, r);
	}

	return 0;
}

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

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

int main(void)
{
	int n;
	int i;
	double x1, y1, x2, y2, x3, y3;
        double a, b, c, d, e, f;
	double px, py, r;

	scanf("%d",&n); 

	for(int i=0; i<n; i++)
	{
		scanf("%lf%lf%lf%lf%lf%lf",&x1, &y1, &x2, &y2, &x3, &y3); 
		
		a = 2 * (x1 -x2);
		b = 2 * (y1 -y2);
		c = 2 * (x1 -x3);
		d = 2 * (y1 -y3);
		e = x1 * x1 - x2 * x2 + y1 * y1 - y2 * y2;
		f = x1 * x1 - x3 * x3 + y1 * y1 - y3 * y3;

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

		r = sqrt((x1 - px) * (x1 - px) + (y1 - py) * (y1 - py));
		printf("%.3f %.3f %.3f\n", px, py, r);
	}

	return 0;
}

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

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

int main(){
	double a,b,c,d,e,f,x,y,A,B,C,s,r;
	int n;
	cin >> n ;
	for(int i=0;i<n;i++){
		cin >> a >> b >> c >> d >> e >> f;
		C = (a-c)*(a-c)+(b-d)*(b-d);
		A = (c-e)*(c-e)+(d-f)*(d-f);
		B = (e-a)*(e-a)+(f-b)*(f-b);
		s = 2*(A*B+B*C+C*A)-(A*A+B*B+C*C);
		x = (A*(B+C-A)*a+B*(C+A-B)*c+C*(A+B-C)*e)/s;
		y = (A*(B+C-A)*b+B*(C+A-B)*d+C*(A+B-C)*f)/s;
		A = sqrt(A);
		B = sqrt(B);
		C = sqrt(C);
		r = A*B*C/sqrt((A+B+C)*(B+C-A)*(A-B+C)*(A+B-C));
		printf("%.3lf %.3lf %.3lf\n",x,y,r);
	}
	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>
#include<math.h>
int main(void){
   int n, i;
   double minx, miny, xy1, xy2, xy3, x1, x2, x3, y1, y2, y3, X, Y, r;
   scanf("%d", &n);
   for ( i = 0; i < n; i++ ) {
      scanf("%lf %lf %lf %lf %lf %lf", &x1, &y1, &x2, &y2, &x3, &y3);
      minx = x1;
      miny = y1;
      if ( x2 < minx ) minx = x2;
      if ( x3 < minx ) minx = x3;
      if ( y2 < miny ) miny = y2;
      if ( y3 < miny ) miny = y2;
      minx *= 100000;
      miny *= 100000;
        x1 *= 100000;
        x2 *= 100000;
        x3 *= 100000;
        y1 *= 100000;
        y2 *= 100000;
        y3 *= 100000;
      while ( 1 ) {
         X = minx * 100000;
         Y = miny * 100000;
         xy1 = ( X - x1 ) * ( X - x1 ) + ( Y - y1 ) * ( Y - y1 );
         xy2 = ( X - x2 ) * ( X - x2 ) + ( Y - y2 ) * ( Y - y2 );
         xy3 = ( X - x3 ) * ( X - x3 ) + ( Y - y3 ) * ( Y - y3 );
         r = sqrt(xy1);
         if ( xy1 == xy2 && xy2 == xy3 && xy3 == xy1) {
            printf("%.3lf %.3lf %.3lf\n", X / 100000, Y / 100000, r);
            break;
         }
         X++;
         Y++
      }
   }
   return 0;
}
         

Compiler output:
main.c: In function 'main':
main.c:35:13: error: expected ';' before '}' token
   35 |          Y++
      |             ^
      |             ;
   36 |       }
      |       ~
Language: C

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

int main(void){
   double Px,Py,r;
   double x1,y1,x2,y2,x3,y3;
   double a1,b1,c1,a2,b2,c2;
   int n,i;
   
   scanf("%d",&n);
   for(i=0;i<n;i++){
       scanf("%lf %lf %lf %lf %lf %lf",&x1,&y1,&x2,&y2,&x3,&y3);
       
       a1=2*(x1-x2);
       b1=2*(y1-y2);
       c1=(x1*x1*)-(x2*x2)+(y1*y1)-(y2*y2);
       a2=2*(x1-x3);
       b2=2*(y1-y3);
       c2=(x1*x1*)-(x3*x3)+(y1*y1)-(y3*y3);
       
       Px=((b2*c1)-(b1*c2))/((a1*b2)-(a2*b1));
       Py=((a1*c2)-(a2*c1))/((a1*b2)-(a2*b1));
       
       r=sqrt((x1-Px)*(x1-Px)+(y1-Py)*(y1-Py));
       
       printf("%lf %lf %lf\n",Px,Py,r);
       
       Px=(int)(Px*1000+0.5);
       Py=(int)(Py*1000+0.5);
       r=(int)(r*1000+0.5);
       
       printf("%.3lf %.3lf %.3lf\n",((double)Px)/1000,((double)Py)/1000,((double)r)/1000);
       
   }
   
   return 0;
    
}



Compiler output:
main.c: In function 'main':
main.c:16:18: error: expected expression before ')' token
   16 |        c1=(x1*x1*)-(x2*x2)+(y1*y1)-(y2*y2);
      |                  ^
main.c:19:18: error: expected expression before ')' token
   19 |        c2=(x1*x1*)-(x3*x3)+(y1*y1)-(y3*y3);
      |                  ^
Language: C

import java.util.Scanner;

public 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 = sc.nextDouble();
            double y1 = sc.nextDouble();
            double x2 = sc.nextDouble();
            double y2 = sc.nextDouble();
            double x3 = sc.nextDouble();
            double y3 = sc.nextDouble();
             
            double a = Math.sqrt((x2-x1)*(x2-x1)+(y2-y1)*(y2-y1));
            double b = Math.sqrt((x3-x2)*(x3-x2)+(y3-y2)*(y3-y2));
            double c = Math.sqrt((x1-x3)*(x1-x3)+(y1-y3)*(y1-y3));
             
            double s = (a+b+c)/2;
            double r = a*b*c / (4*Math.sqrt(s*(s-a)*(s-b)*(s-c)));
             
            double A1 = 2*(x2-x1);
            double B1 = 2*(y2-y1);
            double C1 = (x1*x1)-(x2*x2)+(y1*y1)-(y2*y2);
            double A2 = 2*(x3-x1);
            double B2 = 2*(y3-y1);
            double C2 = (x1*x1)-(x3*x3)+(y1*y1)-(y3*y3);
            double X = (B1*C2-B2*C1)/(A1*B2-A2*B1);
            double Y = (C1*A2-C2*A1)/(A1*B2-A2*B1);
 
            System.out.printf("%.3f %.3f %.3f\n",X,Y,r);
        }
    }
    public static double sr(double a) {
        a = a*10000;
        if(a%10 >=  5) {
            a += 10-a%10;
        }
        else {
            a -= a%10;
        }
        int b = (int)a;
         
        return (b/10000.0);
    }
}



Compiler output:
main.c:1:1: error: unknown type name 'import'
    1 | import java.util.Scanner;
      | ^~~~~~
main.c:1:12: error: expected '=', ',', ';', 'asm' or '__attribute__' before '.' token
    1 | import java.util.Scanner;
      |            ^
main.c:3:1: error: unknown type name 'public'
    3 | public class Main {
      | ^~~~~~
main.c:3:14: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'Main'
    3 | public class Main {
      |              ^~~~
Language: C

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

#define N 10000
#define INF 200000000

int main()
{
    int n;
    vector<double> x(3), y(3), x2(3), y2(3);
    cin >> n;

    for(int p=0; p<n; p++)
    {
        cin >> x[0] >> y[0] >> x[1] >> y[1] >> x[2] >> y[2];
        for(int i=0; i<3; i++) { x2[i] = x[i]*x[i]; y2[i] = y[i]*y[i]; }

        double a, b, c, a2, b2, c2;
        a2 = abs((x[2]-x[1])*(x[2]-x[1]) + (y[2]-y[1])*(y[2]-y[1]));
        b2 = abs((x[0]-x[2])*(x[0]-x[2]) + (y[0]-y[2])*(y[0]-y[2]));
        c2 = abs((x[1]-x[0])*(x[1]-x[0]) + (y[1]-y[0])*(y[1]-y[0]));
        a = sqrt(a2); b = sqrt(b2); c = sqrt(c2);

        double s, S2;
        s = (a + b + c) / 2;
        S2 = s * (s-a) * (s-b) * (s-c);

        double cx, cy;
        cx = (a2*(b2+c2-a2)*x[0] + b2*(c2+a2-b2)*x[1] + c2*(a2+b2-c2)*x[2]) / (16 * S2);
        cy = (a2*(b2+c2-a2)*y[0] + b2*(c2+a2-b2)*y[1] + c2*(a2+b2-c2)*y[2]) / (16 * S2);

        cout << setprecision(3) << fixed <<
            cx << " " << cy << " " << sqrt(abs((cx-x[0])*(cx-x[0])+(cy-y[0])*(cy-y[0]))) << endl;
    }
}

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

#include<complex>
#define F(a,b,c) acos((b*b+c*c-a*a)/2/b/c)
void main(){typedef double D;int n;D d,e,f,g,h,i;for(scanf("%d",&n);n--;){scanf("%lf%lf%lf%lf%lf%lf",&d,&g,&e,&h,&f,&i);std::complex<D> a(d,g),b(e,h),c(f,i);D A=abs(b-c),B=abs(c-a),C=abs(a-b),L=F(A,B,C),s=sin(2*L),t=sin(2*F(B,C,A)),u=sin(2*F(C,A,B)),v=s+t+u;printf("%.3f %.3f %.3f\n",(d*s+e*t+f*u)/v,(g*s+h*t+i*u)/v,A/sin(L)/2);}}

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

#include<complex>
#include<stdio.h>
#define F(a,b,c) acos((b*b+c*c-a*a)/2/b/c)
int main(){typedef double D;int n;D d,e,f,g,h,i;for(scanf("%d",&n);n--;){scanf("%lf%lf%lf%lf%lf%lf",&d,&g,&e,&h,&f,&i);std::complex<D> a(d,g),b(e,h),c(f,i);D A=abs(b-c),B=abs(c-a),C=abs(a-b),L=F(A,B,C),s=sin(2*L),t=sin(2*F(B,C,A)),u=sin(2*F(C,A,B)),v=s+t+u;printf("%.3f %.3f %.3f\n",(d*s+e*t+f*u)/v,(g*s+h*t+i*u)/v,A/sin(L)/2);}}

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

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

int main()
{
  int setcount;
  float x1, y1, x2, y2, x3, y3;
  float nx1, ny1, nx2, ny2;
  float nr1, nr2;
  float xp, yp, r;
  int tx, ty, tr, rem;
  int i;

  scanf("%d", &setcount);
  for(i=0; i<setcount; i++){
    scanf("%f %f %f %f %f %f", &x1, &y1, &x2, &y2, &x3, &y3);
    nx1=x2-x1; ny1=y2-y1;
    nx2=x3-x1; ny2=y3-y1;
    nr1=nx1^2+ny1^2; nr2=nx2^2+ny2^2;
    nr1*=0.5f; nr2*=0.5f;

    //normalize
    ny1/=nx1; nr1/=nx1; nx1=1.0f;
    //subtraction
    ny2-=ny1*nx2; nr2-=nr1*nx2; nx2=0.0f;
    //normalize
    nr2/=ny2; ny2=1.0f;
    //subtraction
    nr1-=nr2*ny1; ny1=0.0f;

    xp=nr1+x1; yp=nr2+y1;
    r=(float)sqrt((double)(nr1^2+nr2^2));
    tx=xp*10000; ty=yp*10000; tr=r*10000;
    if((rem=tx%10)<5) tx-=rem;
    else tx+=10-rem;
    if((rem=ty%10)<5) ty-=rem;
    else ty+=10-rem;
    if((rem=tr%10)<5) tr-=rem;
    else tr+=10-rem;
    xp=(float)tx*0.0001f; yp=(float)ty*0.0001f; r=(float)tr*0.0001f;

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

  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:19:12: error: invalid operands to binary ^ (have 'float' and 'float')
   19 |     nr1=nx1^2+ny1^2; nr2=nx2^2+ny2^2;
      |            ^~~~~~
      |              |
      |              float
main.c:19:29: error: invalid operands to binary ^ (have 'float' and 'float')
   19 |     nr1=nx1^2+ny1^2; nr2=nx2^2+ny2^2;
      |                             ^~~~~~
      |                               |
      |                               float
main.c:32:31: error: invalid operands to binary ^ (have 'float' and 'float')
   32 |     r=(float)sqrt((double)(nr1^2+nr2^2));
      |                               ^~~~~~
      |                                 |
      |                                 float
Language: C

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

int main()
{
  int setcount;
  float x1, y1, x2, y2, x3, y3;
  float nx1, ny1, nx2, ny2;
  float nr1, nr2;
  float xp, yp, r;
  int tx, ty, tr, rem;
  int i;

  scanf("%d", &setcount);
  for(i=0; i<setcount; i++){
    scanf("%f %f %f %f %f %f", &x1, &y1, &x2, &y2, &x3, &y3);
    nx1=x2-x1; ny1=y2-y1;
    nx2=x3-x1; ny2=y3-y1;
    nr1=nx1^2+ny1^2; nr2=nx2^2+ny2^2;
    nr1*=0.5f; nr2*=0.5f;

    //normalize
    ny1/=nx1; nr1/=nx1; nx1=1.0f;
    //subtraction
    ny2-=ny1*nx2; nr2-=nr1*nx2; nx2=0.0f;
    //normalize
    nr2/=ny2; ny2=1.0f;
    //subtraction
    nr1-=nr2*ny1; ny1=0.0f;

    xp=nr1+x1; yp=nr2+y1;
    //r=(float)sqrt((double)(nr1^2+nr2^2));
    tx=xp*10000; ty=yp*10000; tr=r*10000;
    if((rem=tx%10)<5) tx-=rem;
    else tx+=10-rem;
    if((rem=ty%10)<5) ty-=rem;
    else ty+=10-rem;
    if((rem=tr%10)<5) tr-=rem;
    else tr+=10-rem;
    xp=(float)tx*0.0001f; yp=(float)ty*0.0001f; r=(float)tr*0.0001f;

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

  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:19:12: error: invalid operands to binary ^ (have 'float' and 'float')
   19 |     nr1=nx1^2+ny1^2; nr2=nx2^2+ny2^2;
      |            ^~~~~~
      |              |
      |              float
main.c:19:29: error: invalid operands to binary ^ (have 'float' and 'float')
   19 |     nr1=nx1^2+ny1^2; nr2=nx2^2+ny2^2;
      |                             ^~~~~~
      |                               |
      |                               float
Language: C

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

int main()
{
  int setcount;
  float x1, y1, x2, y2, x3, y3;
  float nx1, ny1, nx2, ny2;
  float nr1, nr2;
  float xp, yp, r;
  int tx, ty, tr, rem;
  int i;

  scanf("%d", &setcount);
  for(i=0; i<setcount; i++){
    scanf("%f %f %f %f %f %f", &x1, &y1, &x2, &y2, &x3, &y3);
    nx1=x2-x1; ny1=y2-y1;
    nx2=x3-x1; ny2=y3-y1;
    nr1=nx1^2+ny1^2; nr2=nx2^2+ny2^2;
    nr1*=0.5f; nr2*=0.5f;

    //normalize
    ny1/=nx1; nr1/=nx1; nx1=1.0f;
    //subtraction
    ny2-=ny1*nx2; nr2-=nr1*nx2; nx2=0.0f;
    //normalize
    nr2/=ny2; ny2=1.0f;
    //subtraction
    nr1-=nr2*ny1; ny1=0.0f;

    xp=nr1+x1; yp=nr2+y1;
    r=(float)sqrt((double)(nr1^2+nr2^2));
    /*tx=xp*10000; ty=yp*10000; tr=r*10000;
    if((rem=tx%10)<5) tx-=rem;
    else tx+=10-rem;
    if((rem=ty%10)<5) ty-=rem;
    else ty+=10-rem;
    if((rem=tr%10)<5) tr-=rem;
    else tr+=10-rem;
    xp=(float)tx*0.0001f; yp=(float)ty*0.0001f; r=(float)tr*0.0001f;*/

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

  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:19:12: error: invalid operands to binary ^ (have 'float' and 'float')
   19 |     nr1=nx1^2+ny1^2; nr2=nx2^2+ny2^2;
      |            ^~~~~~
      |              |
      |              float
main.c:19:29: error: invalid operands to binary ^ (have 'float' and 'float')
   19 |     nr1=nx1^2+ny1^2; nr2=nx2^2+ny2^2;
      |                             ^~~~~~
      |                               |
      |                               float
main.c:32:31: error: invalid operands to binary ^ (have 'float' and 'float')
   32 |     r=(float)sqrt((double)(nr1^2+nr2^2));
      |                               ^~~~~~
      |                                 |
      |                                 float
Language: C

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

int main()
{
  int setcount;
  float x1, y1, x2, y2, x3, y3;
  float nx1, ny1, nx2, ny2;
  float nr1, nr2;
  float xp, yp, r;
  int tx, ty, tr, rem;
  int i;

  scanf("%d", &setcount);
  for(i=0; i<setcount; i++){
    scanf("%f %f %f %f %f %f", &x1, &y1, &x2, &y2, &x3, &y3);
    nx1=x2-x1; ny1=y2-y1;
    nx2=x3-x1; ny2=y3-y1;
    nr1=nx1^2+ny1^2; nr2=nx2^2+ny2^2;
    nr1*=0.5f; nr2*=0.5f;

    //normalize
    ny1/=nx1; nr1/=nx1; nx1=1.0f;
    //subtraction
    ny2-=ny1*nx2; nr2-=nr1*nx2; nx2=0.0f;
    //normalize
    nr2/=ny2; ny2=1.0f;
    //subtraction
    nr1-=nr2*ny1; ny1=0.0f;

    xp=nr1+x1; yp=nr2+y1;
    r=(float)sqrt((double)(nr1^2+nr2^2));

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

  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:19:12: error: invalid operands to binary ^ (have 'float' and 'float')
   19 |     nr1=nx1^2+ny1^2; nr2=nx2^2+ny2^2;
      |            ^~~~~~
      |              |
      |              float
main.c:19:29: error: invalid operands to binary ^ (have 'float' and 'float')
   19 |     nr1=nx1^2+ny1^2; nr2=nx2^2+ny2^2;
      |                             ^~~~~~
      |                               |
      |                               float
main.c:32:31: error: invalid operands to binary ^ (have 'float' and 'float')
   32 |     r=(float)sqrt((double)(nr1^2+nr2^2));
      |                               ^~~~~~
      |                                 |
      |                                 float
Language: C

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

int main()
{
  int setcount;
  float x1, y1, x2, y2, x3, y3;
  float nx1, ny1, nx2, ny2;
  float nr1, nr2;
  float xp, yp, r;
  int tx, ty, tr, rem;
  int i;

  scanf("%d", &setcount);
  for(i=0; i<setcount; i++){
    scanf("%f %f %f %f %f %f", &x1, &y1, &x2, &y2, &x3, &y3);
    nx1=x2-x1; ny1=y2-y1;
    nx2=x3-x1; ny2=y3-y1;
    nr1=nx1^2+ny1^2; nr2=nx2^2+ny2^2;
    nr1*=0.5f; nr2*=0.5f;

    if(nx1==0){
      nr1/=ny1; ny1=1.0f;
      nr2-=nr1*ny2; ny2=0.0f;
      nr2/=nx2; nx2=1.0f;
    }
    else {
      //normalize
      ny1/=nx1; nr1/=nx1; nx1=1.0f;
      //subtraction
      ny2-=ny1*nx2; nr2-=nr1*nx2; nx2=0.0f;
      //normalize
      nr2/=ny2; ny2=1.0f;
      //subtraction
      nr1-=nr2*ny1; ny1=0.0f;
    }

    xp=nr1+x1; yp=nr2+y1;
    r=(float)sqrt((double)(nr1^2+nr2^2));
    tx=xp*10000; ty=yp*10000; tr=r*10000;
    if((rem=tx%10)<5) tx-=rem;
    else tx+=10-rem;
    if((rem=ty%10)<5) ty-=rem;
    else ty+=10-rem;
    if((rem=tr%10)<5) tr-=rem;
    else tr+=10-rem;
    xp=(float)tx*0.0001f; yp=(float)ty*0.0001f; r=(float)tr*0.0001f;

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

  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:19:12: error: invalid operands to binary ^ (have 'float' and 'float')
   19 |     nr1=nx1^2+ny1^2; nr2=nx2^2+ny2^2;
      |            ^~~~~~
      |              |
      |              float
main.c:19:29: error: invalid operands to binary ^ (have 'float' and 'float')
   19 |     nr1=nx1^2+ny1^2; nr2=nx2^2+ny2^2;
      |                             ^~~~~~
      |                               |
      |                               float
main.c:39:31: error: invalid operands to binary ^ (have 'float' and 'float')
   39 |     r=(float)sqrt((double)(nr1^2+nr2^2));
      |                               ^~~~~~
      |                                 |
      |                                 float
Language: C

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

int main()
{
  int setcount;
  float x1, y1, x2, y2, x3, y3;
  float nx1, ny1, nx2, ny2;
  float nr1, nr2;
  float xp, yp, r;
  int tx, ty, tr, rem;
  int i;

  scanf("%d", &setcount);
  for(i=0; i<setcount; i++){
    scanf("%f %f %f %f %f %f", &x1, &y1, &x2, &y2, &x3, &y3);
    nx1=x2-x1; ny1=y2-y1;
    nx2=x3-x1; ny2=y3-y1;
    nr1=nx1^2+ny1^2; nr2=nx2^2+ny2^2;
    nr1*=0.5f; nr2*=0.5f;


    xp=nr1+x1; yp=nr2+y1;
    r=(float)sqrt((double)(nr1^2+nr2^2));
    tx=xp*10000; ty=yp*10000; tr=r*10000;
    if((rem=tx%10)<5) tx-=rem;
    else tx+=10-rem;
    if((rem=ty%10)<5) ty-=rem;
    else ty+=10-rem;
    if((rem=tr%10)<5) tr-=rem;
    else tr+=10-rem;
    xp=(float)tx*0.0001f; yp=(float)ty*0.0001f; r=(float)tr*0.0001f;

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

  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:19:12: error: invalid operands to binary ^ (have 'float' and 'float')
   19 |     nr1=nx1^2+ny1^2; nr2=nx2^2+ny2^2;
      |            ^~~~~~
      |              |
      |              float
main.c:19:29: error: invalid operands to binary ^ (have 'float' and 'float')
   19 |     nr1=nx1^2+ny1^2; nr2=nx2^2+ny2^2;
      |                             ^~~~~~
      |                               |
      |                               float
main.c:24:31: error: invalid operands to binary ^ (have 'float' and 'float')
   24 |     r=(float)sqrt((double)(nr1^2+nr2^2));
      |                               ^~~~~~
      |                                 |
      |                                 float
Language: C

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

int main(void)
{
	double x1, x2, x3;
	double y1, y2, y3;
	double a, b, c, a1, b1, c1, a2, b2, c2;
	int n, i;
	double x, y;
	double hankei;
	
	scanf("%d", &n);
	
	for (i = 0; i < n; i++){
		scanf("%lf %lf %lf %lf %lf %lf", &x1, &y1, &x2, &y2, &x3, &y3);
		
		// ±Á©çSÀWÌvZ
		a1 = 2 * (x2 - x1);
		b1 = 2 * (y2 - y1);
		c1 = (x1 * x1) - (x2 * x2) + (y1 * y1) - (y2 * y2);
		a2 = 2 * (x3 - x1);
		b2 = 2 * (x3 - y1);
		c2 = (x1 * x1) - (x3 * x3) + (y1 * y1) - (y3 * y3);
		
		x = ( (b1 * c2) - (b2 * c1) ) / ( (a1 * b2) - (a2 * b1) );
		y = ( (c1 * a2) - (c2 * a1) ) / ( (a1 * b2) - (a2 * b1) );
		
		// ±±ÜÅ
		
		// ¼a
		a = sqrt(( (y1 - y) * (y1 - y) ) + ( (x1 - x) * (x1 - x) ));
		b = sqrt(( (y2 - y) * (y2 - y) ) + ( (x2 - x) * (x2 - x) ));
		c = sqrt(( (y3 - y) * (y3 - y) ) + ( (x3 - x) * (x3 - x) ));
		hankei = (a * b * c) / sqrt((a + b + c) * (-a + b + c) * (a - b + c) * (a + b - c))
		
		printf("%.3lf %.3lf %.3lf\n", x, y, );
	}
	
	return (0);
}

Compiler output:
main.c: In function 'main':
main.c:35:100: error: expected ';' before 'printf'
   35 |                 hankei = (a * b * c) / sqrt((a + b + c) * (-a + b + c) * (a - b + c) * (a + b - c))
      |                                                                                                    ^
      |                                                                                                    ;
   36 | 
   37 |                 printf("%.3lf %.3lf %.3lf\n", x, y, );
      |                 ~~~~~~
Language: C

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

int main(void)
{
	double x1, x2, x3;
	double y1, y2, y3;
	double a, b, c, a1, b1, c1, a2, b2, c2;
	int n, i;
	double x, y;
	double hankei;
	
	scanf("%d", &n);
	
	for (i = 0; i < n; i++){
		scanf("%lf %lf %lf %lf %lf %lf", &x1, &y1, &x2, &y2, &x3, &y3);
		
		// ±Á©çSÀWÌvZ
		a1 = 2 * (x2 - x1);
		b1 = 2 * (y2 - y1);
		c1 = (x1 * x1) - (x2 * x2) + (y1 * y1) - (y2 * y2);
		a2 = 2 * (x3 - x1);
		b2 = 2 * (x3 - y1);
		c2 = (x1 * x1) - (x3 * x3) + (y1 * y1) - (y3 * y3);
		
		x = ( (b1 * c2) - (b2 * c1) ) / ( (a1 * b2) - (a2 * b1) );
		y = ( (c1 * a2) - (c2 * a1) ) / ( (a1 * b2) - (a2 * b1) );
		
		// ±±ÜÅ
		
		// ¼a
		a = sqrt(( (y1 - y) * (y1 - y) ) + ( (x1 - x) * (x1 - x) ));
		b = sqrt(( (y2 - y) * (y2 - y) ) + ( (x2 - x) * (x2 - x) ));
		c = sqrt(( (y3 - y) * (y3 - y) ) + ( (x3 - x) * (x3 - x) ));
		hankei = (a * b * c) / sqrt((a + b + c) * (-a + b + c) * (a - b + c) * (a + b - c))
		
		printf("%.3lf %.3lf %.3lf\n", x, y, hankei);
	}
	
	return (0);
}

Compiler output:
main.c: In function 'main':
main.c:35:100: error: expected ';' before 'printf'
   35 |                 hankei = (a * b * c) / sqrt((a + b + c) * (-a + b + c) * (a - b + c) * (a + b - c))
      |                                                                                                    ^
      |                                                                                                    ;
   36 | 
   37 |                 printf("%.3lf %.3lf %.3lf\n", x, y, hankei);
      |                 ~~~~~~
Language: C

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

int main(int argc,char* argv[]){
  double x1,y1,x2,y2,x3,y3;
  double x,y,r;
  double r12,r23,r31,angle1,angle2,angle3;
  int num,count;
  
  scanf("%d",&num);
  
  for(count = 0; num > count;count++){
    scanf("%lf %lf %lf %lf %lf %lf",&x1,&y1,&x2,&y2,&x3,&y3);
    
    r12 = sqrt((x1 -x2)*(x1 -x2) + (y1 -y2)*(y1 -y2));
    r23 = sqrt((x2 -x3)*(x2 -x3) + (y2 -y3)*(y2 -y3));
    r31 = sqrt((x3 -x1)*(x3 -x1) + (y3 -y1)*(y3 -y1));
    
    angle3 = acos( (r23*r23+r31*r31-r12*r12) / (2.0*r23*r31) );
    angle1 = acos( (r31*r31+r12*r12-r23*r23) / (2.0*r31*r12) );
    angle2 = acos( (r12*r12+r23*r23-r31*r31) / (2.0*r12*r23) );
    
    x = (sin(2.0*angle1)*x1 + sin(2.0*angle2)*x2 + sin(2.0*angle3)*x3)/(sin(2.0*angle1) + sin(2.0*angle2) + sin(2.0*angle3));
    y = (sin(2.0*angle1)*y1 + sin(2.0*angle2)*y2 + sin(2.0*angle3)*y3)/(sin(2.0*angle1) + sin(2.0*angle2) + sin(2.0*angle3));
    
    r = r32/ sin(angle1) / 2.0;
    
    printf("%.3lf %.3lf %.3lf\n",x,y,r);
  }
  
  return 0;
  
}

Compiler output:
main.c: In function 'main':
main.c:26:9: error: 'r32' undeclared (first use in this function); did you mean 'r31'?
   26 |     r = r32/ sin(angle1) / 2.0;
      |         ^~~
      |         r31
main.c:26:9: note: each undeclared identifier is reported only once for each function it appears in
Language: C

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



int main(void){
	
	int n;
	double x[3]={0},y[3]={0},r,a,b,c,d[2]={0},e[2]={0},f[2]={0},l,m;

	scanf("%d",&n);

	for(int i=0;i<n;i++){
		
		a=b=c=r=l=m=0;
		for(int i=0;i<2;i++){
			d[i]=e[i]=f[i]=0;
		}
		for(int i=0;i<3;i++){
			x[i]=y[i]=0;
		}

		scanf("%lf %lf %lf %lf %lf %lf",&x[0],&y[0],&x[1],&y[1],&x[2],&y[2]);

		a=sqrt((x[0]-x[1])*(x[0]-x[1])+(y[0]-y[1])*(y[0]-y[1]));	//ツ各ツ陛督づ個陳キツつウ
		b=sqrt((x[2]-x[1])*(x[2]-x[1])+(y[2]-y[1])*(y[2]-y[1]));
		c=sqrt((x[0]-x[2])*(x[0]-x[2])+(y[0]-y[2])*(y[0]-y[2]));	
	
		r=a*b*c/sqrt((a+b+c)*(-a+b+c)*(a-b+c)*(a+b-c));			//ツ外ツ静堋円ツづ個板シツ径
		
		d[0]=2*(x[1]-x[0]);
		e[0]=2*(y[1]-y[0]);
		f[0]=x[0]*x[0]-x[1]*x[1]+y[0]*y[0]-y[1]*y[1];
		d[1]=2*(x[2]-x[0]);
		e[1]=2*(y[2]-y[0]);
		f[1]=x[0]*x[0]-x[2]*x[2]+y[0]*y[0]-y[2]*y[2];

		l=(e[0]*f[1]-e[1]*f[0])/(d[0]*e[1]-d[1]*e[0]);
		m=(f[0]*d[1]-f[1]*d[0])/(d[0]*e[1]-d[1]*e[0]);

		l=round(l*1000)/1000;
		m=round(m*1000)/1000;
		r=round(r*1000)/1000;
		
		printf("%.03lf %.03lf %.03lf\n",l,m,r);
	}
	return 0;
}

Compiler output:
/usr/bin/ld: /tmp/cc9mCeA8.o: in function `main':
main.c:(.text+0x203): undefined reference to `sqrt'
/usr/bin/ld: main.c:(.text+0x267): undefined reference to `sqrt'
/usr/bin/ld: main.c:(.text+0x2cb): undefined reference to `sqrt'
/usr/bin/ld: main.c:(.text+0x346): undefined reference to `sqrt'
/usr/bin/ld: main.c:(.text+0x545): undefined reference to `round'
/usr/bin/ld: main.c:(.text+0x580): undefined reference to `round'
/usr/bin/ld: main.c:(.text+0x5bb): undefined reference to `round'
collect2: error: ld returned 1 exit status
Language: C

#include <stdio.h>
#include <math.h>
int main(){
	int i,n;
	double x[3],y[3],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]);
		x[0]=((-(x[0]*x[0]-x[1]*x[1])-(y[0]*y[0]-y[1]*y[1]))*(y[2]-y[1])-(-(x[1]*x[1]-x[2]*x[2])-(y[1]*y[1]-y[2]*y[2]))*(y[1]-y[0]))/(2*((x[1]-x[0])*(y[2]-y[1])-(x[2]-x[1])*(y[1]-y[0])));&#8232;		y[0]=((-(y[0]*y[0]-y[1]*y[1])-(x[0]*x[0]-x[1]*x[1]))*(x[2]-x[1])-(-(y[1]*y[1]-y[2]*y[2])-(x[1]*x[1]-x[2]*x[2]))*(x[1]-x[0]))/(2*((y[1]-y[0])*(x[2]-x[1])-(y[2]-y[1])*(x[1]-x[0])));
		r=sqrt((x[0]-x[1])*(x[0]-x[1])+(y[0]-y[1])*(y[0]-y[1]));
		if ((int)(x[0]*10000)%10>=5) x[0]+=0.001;
		if ((int)(y[0]*10000)%10>=5) y[0]+=0.001;
		if ((int)(r*10000)%10>=5) r+=0.001;
		printf("%.3f %.3f %.3f\n",x[0],y[0],r);
	}
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:9:197: error: stray '#' in program
    9 |                 x[0]=((-(x[0]*x[0]-x[1]*x[1])-(y[0]*y[0]-y[1]*y[1]))*(y[2]-y[1])-(-(x[1]*x[1]-x[2]*x[2])-(y[1]*y[1]-y[2]*y[2]))*(y[1]-y[0]))/(2*((x[1]-x[0])*(y[2]-y[1])-(x[2]-x[1])*(y[1]-y[0])));&#8232;              y[0]=((-(y[0]*y[0]-y[1]*y[1])-(x[0]*x[0]-x[1]*x[1]))*(x[2]-x[1])-(-(y[1]*y[1]-y[2]*y[2])-(x[1]*x[1]-x[2]*x[2]))*(x[1]-x[0]))/(2*((y[1]-y[0])*(x[2]-x[1])-(y[2]-y[1])*(x[1]-x[0])));
      |                                                                                                                                                                                                     ^
main.c:9:196: error: lvalue required as unary '&' operand
    9 |                 x[0]=((-(x[0]*x[0]-x[1]*x[1])-(y[0]*y[0]-y[1]*y[1]))*(y[2]-y[1])-(-(x[1]*x[1]-x[2]*x[2])-(y[1]*y[1]-y[2]*y[2]))*(y[1]-y[0]))/(2*((x[1]-x[0])*(y[2]-y[1])-(x[2]-x[1])*(y[1]-y[0])));&#8232;              y[0]=((-(y[0]*y[0]-y[1]*y[1])-(x[0]*x[0]-x[1]*x[1]))*(x[2]-x[1])-(-(y[1]*y[1]-y[2]*y[2])-(x[1]*x[1]-x[2]*x[2]))*(x[1]-x[0]))/(2*((y[1]-y[0])*(x[2]-x[1])-(y[2]-y[1])*(x[1]-x[0])));
      |                                                                                                                                                                                                    ^
Language: C

#include <stdio.h>
#include <math.h>
int main(){
	int i,n;
	double x[3],y[3],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]);
	        x[0]=((-(x[0]*x[0]-x[1]*x[1])-(y[0]*y[0]-y[1]*y[1]))*(y[2]-y[1])-(-(x[1]*x[1]-x[2]*x[2])-(y[1]*y[1]-y[2]*y[2]))*(y[1]-y[0]))/(2*((x[1]-x[0])*(y[2]-y[1])-(x[2]-x[1])*(y[1]-y[0])));&#8232;		y[0]=((-(y[0]*y[0]-y[1]*y[1])-(x[0]*x[0]-x[1]*x[1]))*(x[2]-x[1])-(-(y[1]*y[1]-y[2]*y[2])-(x[1]*x[1]-x[2]*x[2]))*(x[1]-x[0]))/(2*((y[1]-y[0])*(x[2]-x[1])-(y[2]-y[1])*(x[1]-x[0])));
		r=sqrt((x[0]-x[1])*(x[0]-x[1])+(y[0]-y[1])*(y[0]-y[1]));
		if ((int)(x[0]*10000)%10>=5) x[0]+=0.001;
		if ((int)(y[0]*10000)%10>=5) y[0]+=0.001;
		if ((int)(r*10000)%10>=5) r+=0.001;
		printf("%.3f %.3f %.3f\n",x[0],y[0],r);
	}
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:9:197: error: stray '#' in program
    9 |                 x[0]=((-(x[0]*x[0]-x[1]*x[1])-(y[0]*y[0]-y[1]*y[1]))*(y[2]-y[1])-(-(x[1]*x[1]-x[2]*x[2])-(y[1]*y[1]-y[2]*y[2]))*(y[1]-y[0]))/(2*((x[1]-x[0])*(y[2]-y[1])-(x[2]-x[1])*(y[1]-y[0])));&#8232;              y[0]=((-(y[0]*y[0]-y[1]*y[1])-(x[0]*x[0]-x[1]*x[1]))*(x[2]-x[1])-(-(y[1]*y[1]-y[2]*y[2])-(x[1]*x[1]-x[2]*x[2]))*(x[1]-x[0]))/(2*((y[1]-y[0])*(x[2]-x[1])-(y[2]-y[1])*(x[1]-x[0])));
      |                                                                                                                                                                                                     ^
main.c:9:196: error: lvalue required as unary '&' operand
    9 |                 x[0]=((-(x[0]*x[0]-x[1]*x[1])-(y[0]*y[0]-y[1]*y[1]))*(y[2]-y[1])-(-(x[1]*x[1]-x[2]*x[2])-(y[1]*y[1]-y[2]*y[2]))*(y[1]-y[0]))/(2*((x[1]-x[0])*(y[2]-y[1])-(x[2]-x[1])*(y[1]-y[0])));&#8232;              y[0]=((-(y[0]*y[0]-y[1]*y[1])-(x[0]*x[0]-x[1]*x[1]))*(x[2]-x[1])-(-(y[1]*y[1]-y[2]*y[2])-(x[1]*x[1]-x[2]*x[2]))*(x[1]-x[0]))/(2*((y[1]-y[0])*(x[2]-x[1])-(y[2]-y[1])*(x[1]-x[0])));
      |                                                                                                                                                                                                    ^
Language: C

#include <stdio.h>
#include <math.h>
int main(){
	int i,n;
	double x[3],y[3],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]);
	        x[0]=((-(x[0]*x[0]-x[1]*x[1])-(y[0]*y[0]-y[1]*y[1]))*(y[2]-y[1])-(-(x[1]*x[1]-x[2]*x[2])-(y[1]*y[1]-y[2]*y[2]))*(y[1]-y[0]))/(2*((x[1]-x[0])*(y[2]-y[1])-(x[2]-x[1])*(y[1]-y[0])));&#8232;		y[0]=((-(y[0]*y[0]-y[1]*y[1])-(x[0]*x[0]-x[1]*x[1]))*(x[2]-x[1])-(-(y[1]*y[1]-y[2]*y[2])-(x[1]*x[1]-x[2]*x[2]))*(x[1]-x[0]))/(2*((y[1]-y[0])*(x[2]-x[1])-(y[2]-y[1])*(x[1]-x[0])));
		r=sqrt((x[0]-x[1])*(x[0]-x[1])+(y[0]-y[1])*(y[0]-y[1]));
		if ((int)(x[0]*10000)%10>=5) x[0]+=0.001;
		if ((int)(y[0]*10000)%10>=5) y[0]+=0.001;
		if ((int)(r*10000)%10>=5) r+=0.001;
		printf("%.3f %.3f %.3f\n",x[0],y[0],r);
	}
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:9:197: error: stray '#' in program
    9 |                 x[0]=((-(x[0]*x[0]-x[1]*x[1])-(y[0]*y[0]-y[1]*y[1]))*(y[2]-y[1])-(-(x[1]*x[1]-x[2]*x[2])-(y[1]*y[1]-y[2]*y[2]))*(y[1]-y[0]))/(2*((x[1]-x[0])*(y[2]-y[1])-(x[2]-x[1])*(y[1]-y[0])));&#8232;              y[0]=((-(y[0]*y[0]-y[1]*y[1])-(x[0]*x[0]-x[1]*x[1]))*(x[2]-x[1])-(-(y[1]*y[1]-y[2]*y[2])-(x[1]*x[1]-x[2]*x[2]))*(x[1]-x[0]))/(2*((y[1]-y[0])*(x[2]-x[1])-(y[2]-y[1])*(x[1]-x[0])));
      |                                                                                                                                                                                                     ^
main.c:9:196: error: lvalue required as unary '&' operand
    9 |                 x[0]=((-(x[0]*x[0]-x[1]*x[1])-(y[0]*y[0]-y[1]*y[1]))*(y[2]-y[1])-(-(x[1]*x[1]-x[2]*x[2])-(y[1]*y[1]-y[2]*y[2]))*(y[1]-y[0]))/(2*((x[1]-x[0])*(y[2]-y[1])-(x[2]-x[1])*(y[1]-y[0])));&#8232;              y[0]=((-(y[0]*y[0]-y[1]*y[1])-(x[0]*x[0]-x[1]*x[1]))*(x[2]-x[1])-(-(y[1]*y[1]-y[2]*y[2])-(x[1]*x[1]-x[2]*x[2]))*(x[1]-x[0]))/(2*((y[1]-y[0])*(x[2]-x[1])-(y[2]-y[1])*(x[1]-x[0])));
      |                                                                                                                                                                                                    ^
Language: C

#include <stdio.h>
#include <math.h>
int main(){
	int i,n;
	double x[3],y[3],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]);
		x[0]=(((x[1]*x[1]-x[0]*x[0])+(y[1]*y[1]-y[0]*y[0]))*(y[2]-y[1])-((x[2]*x[2]-x[1]*x[1])+(y[2]*y[2]-y[1]*y[1]))*(y[1]-y[0]))/(2*((x[1]-x[0])*(y[2]-y[1])-(x[2]-x[1])*(y[1]-y[0])));&#8232;		y[0]=(((y[1]*y[1]-y[0]*y[0])+(x[1]*x[1]-x[0]*x[0]))*(x[2]-x[1])-((y[2]*y[2]-y[1]*y[1])+(x[2]*x[2]-x[1]*x[1]))*(x[1]-x[0]))/(2*((y[1]-y[0])*(x[2]-x[1])-(y[2]-y[1])*(x[1]-x[0])));
		r=sqrt((x[0]-x[1])*(x[0]-x[1])+(y[0]-y[1])*(y[0]-y[1]));
		if ((int)(x[0]*10000)%10>=5) x[0]+=0.001;
		if ((int)(y[0]*10000)%10>=5) y[0]+=0.001;
		if ((int)(r*10000)%10>=5) r+=0.001;
		printf("%.3f %.3f %.3f\n",x[0],y[0],r);
	}
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:9:195: error: stray '#' in program
    9 |                 x[0]=(((x[1]*x[1]-x[0]*x[0])+(y[1]*y[1]-y[0]*y[0]))*(y[2]-y[1])-((x[2]*x[2]-x[1]*x[1])+(y[2]*y[2]-y[1]*y[1]))*(y[1]-y[0]))/(2*((x[1]-x[0])*(y[2]-y[1])-(x[2]-x[1])*(y[1]-y[0])));&#8232;                y[0]=(((y[1]*y[1]-y[0]*y[0])+(x[1]*x[1]-x[0]*x[0]))*(x[2]-x[1])-((y[2]*y[2]-y[1]*y[1])+(x[2]*x[2]-x[1]*x[1]))*(x[1]-x[0]))/(2*((y[1]-y[0])*(x[2]-x[1])-(y[2]-y[1])*(x[1]-x[0])));
      |                                                                                                                                                                                                   ^
main.c:9:194: error: lvalue required as unary '&' operand
    9 |                 x[0]=(((x[1]*x[1]-x[0]*x[0])+(y[1]*y[1]-y[0]*y[0]))*(y[2]-y[1])-((x[2]*x[2]-x[1]*x[1])+(y[2]*y[2]-y[1]*y[1]))*(y[1]-y[0]))/(2*((x[1]-x[0])*(y[2]-y[1])-(x[2]-x[1])*(y[1]-y[0])));&#8232;                y[0]=(((y[1]*y[1]-y[0]*y[0])+(x[1]*x[1]-x[0]*x[0]))*(x[2]-x[1])-((y[2]*y[2]-y[1]*y[1])+(x[2]*x[2]-x[1]*x[1]))*(x[1]-x[0]))/(2*((y[1]-y[0])*(x[2]-x[1])-(y[2]-y[1])*(x[1]-x[0])));
      |                                                                                                                                                                                                  ^
Language: C

#include <stdio.h>
#include <math.h>
int main(){
	int i,n;
	double x[3],y[3],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]);
		x[0] = ( ( - ( x[0] * x[0] - x[1] * x[1] ) - ( y [0] * y[0] - y[1] * y[1] ) ) * ( y[2] - y[1] ) - ( - ( x[1] *x[1] - x[2] * x[2] ) - ( y[1] * y[1] - y[2] * y[2] ) ) * ( y[1] - y[0] ) ) / ( 2.0 * ( ( x[1] - x[0] ) * ( y[2] - y[1] ) - ( x[2] - x[1] ) * ( y[1] - y [0] ) ) );&#8232;
	y[0]=((-(y[0]*y[0]-y[1]*y[1])-(x[0]*x[0]-x[1]*x[1]))*(x[2]-x[1])-(-(y[1]*y[1]-y[2]*y[2])-(x[1]*x[1]-x[2]*x[2]))*(x[1]-x[0]))/(2.0*((y[1]-y[0])*(x[2]-x[1])-(y[2]-y[1])*(x[1]-x[0])));
		r=sqrt((x[0]-x[1])*(x[0]-x[1])+(y[0]-y[1])*(y[0]-y[1]));
		if ((int)(x[0]*10000)%10>=5) x[0]+=0.001;
		if ((int)(y[0]*10000)%10>=5) y[0]+=0.001;
		if ((int)(r*10000)%10>=5) r+=0.001;
		printf("%.3f %.3f %.3f\n",x[0],y[0],r);
	}
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:9:290: error: stray '#' in program
    9 |                 x[0] = ( ( - ( x[0] * x[0] - x[1] * x[1] ) - ( y [0] * y[0] - y[1] * y[1] ) ) * ( y[2] - y[1] ) - ( - ( x[1] *x[1] - x[2] * x[2] ) - ( y[1] * y[1] - y[2] * y[2] ) ) * ( y[1] - y[0] ) ) / ( 2.0 * ( ( x[1] - x[0] ) * ( y[2] - y[1] ) - ( x[2] - x[1] ) * ( y[1] - y [0] ) ) );&#8232;
      |                                                                                                                                                                                                                                                                                                  ^
main.c:9:289: error: lvalue required as unary '&' operand
    9 |                 x[0] = ( ( - ( x[0] * x[0] - x[1] * x[1] ) - ( y [0] * y[0] - y[1] * y[1] ) ) * ( y[2] - y[1] ) - ( - ( x[1] *x[1] - x[2] * x[2] ) - ( y[1] * y[1] - y[2] * y[2] ) ) * ( y[1] - y[0] ) ) / ( 2.0 * ( ( x[1] - x[0] ) * ( y[2] - y[1] ) - ( x[2] - x[1] ) * ( y[1] - y [0] ) ) );&#8232;
      |                                                                                                                                                                                                                                                                                                 ^
Language: C

#include <stdio.h>
#include <math.h>
int main(){
int i,n;
double x[3],y[3],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]);
x[0]=(((x[1]*x[1]-x[0]*x[0])+(y[1]*y[1]-y[0]*y[0]))*(y[2]-y[1])-((x[2]*x[2]-x[1]*x[1])+(y[2]*y[2]-y[1]*y[1]))*(y[1]-y[0]))/(2.0*((x[1]-x[0])*(y[2]-y[1])-(x[2]-x[1])*(y[1]-y[0])));&#8232;
y[0]=(((y[1]*y[1]-y[0]*y[0])+(x[1]*x[1]-x[0]*x[0]))*(x[2]-x[1])-((y[2]*y[2]-y[1]*y[1])+(x[2]*x[2]-x[1]*x[1]))*(x[1]-x[0]))/(2.0*((y[1]-y[0])*(x[2]-x[1])-(y[2]-y[1])*(x[1]-x[0])));
r=sqrt((x[0]-x[1])*(x[0]-x[1])+(y[0]-y[1])*(y[0]-y[1]));
if ((int)(x[0]*10000)%10>=5) x[0]+=0.001;
if ((int)(y[0]*10000)%10>=5) y[0]+=0.001;
if ((int)(r*10000)%10>=5) r+=0.001;
printf("%.3f %.3f %.3f\n",x[0],y[0],r);
}
return 0;
}

Compiler output:
main.c: In function 'main':
main.c:9:181: error: stray '#' in program
    9 | x[0]=(((x[1]*x[1]-x[0]*x[0])+(y[1]*y[1]-y[0]*y[0]))*(y[2]-y[1])-((x[2]*x[2]-x[1]*x[1])+(y[2]*y[2]-y[1]*y[1]))*(y[1]-y[0]))/(2.0*((x[1]-x[0])*(y[2]-y[1])-(x[2]-x[1])*(y[1]-y[0])));&#8232;
      |                                                                                                                                                                                     ^
main.c:9:180: error: lvalue required as unary '&' operand
    9 | x[0]=(((x[1]*x[1]-x[0]*x[0])+(y[1]*y[1]-y[0]*y[0]))*(y[2]-y[1])-((x[2]*x[2]-x[1]*x[1])+(y[2]*y[2]-y[1]*y[1]))*(y[1]-y[0]))/(2.0*((x[1]-x[0])*(y[2]-y[1])-(x[2]-x[1])*(y[1]-y[0])));&#8232;
      |                                                                                                                                                                                    ^
Language: C

#include <cmath>
#include <cstdio>
#include <iostream>

using namespace std;

struct point {
	double x, y;
}A, B, C;

struct circle {
	double r;
	point cen;
}cir;

void solve(point A, point B, point C) {
	double tmp1 = A.x * A.x - B.x * B.x + A.y * A.y - B.y * B.y;
	double tmp2 = A.x * A.x - C.x * C.x + A.y * A.y - C.y * C.y;
	cir.cen.x = (tmp1 * (A.y - C.y) - tmp2 * (A.y - B.y)) / (2 * (A.y - C.y) * (A.x - B.x) - 2 * (A.y - B.y) * (A.x - C.x));
	cir.cen.y = (tmp1 * (A.x - C.x) - tmp2 * (A.x - B.x)) / (2 * (A.y - B.y) * (A.x - C.x) - 2 * (A.y - C.y) * (A.x - B.x));
	double la = sqrt((A.x - B.x) * (A.x - B.x) + (A.y - B.y) * (A.y - B.y));
	double lb = sqrt((B.x - C.x) * (B.x - C.x) + (B.y - C.y) * (B.y - C.y));
	double lc = sqrt((C.x - A.x) * (C.x - A.x) + (C.y - A.y) * (C.y - A.y));
	double p = (la + lb + lc) / 2.0;
	double s = sqrt(p * (p - la) * (p - lb) * (p - lc));
	cir.r = la * lb * lc / (4 * s);
}

int main() {
	int t;
	scanf ("%d", &t);
	while (t--) {
		scanf ("%lf%lf%lf%lf%lf%lf", &A.x, &A.y, &B.x, &B.y, &C.x, &C.y);
		solve(A, B, C);
		printf ("%.3lf %.3lf %.3lf\n",cir.cen.x, cir.cen.y, cir.r);
	}
	return 0;
}

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

#include<stdio.h>#include<math.h> int main(void){        double x, y, r;        double x1, x2, x3, y1, y2, y3;        double ecm[3][2];        double a, b, A;　//enlarged coefficient matrix:拡大係数行列        int i;        int n;        scanf("%d", &n);        for(i = 0; i < n; i++)        {                scanf("%lf %lf %lf %lf %lf %lf", &x1, &y1, &x2, &y2, &x3, &y3);                ecm[0][0] = x1 - x2;                ecm[0][1] = y1 - y2;                ecm[0][2] = (x2 * x2 + y2 * y2) - (x1 * x1 + y1 * y1);                ecm[1][0] = x1 - x3;                ecm[1][1] = y1 - y3;                ecm[1][2] = (x3 * x3 + y3 * y3) - (x1 * x1 + y1 * y1);                A = (ecm[0][0] * ecm[1][1]) - (ecm[0][1] * ecm[1][0]);                 a = ((ecm[0][2] * ecm[1][1]) - (ecm[0][1] * ecm[1][2])) / A + 0;                b = ((ecm[0][0] * ecm[1][2]) - (ecm[0][2] * ecm[1][0])) / A + 0;                x = (a / -2.0);                y = (b / -2.0);                r = sqrt(pow(x1 - x, 2)+pow(y1 - y, 2));                printf("%.3f %.3f %.3f\n", x, y, r); //四捨五入は自動的にされる        }        return 0;}

Compiler output:
main.c:1:18: warning: extra tokens at end of #include directive
    1 | #include<stdio.h>#include<math.h> int main(void){        double x, y, r;        double x1, x2, x3, y1, y2, y3;        double ecm[3][2];        double a, b, A;　//enlarged coefficient matrix:拡大係数行列        int i;        int n;        scanf("%d", &n);        for(i = 0; i < n; i++)        {                scanf("%lf %lf %lf %lf %lf %lf", &x1, &y1, &x2, &y2, &x3, &y3);                ecm[0][0] = x1 - x2;                ecm[0][1] = y1 - y2;                ecm[0][2] = (x2 * x2 + y2 * y2) - (x1 * x1 + y1 * y1);                ecm[1][0] = x1 - x3;                ecm[1][1] = y1 - y3;                ecm[1][2] = (x3 * x3 + y3 * y3) - (x1 * x1 + y1 * y1);                A = (ecm[0][0] * ecm[1][1]) - (ecm[0][1] * ecm[1][0]);                 a = ((ecm[0][2] * ecm[1][1]) - (ecm[0][1] * ecm[1][2])) / A + 0;                b = ((ecm[0][0] * ecm[1][2]) - (ecm[0][2] * ecm[1][0])) / A + 0;                x = (a / -2.0);                y = (b / -2.0);                r = sqrt(pow(x1 - x, 2)+pow(y1 - y, 2));                printf("%.3f %.3f %.3f\n", x, y, r); //四捨五入は自動的にされる        }        return 0;}
      |                  ^
/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/14/../../../x86_64-linux-gnu/Scrt1.o: in function `_start':
(.text+0x17): undefined reference to `main'
collect2: error: ld returned 1 exit status
Language: C

#include<stdio.h>
#include<math.h>
 
int main(void)
{
 double x,y,r;
 double x1,x2,x3,y1,y2,y3;
 double ecm[3][2];
 double a,b,A;　//enlarged coefficient matrix:拡大係数行列
 int i;
 int n;
 
 scanf("%d",&n);
 for(i = 0; i < n; i++)
 {
  scanf("%lf %lf %lf %lf %lf %lf",&x1,&y1,&x2,&y2,&x3,&y3);
  ecm[0][0] = x1 - x2;
  ecm[0][1] = y1 - y2;
  ecm[0][2] = (x2*x2 + y2*y2) - (x1*x1 + y1*y1);
  ecm[1][0] = x1 - x3;
  ecm[1][1] = y1 - y3;
  ecm[1][2] = (x3*x3 + y3*y3) - (x1*x1 + y1*y1);
  A = (ecm[0][0]*ecm[1][1])-(ecm[0][1]*ecm[1][0]); 
  a = ((ecm[0][2]*ecm[1][1])-(ecm[0][1]*ecm[1][2]))/A+0;
  b = ((ecm[0][0]*ecm[1][2])-(ecm[0][2]*ecm[1][0]))/A+0;
  x = (a/-2.0);
  y = (b/-2.0);
  r = sqrt(pow(x1-x,2)+pow(y1-y,2));
  printf("%.3f %.3f %.3f\n",x,y,r); //四捨五入は自動的にされる
 }
 return 0;
}

Compiler output:
main.c: In function 'main':
main.c:9:15: error: stray '\343' in program
    9 |  double a,b,A;<U+3000>//enlarged coefficient matrix:<U+62E1><U+5927><U+4FC2><U+6570><U+884C><U+5217>
      |               ^~~~~~~~
Language: C

#include<stdio.h>#include<math.h>  int main(void){ double x,y,r; double x1,x2,x3,y1,y2,y3; double ecm[3][2]; double a,b,A; int i; int n;   scanf("%d",&n); for(i = 0; i < n; i++) {  scanf("%lf %lf %lf %lf %lf %lf",&x1,&y1,&x2,&y2,&x3,&y3);  ecm[0][0] = x1 - x2;  ecm[0][1] = y1 - y2;  ecm[0][2] = (x2*x2 + y2*y2) - (x1*x1 + y1*y1);  ecm[1][0] = x1 - x3;  ecm[1][1] = y1 - y3;  ecm[1][2] = (x3*x3 + y3*y3) - (x1*x1 + y1*y1);  A = (ecm[0][0]*ecm[1][1])-(ecm[0][1]*ecm[1][0]);   a = ((ecm[0][2]*ecm[1][1])-(ecm[0][1]*ecm[1][2]))/A+0;  b = ((ecm[0][0]*ecm[1][2])-(ecm[0][2]*ecm[1][0]))/A+0;  x = (a/-2.0);  y = (b/-2.0);  r = sqrt(pow(x1-x,2)+pow(y1-y,2));  printf("%.3f %.3f %.3f\n",x,y,r);  } return 0;}

Compiler output:
main.c:1:18: warning: extra tokens at end of #include directive
    1 | #include<stdio.h>#include<math.h>  int main(void){ double x,y,r; double x1,x2,x3,y1,y2,y3; double ecm[3][2]; double a,b,A; int i; int n;   scanf("%d",&n); for(i = 0; i < n; i++) {  scanf("%lf %lf %lf %lf %lf %lf",&x1,&y1,&x2,&y2,&x3,&y3);  ecm[0][0] = x1 - x2;  ecm[0][1] = y1 - y2;  ecm[0][2] = (x2*x2 + y2*y2) - (x1*x1 + y1*y1);  ecm[1][0] = x1 - x3;  ecm[1][1] = y1 - y3;  ecm[1][2] = (x3*x3 + y3*y3) - (x1*x1 + y1*y1);  A = (ecm[0][0]*ecm[1][1])-(ecm[0][1]*ecm[1][0]);   a = ((ecm[0][2]*ecm[1][1])-(ecm[0][1]*ecm[1][2]))/A+0;  b = ((ecm[0][0]*ecm[1][2])-(ecm[0][2]*ecm[1][0]))/A+0;  x = (a/-2.0);  y = (b/-2.0);  r = sqrt(pow(x1-x,2)+pow(y1-y,2));  printf("%.3f %.3f %.3f\n",x,y,r);  } return 0;}
      |                  ^
/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/14/../../../x86_64-linux-gnu/Scrt1.o: in function `_start':
(.text+0x17): undefined reference to `main'
collect2: error: ld returned 1 exit status