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

#include <stdio.h>

int main(void){
int n;
while(scanf("%d",&n)!=EOF){
int count=0;
for(int m=1;m<=n;m++){
bool check=true;
for(int i=2;i<m;i++){
if(i!=m && m%i==0){
chack=false;
}
}
if(check==true){
count++;
}
}
}
return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:1: error: 'chack' was not declared in this scope; did you mean 'check'?
   11 | chack=false;
      | ^~~~~
      | check
Language: C++

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

const int MAX_N = 1000000;

vector<int> init(void){
    vector<int> prime;
    bool is_prime[MAX_N];
    memset(is_prime, true, MAX_N);
    
    is_prime[0] = is_prime[1] = false;
    for(int i=2; i<MAX_N; i++){
        if(is_prime[i]){
            prime.push_back(i);
            for(int j=2*i; j<MAX_N; j+=i) is_prime[j] = false;
        }
    }
    return prime;
}

int main(int argc, const char * argv[])
{
    int n;
    vector<int> prime = init();
    while(cin>>n){
        cout << upper_bound(prime.begin(), prime.end(), n)-prime.begin() << endl;
    }
    return 0;
}

Compiler output:
a.cc: In function 'std::vector<int> init()':
a.cc:11:5: error: 'memset' was not declared in this scope
   11 |     memset(is_prime, true, MAX_N);
      |     ^~~~~~
a.cc:4:1: note: 'memset' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>'
    3 | #include <algorithm>
  +++ |+#include <cstring>
    4 | using namespace std;
Language: C++

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

const int MAX_N = 1000000;

vector<int> init(void){
    vector<int> prime;
    bool is_prime[MAX_N];
    memset(is_prime, true, MAX_N);
    
    is_prime[0] = is_prime[1] = false;
    for(int i=2; i<MAX_N; i++){
        if(is_prime[i]){
            prime.push_back(i);
            for(int j=2*i; j<MAX_N; j+=i) is_prime[j] = false;
        }
    }
    return prime;
}

int main(int argc, const char * argv[])
{
    int n;
    vector<int> prime = init();
    while(cin>>n){
        cout << upper_bound(prime.begin(), prime.end(), n)-prime.begin() << endl;
    }
    return 0;
}

Compiler output:
a.cc: In function 'std::vector<int> init()':
a.cc:12:5: error: 'memset' was not declared in this scope
   12 |     memset(is_prime, true, MAX_N);
      |     ^~~~~~
a.cc:4:1: note: 'memset' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>'
    3 | #include <algorithm>
  +++ |+#include <cstring>
    4 | #include <string>
Language: C++

#include <iostream>
using namespace std;

int main(){
        int prime[999999];
        bool is_prime[1000000];
        int p =0;
        int n ;
        int i;
        while(cin >> n){
        for(i=0;i<=n;i++) is_prime[i] = true;
        is_prime[0] = is_prime[1] = false;
        for(i=2;i<=n;i++){
                if(is_prime[i]){
                        prime[p++] = i;
                        for(int j=2*i;j<=n;j+=i) is_prime[j] = false;
                }
        }
        cout << p << endl;
        p = 0;
        }
return 0;
}
[tebora@tebora cpp]$ cat  pr.cpp
#include <iostream>
using namespace std;

int main(){
        int prime[999999];
        bool is_prime[1000000];
        int p =0;
        int n ;
        int i;
        while(cin >> n){
        for(i=0;i<=n;i++) is_prime[i] = true;
        is_prime[0] = is_prime[1] = false;
        for(i=2;i<=n;i++){
                if(is_prime[i]){
                        prime[p++] = i;
                        for(int j=2*i;j<=n;j+=i) is_prime[j] = false;
                }
        }
        cout << p << endl;
        p = 0;
        }
return 0;
}

Compiler output:
a.cc:24:8: error: stray '@' in program
   24 | [tebora@tebora cpp]$ cat  pr.cpp
      |        ^
a.cc:24:1: error: expected unqualified-id before '[' token
   24 | [tebora@tebora cpp]$ cat  pr.cpp
      | ^
a.cc:28:5: error: redefinition of 'int main()'
   28 | int main(){
      |     ^~~~
a.cc:4:5: note: 'int main()' previously defined here
    4 | int main(){
      |     ^~~~
Language: C++

import sys

def prime_list(n):
    l = range(2,n+1)
    i = 2
    while i * i <= n: 
        l = filter(lambda x: x == i or x % i != 0, l)
        i = i + 1
    return l

if __name__ == '__main__':
    l = prime_list(999999)
    for line in sys.stdin:
        n = int(line)
        print len([x for x in l if x <= n])

Compiler output:
a.cc:11:16: warning: multi-character literal with 8 characters exceeds 'int' size of 4 bytes
   11 | if __name__ == '__main__':
      |                ^~~~~~~~~~
a.cc:1:1: error: 'import' does not name a type
    1 | import sys
      | ^~~~~~
a.cc:1:1: note: C++20 'import' only available with '-fmodules-ts'
Language: C++


 int main()
 {
     int num, i, j;
     cout<<"Enter an Integer:"<<endl;
                  cin>>num;
                  
                  for(i=0; i<=num; i++)
                  {
                           for(j=2; j<=i; j++)
                           {
                                    if(i%j == 0)
                                    {
                                    break;
                                    }
                                    else if (i == j+1)
                                    {
                                     cout<<i<<endl;    
                                         }
                                    }
                           }
    
}
              

Compiler output:
a.cc: In function 'int main()':
a.cc:5:6: error: 'cout' was not declared in this scope
    5 |      cout<<"Enter an Integer:"<<endl;
      |      ^~~~
a.cc:5:33: error: 'endl' was not declared in this scope
    5 |      cout<<"Enter an Integer:"<<endl;
      |                                 ^~~~
a.cc:6:19: error: 'cin' was not declared in this scope
    6 |                   cin>>num;
      |                   ^~~
Language: C++

#include <iostream>

using namespace std;
 
int main(void)
{
  int input;
  while(cin >> input)
  {
  bool isPrime[input];
  // if the index 0 do not count as the prime number
  isPrime[0] = false;
  /// if the index 1 do not count as the prime number
  isPrime[1] = false;
  // if the index 2 count as the prime number
  isPrime[2] = true;
  
	for(int i = 3; i <= input; i += 2)
    		isPrime[i] = true;
  	
	for(int i = 3; i * i <= input; i += 2)
   		 for(int j = i * i; j <= n; j += i)
     		 isPrime[j] = false;
  		 for(int i = 4; i <= n; i += 2)
    		 isPrime[i] = false;
  
	int count = 0;
 	

	for(int i = 0; i <= input; i++)
    	
	if(isPrime[i])
    	{
     	 count++;
      
    	}
  	cout << count << endl;
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:22:42: error: 'n' was not declared in this scope
   22 |                  for(int j = i * i; j <= n; j += i)
      |                                          ^
a.cc:24:38: error: 'n' was not declared in this scope
   24 |                  for(int i = 4; i <= n; i += 2)
      |                                      ^
Language: C++



#define MAX 100

main(){
  int in_num;
  int i, put, j, k = 0, l;
  int count = 0;
  int res;
  int pres[MAX], flag = 0;

  while(1){
  res = scanf("%d", &in_num);

  if(res == EOF) break;

  for(i = 1 ; i <= in_num ; i++){
    /* iが現在まで判明している素数の倍数でないかを調べる */
    for(l = 0 ; pres[l] != NULL ; l++){
      if(i % pres[l] != 0){
        flag = 1;
      }
    }
    /* そうでなかったら以下を実行 */
    if(flag == 1){
      for(j = 2 ; j <= i ; j++){
        put = i % j;

        if(put == 0 && i != j) break;

        if(put == 0){
	  if(k < MAX){
	    /* kが最高格納数以下なら素数を保存 */
	    pres[k] = i;
	    k++;
	  }
	  printf("%d\n", i);
          count++;
          break;
        }
      }
    }
  }

  printf("%d\n", count);
  count = 0;
  }
  return 0;
}

Compiler output:
a.cc:5:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
    5 | main(){
      | ^~~~
a.cc: In function 'int main()':
a.cc:13:9: error: 'scanf' was not declared in this scope
   13 |   res = scanf("%d", &in_num);
      |         ^~~~~
a.cc:15:13: error: 'EOF' was not declared in this scope
   15 |   if(res == EOF) break;
      |             ^~~
a.cc:1:1: note: 'EOF' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
  +++ |+#include <cstdio>
    1 | 
a.cc:19:28: error: 'NULL' was not declared in this scope
   19 |     for(l = 0 ; pres[l] != NULL ; l++){
      |                            ^~~~
a.cc:1:1: note: 'NULL' is defined in header '<cstddef>'; this is probably fixable by adding '#include <cstddef>'
  +++ |+#include <cstddef>
    1 | 
a.cc:37:11: error: 'printf' was not declared in this scope
   37 |           printf("%d\n", i);
      |           ^~~~~~
a.cc:37:11: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
a.cc:45:3: error: 'printf' was not declared in this scope
   45 |   printf("%d\n", count);
      |   ^~~~~~
a.cc:45:3: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
Language: C++

#include <stdio.h>
 
int main(){
    int e[30];
 
    int k = 0;
    while( scanf( "%d",&e[k] ) != EOF )k++;
 
    for( int i = 0;i < k;i++ ){
        int n = 1;
        int k = 0;
        while( true ){
            if( e[k] => n ){
                k++;
                n *= 10;
            } else {
                break;
            }
        }
        printf( "%d\n",k );
    }
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:23: error: expected primary-expression before '>' token
   13 |             if( e[k] => n ){
      |                       ^
Language: C++

#include <deque>
#include <algorithm>
#include <iostream>
#include <functional>
using namespace std;
int main(){
	int N,t,f,ans=0,s;
	while(cin>>N){
	for(int j=0;j<N;j++){
		int cnt=0;
		for(int k=2;k<N;k++){
				if(N%k==0){
				cnt=1; 
			}
		}
		if(data[j]==2){
				cnt=0;
			}
		else if(data[j]==1){
				cnt=1;
			}
		if(cnt==0)ans++;
	}
 
cout<<ans<<endl;
}
return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:16:24: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
   16 |                 if(data[j]==2){
      |                        ^
a.cc:19:29: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
   19 |                 else if(data[j]==1){
      |                             ^
Language: C++

#include <iostream>
#include <list>
#include <algorithm>

using namespace std;

int main() {
  int n;
  
  while(!cin.eof()) {
    cin >> n;
    list<int> search_list(n-1);
    list<int> prime_number;
    while(n!=1) {
      search_list.push_front(n);
      n--;
    }
    while(!search_list.empty()) {
      int m = search_list.front();
      prime_number.push_back(m);
      search_list.pop_front();
      list<int>::iterator it = search_list.begin();
      while(it!=search_list.end()) {
	if((*it % m) == 0){
	  it = search_list.erase(it);
	  continue;
	}
	it++;
      }				   
    }
    cout << prime_number.size()-1 << endl;
    prime_number.erase();
    search_list.erase();
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:32:23: error: no matching function for call to 'std::__cxx11::list<int>::erase()'
   32 |     prime_number.erase();
      |     ~~~~~~~~~~~~~~~~~~^~
In file included from /usr/include/c++/14/list:66,
                 from a.cc:2:
/usr/include/c++/14/bits/list.tcc:150:5: note: candidate: 'std::__cxx11::list<_Tp, _Alloc>::iterator std::__cxx11::list<_Tp, _Alloc>::erase(const_iterator) [with _Tp = int; _Alloc = std::allocator<int>; iterator = std::__cxx11::list<int>::iterator; const_iterator = std::__cxx11::list<int>::const_iterator]'
  150 |     list<_Tp, _Alloc>::
      |     ^~~~~~~~~~~~~~~~~
/usr/include/c++/14/bits/list.tcc:150:5: note:   candidate expects 1 argument, 0 provided
In file included from /usr/include/c++/14/list:65:
/usr/include/c++/14/bits/stl_list.h:1559:7: note: candidate: 'std::__cxx11::list<_Tp, _Alloc>::iterator std::__cxx11::list<_Tp, _Alloc>::erase(const_iterator, const_iterator) [with _Tp = int; _Alloc = std::allocator<int>; iterator = std::__cxx11::list<int>::iterator; const_iterator = std::__cxx11::list<int>::const_iterator]'
 1559 |       erase(const_iterator __first, const_iterator __last) noexcept
      |       ^~~~~
/usr/include/c++/14/bits/stl_list.h:1559:7: note:   candidate expects 2 arguments, 0 provided
a.cc:33:22: error: no matching function for call to 'std::__cxx11::list<int>::erase()'
   33 |     search_list.erase();
      |     ~~~~~~~~~~~~~~~~~^~
/usr/include/c++/14/bits/list.tcc:150:5: note: candidate: 'std::__cxx11::list<_Tp, _Alloc>::iterator std::__cxx11::list<_Tp, _Alloc>::erase(const_iterator) [with _Tp = int; _Alloc = std::allocator<int>; iterator = std::__cxx11::list<int>::iterator; const_iterator = std::__cxx11::list<int>::const_iterator]'
  150 |     list<_Tp, _Alloc>::
      |     ^~~~~~~~~~~~~~~~~
/usr/include/c++/14/bits/list.tcc:150:5: note:   candidate expects 1 argument, 0 provided
/usr/include/c++/14/bits/stl_list.h:1559:7: note: candidate: 'std::__cxx11::list<_Tp, _Alloc>::iterator std::__cxx11::list<_Tp, _Alloc>::erase(const_iterator, const_iterator) [with _Tp = int; _Alloc = std::allocator<int>; iterator = std::__cxx11::list<int>::iterator; const_iterator = std::__cxx11::list<int>::const_iterator]'
 1559 |       erase(const_iterator __first, const_iterator __last) noexcept
      |       ^~~~~
/usr/include/c++/14/bits/stl_list.h:1559:7: note:   candidate expects 2 arguments, 0 provided
Language: Java

import java.util.Scanner;
public class Main {

	public static void main(String[] args) {
		Scanner s = new Scanner(System.in);
		int n = s.nextInt();
		for(int i = 0; i < n; i++) {
			double x1 = s.nextDouble();
			double y1 = s.nextDouble();
			double x2 = s.nextDouble();
			double y2 = s.nextDouble();
			double x3 = s.nextDouble();
			double y3 = s.nextDouble();
			
			double a1 = 2.0 * (x2 - x1);
			double b1 = 2.0 * (y2 - y1);
			double c1 = (x1 * x1) - (x2 * x2) + (y1 * y1) - (y2 * y2);
			double a2 = 2.0 * (x3 - x1);
			double b2 = 2.0 * (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);
			
			double l = Math.hypot(x-x1, y-y1)
			x *= 1000;
			y *= 1000;
			l *= 1000;
			long xt = Math.round(x);
			long yt = Math.round(y);
			long lt = Math.round(l);
			x = (double)xt / 1000;
			y = (double)yt / 1000;
			l = (double)lt / 1000;
			
			System.out.printf("%.3f %.3f %.3f\n",x,y,l);
		}
	}
}

Compiler output:
Main.java:25: error: ';' expected
			double l = Math.hypot(x-x1, y-y1)
			                                 ^
1 error
Language: Java

import java.util.Scanner;

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++){
int x1,y1,x2,y2,x3,y3;
x1=sc.nextInt();
y1=sc.nextInt();
x2=sc.nextInt();
y2=sc.nextInt();
x3=sc.nextInt();
y3=sc.nextInt();
int a=(x1*x1-x2*x2)*(y2-y3)-(x2*x2-x3*x3)-(y1-y2)*(y2-y3)*(y3-y1);
int b=2*(x1-x2)*(y2-y3)-2*(x2-x3)*(y1-y2);
int px=a/b;
int py=(px-x2/2-x3/2)*(x3-x2)/(y2-y3)+(y2+y3)/2;
int r=Math.hypot(px-x1,py-y1);
System.out.printf("%d %d %d\n",px,py,r);
}
}
}

Compiler output:
Main.java:19: error: incompatible types: possible lossy conversion from double to int
int r=Math.hypot(px-x1,py-y1);
                ^
1 error
Language: Java

import java.util.*;

public class Main{
	static final Scanner sc = new Scanner(System.in);
	public static void main(String[] args) {
		double x1,x2,x3,y1,y2,y3;
		int n = stdin.nextInt();
		while( n-- > 0 ){
			x1 = sc.nextDouble(); y1 = sc.nextDouble();
			x2 = sc.nextDouble(); y2 = sc.nextDouble();
			x3 = sc.nextDouble(); y3 = sc.nextDouble();
			double[] ans = solve( 2*(x1-x2), 2*(y1-y2), x1*x1+y1*y1-(x2*x2+y2*y2), 2*(x1-x3), 2*(y1-y3), x1*x1+y1*y1-(x3*x3+y3*y3));
			System.out.printf("%.3f %.3f %.3f\n", ans[0], ans[1], Math.sqrt( Math.pow(ans[0]-x1, 2) + Math.pow(ans[1]-y1, 2) ) );
		}
	}
	static double[] solve(double a, double b, double c, double d, double e, double f){
		double[] ans = new double[2];
		ans[0] = (c*e - b*f) / (a*e - b*d) + 0.0;
		ans[1] = (a*f - c*d) / (a*e - b*d) + 0.0;
		return ans;
	}
}

Compiler output:
Main.java:7: error: cannot find symbol
		int n = stdin.nextInt();
		        ^
  symbol:   variable stdin
  location: class Main
1 error
Language: Java

import java.util.*;

public class Main{
	private static final Scanner scan = new Scanner(System.in);

	public static double[] getLine(double x1, double y1, double x2, double y2){
		double[] ans = new double[3];
		double mid_x = (x1 + x2) / 2;
		double mid_y = (y1 + y2) / 2;
		ans[0] = y1 - y2;
		ans[1] = x1 - x2;
		ans[2] = - mid_y * (y1 - y2) - mid_x * (x1 - x2);
		return ans;
	}

	public static void main(String[] args){
		int n = scan.nextInt();
		double[] pt = new double[6];
		for(int i = 0; i < n; i++){
			for(int j = 0; j < pt.length; j++){
				pt[j] = scan.nextDouble();
			}
			double[] l1 = getLine(pt[0], pt[1], pt[2], pt[3]);
			double[] l2 = getLine(pt[0], pt[1], pt[4], pt[5]);

			double x = (l1[0] * l2[2] - l1[2] * l2[0] /
						(l1[1] * l2[0] - l1[0] * l2[1]);
			double y;
			if(l1[0] != 0){
				y = (l1[1] * x + l1[2]) / - l1[0];
			} else{
				y = (l2[1] * x + l2[2]) / - l2[0];
			}
			double r = Math.sqrt(Math.pow(x - pt[0], 2) +
					Math.pow(y - pt[1], 2));
			System.out.printf("%.3f %.3f %.3f\n", x, y, r);
		}
	}
}

Compiler output:
Main.java:27: error: ')' expected
						(l1[1] * l2[0] - l1[0] * l2[1]);
						                               ^
1 error
Language: Java

import java.util.*;

public class Vol0_10{
	private static final Scanner scan = new Scanner(System.in);

	public static double[] getLine(double x1, double y1, double x2, double y2){
		double[] ans = new double[3];
		double mid_x = (x1 + x2) / 2;
		double mid_y = (y1 + y2) / 2;
		ans[0] = y1 - y2;
		ans[1] = x1 - x2;
		ans[2] = - mid_y * (y1 - y2) - mid_x * (x1 - x2);
		return ans;
	}

	public static void main(String[] args){
		List<Double> listX = new ArrayList<Double>();
		List<Double> listY = new ArrayList<Double>();
		List<Double> listR = new ArrayList<Double>();
		int n = scan.nextInt();
		double[] pt = new double[6];
		for(int i = 0; i < n; i++){
			for(int j = 0; j < pt.length; j++){
				pt[j] = scan.nextDouble();
			}
			double[] l1 = getLine(pt[0], pt[1], pt[2], pt[3]);
			double[] l2 = getLine(pt[0], pt[1], pt[4], pt[5]);

			double x = (l1[0] * l2[2] - l1[2] * l2[0]) /
						(l1[1] * l2[0] - l1[0] * l2[1]);
			double y;
			if(l1[0] != 0){
				y = (l1[1] * x + l1[2]) / - l1[0];
			} else{
				y = (l2[1] * x + l2[2]) / - l2[0];
			}
			double r = Math.sqrt(Math.pow(x - pt[0], 2) +
					Math.pow(y - pt[1], 2));
			listX.add(x);
			listY.add(y);
			listR.add(r);
		}

		Iterator<Double> itX = listX.iterator();
		Iterator<Double> itY = listY.iterator();
		Iterator<Double> itR = listR.iterator();
		while(itX.hasNext()){
			double x = itX.next();
			double y = itY.next();
			double r = itR.next();
			System.out.printf("%.3f %.3f %.3f\n", x, y, r);
		}
	}
}

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

class Main
{
	double x, y;
	Main( double x, double y )
	{
		this.x = x;
		this.y = y;
	}
	public static void main( String[] args )
	{
		new Circle();
	}
	static class Circle
	{
		Circle()
		{
			java.util.Scanner sc = new java.util.Scanner( System.in );
			point a = new point( sc.nextDouble(), sc.nextDouble() );
			point b = new point( sc.nextDouble(), sc.nextDouble() );
			point c = new point( sc.nextDouble(), sc.nextDouble() );
			
			double ax_2 = a.x*a.x;
			double ay_2 = a.y*a.y;
			double bx_2 = b.x*b.x;
			double by_2 = b.y*b.y;
			double cx_2 = c.x*c.x;
			double cy_2 = c.y*c.y;
			double p1 = (a.y - c.y)*(ay_2 - by_2 + ax_2 - bx_2)+(a.y - b.y)*(ay_2 - cy_2 + ax_2 - cx_2);
			double p2 = 2*(a.y - c.y)*(a.x - b.x)-2*(a.y - b.y)*(a.x - c.x);
			double q1 = (a.x - c.x)*(ax_2 - bx_2 + ay_2 - by_2)-(a.x - b.x)*(ax_2 - cx_2 + ay_2 - cy_2);
			double q2 = 2*(a.x - c.x)*(a.y - b.y)-2*(a.x - b.x)*(a.y - c.y);
			
			double p = (p1/p2)/0.001/1000;
			double q = (q1/q2)/0.001/1000;
			double d = Math.sqrt((p-a.x)*(p-a.x)+(q-a.y)*(q-a.y));
			
			System.out.printf( "%.3f %.3f %.3f\n" , p, q, d );
		}
	}
}

Compiler output:
Main.java:18: error: cannot find symbol
			point a = new point( sc.nextDouble(), sc.nextDouble() );
			^
  symbol:   class point
  location: class Circle
Main.java:18: error: cannot find symbol
			point a = new point( sc.nextDouble(), sc.nextDouble() );
			              ^
  symbol:   class point
  location: class Circle
Main.java:19: error: cannot find symbol
			point b = new point( sc.nextDouble(), sc.nextDouble() );
			^
  symbol:   class point
  location: class Circle
Main.java:19: error: cannot find symbol
			point b = new point( sc.nextDouble(), sc.nextDouble() );
			              ^
  symbol:   class point
  location: class Circle
Main.java:20: error: cannot find symbol
			point c = new point( sc.nextDouble(), sc.nextDouble() );
			^
  symbol:   class point
  location: class Circle
Main.java:20: error: cannot find symbol
			point c = new point( sc.nextDouble(), sc.nextDouble() );
			              ^
  symbol:   class point
  location: class Circle
6 errors
Language: Java

class Main
{
	double x, y;
	Main( double x, double y )
	{
		this.x = x;
		this.y = y;
	}
	public static void main( String[] args )
	{
		java.util.Scanner sc = new java.util.Scanner( System.in );
		point a = new point( sc.nextDouble(), sc.nextDouble() );
		point b = new point( sc.nextDouble(), sc.nextDouble() );
		point c = new point( sc.nextDouble(), sc.nextDouble() );
		
		double ax_2 = a.x*a.x;
		double ay_2 = a.y*a.y;
		double bx_2 = b.x*b.x;
		double by_2 = b.y*b.y;
		double cx_2 = c.x*c.x;
		double cy_2 = c.y*c.y;
		double p1 = (a.y - c.y)*(ay_2 - by_2 + ax_2 - bx_2)+(a.y - b.y)*(ay_2 - cy_2 + ax_2 - cx_2);
		double p2 = 2*(a.y - c.y)*(a.x - b.x)-2*(a.y - b.y)*(a.x - c.x);
		double q1 = (a.x - c.x)*(ax_2 - bx_2 + ay_2 - by_2)-(a.x - b.x)*(ax_2 - cx_2 + ay_2 - cy_2);
		double q2 = 2*(a.x - c.x)*(a.y - b.y)-2*(a.x - b.x)*(a.y - c.y);
		
		double p = (p1/p2)/0.001/1000;
		double q = (q1/q2)/0.001/1000;
		double d = Math.sqrt((p-a.x)*(p-a.x)+(q-a.y)*(q-a.y));
		
		System.out.printf( "%.3f %.3f %.3f\n" , p, q, d );
	}
}

Compiler output:
Main.java:12: error: cannot find symbol
		point a = new point( sc.nextDouble(), sc.nextDouble() );
		^
  symbol:   class point
  location: class Main
Main.java:12: error: cannot find symbol
		point a = new point( sc.nextDouble(), sc.nextDouble() );
		              ^
  symbol:   class point
  location: class Main
Main.java:13: error: cannot find symbol
		point b = new point( sc.nextDouble(), sc.nextDouble() );
		^
  symbol:   class point
  location: class Main
Main.java:13: error: cannot find symbol
		point b = new point( sc.nextDouble(), sc.nextDouble() );
		              ^
  symbol:   class point
  location: class Main
Main.java:14: error: cannot find symbol
		point c = new point( sc.nextDouble(), sc.nextDouble() );
		^
  symbol:   class point
  location: class Main
Main.java:14: error: cannot find symbol
		point c = new point( sc.nextDouble(), sc.nextDouble() );
		              ^
  symbol:   class point
  location: class Main
6 errors
Language: Java

import java.util.Scanner;

public class CircumscribedCircleofaTriangle2 {

    public static void main(String[] args) {
        try (Scanner scan = new Scanner(System.in)) {
            String[] vertexStrList = scan.nextLine().split(" ");
            double[] vertexList = new double[6];
            for (int i = 0; i < 6; i++) {
                vertexList[i] = Double.parseDouble(vertexStrList[i]);
            }
            double ax = vertexList[0];
            double ay = vertexList[1];
            double bx = vertexList[2];
            double by = vertexList[3];
            double cx = vertexList[4];
            double cy = vertexList[5];
            double abDX = bx - ax;
            double abDY = by - ay;
            double acDX = cx - ax;
            double acDY = cy - ay;
            double[] in = { abDX, abDY, getB(ax, ay, bx, by), acDX, acDY, getB(ax, ay, cx, cy) };
            double[] pXY = getXY(in);
            double r = Math.sqrt(Math.pow(ax - pXY[0], 2) + Math.pow(ay - pXY[1], 2));
            System.out.println(pXY[0] + " " + pXY[1] + " " + String.format("%.3f", r));
        } catch (Exception e) {
            System.exit(0);
        }
    }

    private static double[] getXY(double[] in) {
        double deno = (in[1] * in[3] - in[0] * in[4]);
        double[] xy = new double[2];
        xy[0] = (in[1] * in[5] - in[2] * in[4]) / deno;
        xy[1] = (in[0] * in[5] - in[2] * in[3]) / (deno * -1);
        return xy;
    }

    private static double getB(double ax, double ay, double bx, double by) {
        return (Math.pow(by, 2) - Math.pow(ay, 2) + Math.pow(bx, 2) - Math.pow(ax, 2)) / 2;
    }

}

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

import java.util.Scanner;

class Main {
    public static void main(String[] args) {
	Scanner s = new Scanner(System.in);
	int n = s.nextInt();
	double[] points = new double[6];
	double ep = 0.0001;
	double l,m;
	for(int i=0 ; i<n ; i++) {
	    for(int j=0 ; j<6 ; j++)
		points[j] = s.next();
	    for(int j=1 ; j<3 ; j++) {
		points[2*j] -= points[0];
		points[2*j+1] -= points[1];
	    }
	    l = (points[3]*points[3]+points[4]*points[4])*(points[3]-points[5])/(points[2]*points[5]-points[4]*points[3]);
	    m = -(points[4]*points[4]+points[5]*points[5]+l*points[4])/points[5];

	    System.out.println(points[0]-l/2 + " " + points[1]-m/2 + " " + (l*l+m*m)/4);

	}
    }
}

Compiler output:
Main.java:12: error: incompatible types: String cannot be converted to double
		points[j] = s.next();
		                  ^
Main.java:20: error: bad operand types for binary operator '-'
	    System.out.println(points[0]-l/2 + " " + points[1]-m/2 + " " + (l*l+m*m)/4);
	                                                      ^
  first type:  String
  second type: double
2 errors
Language: Java

import java.util.Scanner;

class Main {
    public static void main(String[] args) {
	Scanner s = new Scanner(System.in);
	int n = s.nextInt();
	double[] points = new double[6];
	double ep = 0.0001;
	double l,m;
	for(int i=0 ; i<n ; i++) {
	    for(int j=0 ; j<6 ; j++)
		points[j] = s.nextDouble();
	    for(int j=1 ; j<3 ; j++) {
		points[2*j] -= points[0];
		points[2*j+1] -= points[1];
	    }
	    l = (points[3]*points[3]+points[4]*points[4])*(points[3]-points[5])/(points[2]*points[5]-points[4]*points[3]);
	    m = -(points[4]*points[4]+points[5]*points[5]+l*points[4])/points[5];

	    System.out.println(points[0]-l/2 + " " + points[1]-m/2 + " " + (l*l+m*m)/4);

	}
    }
}

Compiler output:
Main.java:20: error: bad operand types for binary operator '-'
	    System.out.println(points[0]-l/2 + " " + points[1]-m/2 + " " + (l*l+m*m)/4);
	                                                      ^
  first type:  String
  second type: double
1 error
Language: Java

import java.util.*;

public class Main {
	
	static double[] solve(double a, double b, double c, double d, double e, double f){
			double det = a*e-b*d;
			double[] ans = new double[2];
			ans[0] = (c*e-b*f)/det;
			ans[1] = (a*f-c*d)/det;
			for(int i=0; i<2; i++) if(ans[i]==-0) ans[i] = 0;
			return ans;
	}
	

	public static void main(String[] args) {
		Scanner stdIn = new Scanner(System.in);
		int n = stdIn.nextInt();
		for(int i=0; i<n; i++){
			double x1 = stdIn.nextDouble();
			double y1 = stdIn.nextDouble();
			double x2 = stdIn.nextDouble();
			double y2 = stdIn.nextDouble();
			double x3 = stdIn.nextDouble();
			double y3 = stdIn.nextDouble();
		
			double[] ans = solve(x1-x2,y1-y2,x1*(x1-x2)+y1*(y1-y2),x3-x2,y3-y2,x3*(x3-x2)+y3*(y3-y2));
			double xp,yp,r;
			xp = (x2 + ans[0])/2.0;
			yp = (y2 + ans[1])/2.0;
			r = Math.sqrt((xp-x2)*(xp-x2)+(yp-x2)*(yp-x2));
			System.out.printf("%.3f %.3f %.3f",xp,yp,r);
			System.out.println();
		}
	}

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

1
0.0 0.0 2.0 0.0 2.0 2.0import java.util.*;

public class Main {
    public static void main (String[] args) {
        Scanner scanner = new Scanner(System.in);
        
        int n = scanner.nextInt();
        
        for (int i = 0; i < n; i++) {
            double x1 = scanner.nextDouble();
            double y1 = scanner.nextDouble();
            double x2 = scanner.nextDouble();
            double y2 = scanner.nextDouble();
            double x3 = scanner.nextDouble();
            double y3 = scanner.nextDouble();
            
            double px = ((y1-y3)*(y1*y1 -y2*y2 +x1*x1 -x2*x2) -(y1-y2)*(y1*y1 -y3*y3 +x1*x1 -x3*x3)) / (2*(y1-y3)*(x1-x2)-2*(y1-y2)*(x1-x3));
            double py = ((x1-x3)*(x1*x1 -x2*x2 +y1*y1 -y2*y2) -(x1-x2)*(x1*1 -x3*x3 +y1*y1 -y3*y3)) / (2*(x1-x3)*(y1-y2)-2*(x1-x2)*(y1-y3));

            double a = Math.sqrt(Math.pow(x1-x2,2) + Math.pow(y1-y2,2));
            double b = Math.sqrt(Math.pow(x2-x3,2) + Math.pow(y2-y3,2));
            double c = Math.sqrt(Math.pow(x3-x1,2) + Math.pow(y3-y1,2));
            double r = (a * b * c) / (Math.sqrt((a+b+c) * (-a+b+c) * (a-b+c) * (a+b-c)));          
            
            System.out.printf("%.3f %.3f %.3f\n", px, py, r);
        }
    }
}

Compiler output:
Main.java:1: error: class, interface, enum, or record expected
1
^
1 error
Language: Java

import java.io.*;
import static java.lang.Math.*;

public class CircumscribedCircleOfATriangle {
	public static void main(String[] args) throws IOException {
		BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
		int n = Integer.parseInt(in.readLine());
		for(int i=0;i<n;i++)calc(in.readLine());
	}
	private static void calc(String arr){
		String[] points = arr.split(" ", 0);
		double x1 = Double.parseDouble(points[0]);
		double y1 = Double.parseDouble(points[1]);
		double x2 = Double.parseDouble(points[2]);
		double y2 = Double.parseDouble(points[3]);
		double x3 = Double.parseDouble(points[4]);
		double y3 = Double.parseDouble(points[5]);
		double A1 = 2*(x2-x1);
		double B1 = 2*(y2-y1);
		double C1 = pow(x1,2)-pow(x2,2)+pow(y1,2)-pow(y2,2);
		double A2 = 2*(x3-x1);
		double B2 = 2*(y3-y1);
		double C2 = pow(x1,2)-pow(x3,2)+pow(y1,2)-pow(y3,2);
		double x = (B1*C2-B2*C1)/(A1*B2-A2*B1);
		double y = (C1*A2-C2*A1)/(A1*B2-A2*B1);
		double r = sqrt(pow(x-x1,2)+pow(x-x1,2));
		System.out.printf("%.3f %.3f %.3f", x,y,r);
	}
}

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

import java.util.*;

public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		double x1, x2, x3, y1, y2, y3, a, b, c, x, y, r;
		while (sc.hasNext()) {
			x1 = sc.nextDouble();
			y1 = sc.nextDouble();
			x2 = sc.nextDouble();
			y2 = sc.nextDouble();
			x3 = sc.nextDouble();
			y3 = sc.nextDouble();
			a = Math.sqrt((x1 - x2) * (x1 - x2) + (y1 - y2) * (y1 - y2));
			b = Math.sqrt((x2 - x3) * (x2 - x3) + (y2 - y3) * (y2 - y3));
			c = Math.sqrt((x3 - x1) * (x3 - x1) + (y3 - y1) * (y3 - y1));
			x = ((y1 - y3) * (y1 * y1 - y2 * y2 + x1 * x1 - x2 * x2) - (y1 - y2)
					* (y1 * y1 - y3 * y3 + x1 * x1 - x3 * x3))
					/ (2 * (y1 - y3) * (x1 - x2) - 2 * (y1 - y2) * (x1 - x3));
			y = ((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));
			r = (Math.sqrt((x - x1) * (x - x1) + (y - y1) * (y - y1)));
			System.out.printf("%.3f %.3f %.3f", x, y, R);
		}
	}
}

Compiler output:
Main.java:24: error: cannot find symbol
			System.out.printf("%.3f %.3f %.3f", x, y, R);
			                                          ^
  symbol:   variable R
  location: class Main
1 error
Language: Java

import java.io.*;
class Main
{
    public static void main(String args[])throws IOException
    {
	BufferedReader input=new BufferedReader(new InputStreamReader(System.in));
	int n=Integer.parseInt(input.readLine());
	for(int i=0;i<n;i++)
	    {
		String str=input.readLine();
		String str_ary[]=str.split(" ");
		Double x[]=new Double[3];
		Double y[]=new Double[3];
		x[0]=Double.parseDouble(str_ary[0]);
		y[0]=Double.parseDouble(str_ary[0]);
		for(int j=1;j<3;j++)
		    {
			x[j]=Double.parseDouble(str_ary[j*2]);
			y[j]=Double.parseDouble(str_ary[j*2+1]);		
		    }
		Double max1=x[0],max2=y[0],min1=x[0],min2=y[0],then=0;
		for(int j=0;j<3;j++)
		    {
			if(x[j]>max1)
			    {
				max1=x[j];
				then=y[j];
			    }
			if(y[j]>max2)max2=y[j];
			if(x[j]<min1)min1=x[j];
			if(y[j]<min2)min2=y[j];
		    }	
		
		Double ans1=0d,ans2=0d,ans3=0d;
		
		ans1=(max1+min1)/2;
		
		ans2=(max2+min2)/2;
		
		    ans3=Math.sqrt(Math.pow(max1-ans1,2)+Math.pow(then,2));
		if(ans1%1.0000>=0.0005)ans1+=0.001;
		if(ans2%1.0000>=0.0005)ans2+=0.001;
		if(ans3%1.0000>=0.0005)ans3+=0.001;
		System.out.printf("%.3f %.3f %.3f\n",ans1,ans2,ans3);
	    }
	
    }
}

Compiler output:
Main.java:21: error: incompatible types: int cannot be converted to Double
		Double max1=x[0],max2=y[0],min1=x[0],min2=y[0],then=0;
		                                                    ^
1 error
Language: Java

import std.stdio;
import std.string;
import std.conv;
import std.math;

int main()
{
	int n;
	readf("%f",&n);

	foreach(int i;0..n)
	{
		double x1,y1,x2,y2,x3,y3;
		readf("%f %f %f %f %f %f",&x1,&y1,&x2,&y2,&x3,&y3);

		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);
		
		double r_2 = (x1 - x)*(x1 - x) + (y1 - y)*(y1 - y);
		double r = sqrt(r_2);

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

	return 0;
}

Compiler output:
Main.java:11: error: not a statement
	foreach(int i;0..n)
	            ^
Main.java:11: error: not a statement
	foreach(int i;0..n)
	                ^
Main.java:6: error: unnamed classes are a preview feature and are disabled by default.
int main()
^
  (use --enable-preview to enable unnamed classes)
Main.java:9: error: illegal start of expression
	readf("%f",&n);
	           ^
Main.java:11: error: ';' expected
	foreach(int i;0..n)
	                  ^
Main.java:14: error: illegal start of expression
		readf("%f %f %f %f %f %f",&x1,&y1,&x2,&y2,&x3,&y3);
		                          ^
Main.java:14: error: illegal start of expression
		readf("%f %f %f %f %f %f",&x1,&y1,&x2,&y2,&x3,&y3);
		                              ^
Main.java:14: error: illegal start of expression
		readf("%f %f %f %f %f %f",&x1,&y1,&x2,&y2,&x3,&y3);
		                                  ^
Main.java:14: error: illegal start of expression
		readf("%f %f %f %f %f %f",&x1,&y1,&x2,&y2,&x3,&y3);
		                                      ^
Main.java:14: error: illegal start of expression
		readf("%f %f %f %f %f %f",&x1,&y1,&x2,&y2,&x3,&y3);
		                                          ^
Main.java:14: error: illegal start of expression
		readf("%f %f %f %f %f %f",&x1,&y1,&x2,&y2,&x3,&y3);
		                                              ^
11 errors
Language: Java

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

public class Main {
	public static void main(String[] args) {
		Scanner in = new Scanner(System.in);
		int n = in.nextInt();
		for(int i=0; i<n; i++) {
			double a1 = in.nextDouble();
			double a2 = in.nextDouble();
			double b1 = in.nextDouble();
			double b2 = in.nextDouble();
			double c1 = in.nextDouble();
			double c2 = in.nextDouble();
			double A = (Math.pow(b1,2)+Math.pow(b2,2)-Math.pow(a1,2)-Math.pow(a2,2))*(c2-a2);
			double B = (Math.pow(c1,2)+Math.pow(c2,2)-Math.pow(a1,2)-Math.pow(a2,2))*(b2-a2);
			double C = (b1-a1)*(c2-a2)-(c1-a1)*(b2-a2);
			double p = Math.abs((A-B)/2/C);
			double AA = (Math.pow(b1,2)+Math.pow(b2,2)-Math.pow(a1,2)-Math.pow(a2,2))*(c1-a1);
			double BB = (Math.pow(c2,2)+Math.pow(c1,2)-Math.pow(a2,2)-Math.pow(a1,2))*(b2-a1);
			double CC = (b2-a2)*(c1-a1)-(c2-a2)*(b1-a1);
			double q = Math.abs((AA-BB)/2/CC);
			double r = Math.sqrt(Math.pow(a1-p,2) + Math.pow(a2-q,2));
			System.out.println(new BigDecimal(p).setScale(3, BigDecimal.ROUND_HALF_UP)+" "+new BigDecimal(q).setScale(3, BigDecimal.ROUND_HALF_UP)+" "+new BigDecimal(r).setScale(3, BigDecimal.ROUND_HALF_UP));
		}

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

#include <iostream>
#include <iomanip>
#include <cmath>
using namespace std;
int main()
{
	int n;
	double x1, x2, x3;
	double y1, y2, y3;
	cin >> n;
	cin >> x1 >> y1 >> x2 >> y2 >> x3 >> y3;
	double px, py, r;
	double A = (x2 - x1)*(y3 - y2) - (y2 - y1)*(x3 - x2);
	px = 0.5*((y3 - y2)*(x2*x2 - x1*x1 + y2*y2 - y1*y1) - (y2 - y1)*(x3*x3 - x2*x2 + 
y3*y3 - y2*y2)) / A;
	py = 0.5*(-(x3 - x2)*(x2*x2 - x1*x1 + y2*y2 - y1*y1) + (x2 - x1)*(x3*x3 - x2*x2 + y3*y3 - y2*y2)) / A;
	double a = px - x1;
	double b = py - y1;
	double r0 = (a*a + b*b);
	double r1 = sqrt(r0);
	cout << fixed << setprecision(10) << px << " " << py << " " << r1 <<  endl;
}


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>
double x1,y1,x2,y2,x3,y3;
double px, py,r;
int main()
{
    int n;
    scanf("%d",&n);
    while(n--)
    {
        scanf("%lf%lf%lf%lf%lf%lf",&x1,&y1,&x2,&y2,&x3,&y3);
        double A1 =(x2*x2+y2*y2-x1*x1-y1*y1)*(y3-y1);
        double B1 =(x3*x3+y3*y3-x1*x1-y1*y1)*(y2-y1);
        double A2 =(x3*x3+y3*y3-x1*x1-y1*y1)*(x2-x1);
        double B2 =(x2*x2+y2*y2-x1*x1-y1*y1)*(x3-x1);
        double D = (x2-x1)*(y3-y1)-(y2-y1)*(x3-x1);
         px=(A1-B1)/D/2;
         py=(A2-B2)/D/2;
         r = sqrt((px-x1)*(px-x1)+(py-y1)*(py-y1));
        printf("%.3f %.3f %.3f\n",px,py,r);
    }
    return 0;
}

Compiler output:
main.c:3:11: error: 'y1' redeclared as different kind of symbol
    3 | double x1,y1,x2,y2,x3,y3;
      |           ^~
In file included from /usr/include/features.h:523,
                 from /usr/include/x86_64-linux-gnu/bits/libc-header-start.h:33,
                 from /usr/include/stdio.h:28,
                 from main.c:1:
/usr/include/x86_64-linux-gnu/bits/mathcalls.h:257:1: note: previous declaration of 'y1' with type 'double(double)'
  257 | __MATHCALL (y1,, (_Mdouble_));
      | ^~~~~~~~~~
Language: C

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

int main(void){

  int n,i;
  double x1,x2,x3,y1,y2,y3;
  double A1,B1,C1,A2,B2,C2,X,Y;
  double r;
  double a,b,c,a1,b1,c1;

  scanf("%d",&n);

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

    A1 = 2 * (x2 - x1);
    B1 = 2 * (y2 - y1);
    C1 = pow(x1,2) - pow(x2,2) + pow(y1,2) - pow(y2,2);
    A2 = 2 * (x3 - x1);
    B2 = 2 * (y3 - y1);
    C2 = pow(x1,2) - pow(x3,2) + pow(y1,2) - pow(y3,2);
    X = (B1 * C2 - B2 * C1) / (A1 * B2 - A2 * B1);
    Y = (C1 * A2 - C2 * A1) / (A1 * B2 - A2 * B1);
    b = (pow(x2,2) - pow(x1,2)) + (pow(y2,2) - pow(y1,2));
    b1 = sqrt(b);
    c = (pow(x3,2) - pow(x2,2)) + (pow(y3,2) - pow(y2,2));
    c1 = sqrt(c);
    a = (pow(x3,2) - pow(x1,2)) + (pow(y3,2) - pow(y1,2));
    a1 = sqrt(a);
    r = (a1 * b1 * c1)/sqrt((a1 + b1 + c1) * (-a1 + b1 + c1) * (a1 - b1 + c1) * (a1 + b1 - c1));

    printf("%.3f %.3f %.3f\n",X,Y,r);
  }

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

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

int main(void){

  int n;
  double x1,x2,x3,y1,y2,y3;
  double A1,B1,C1,A2,B2,C2,X,Y;
  double r;
  double a,b,c,a1,b1,c1;

  scanf("%d",&n);

  while( n != 0){
    scanf("%3lf %3lf %3lf %3lf %3lf %3lf",&x1,&y1,&x2,&y2,&x3,&y3);

    A1 = 2 * (x2 - x1);
    B1 = 2 * (y2 - y1);
    C1 = pow(x1,2) - pow(x2,2) + pow(y1,2) - pow(y2,2);
    A2 = 2 * (x3 - x1);
    B2 = 2 * (y3 - y1);
    C2 = pow(x1,2) - pow(x3,2) + pow(y1,2) - pow(y3,2);
    X = (B1 * C2 - B2 * C1) / (A1 * B2 - A2 * B1);
    Y =anf("%d",&n);

  while( n != 0){
    scanf("%3lf %3lf %3lf %3lf %3lf %3lf",&x1,&y1,&x2,&y2,&x3,&y3);

    A1 = 2 * (x2 - x1);
    B1 = 2 * (y2 - y1);
    C1 = pow(x1,2) - pow(x2,2) + pow(y1,2) - pow(y2,2);
    A2 = 2 * (x3 - x1);
    B2 = 2 * (y3 - y1);
    C2 = pow(x1,2) - pow(x3,2) + pow(y1,2) - pow(y3,2);
    X = (B1 * C2 - B2 * C1) / (A1 * B2 - A2 * B1);
    Y = (C1 * A2 - C2 * A1) / (A1 * B2 - A2 * B1);
    b = (pow(x2,2) - pow(x1,2)) + (pow(y2,2) - pow(y1,2));
    b1 = sqrt(b);
    c = (pow(x3,2) - pow(x2,2)) + (pow(y3,2) - pow(y2,2));
    c1 = sqrt(c);
    a = (pow(x3,2) - pow(x1,2)) + (pow(y3,2) - pow(y1,2));
    a1 = sqrt(a);
    r = (a1 * b1 * c1)/sqrt((a1 + b1 + c1) * (-a1 + b1 + c1) * (a1 - b1 + c1) * (a1 + b1 - c1));

    printf("%.3f %.3f %.3f\n",X,Y,r);
    n--;
  }  
  return 0;
 }

Compiler output:
main.c: In function 'main':
main.c:24:8: error: implicit declaration of function 'anf'; did you mean 'ynf'? [-Wimplicit-function-declaration]
   24 |     Y =anf("%d",&n);
      |        ^~~
      |        ynf
main.c:49:2: error: expected declaration or statement at end of input
   49 |  }
      |  ^
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));
          x = ((y1-y3)*(y1*y1-y2*y2+x1*x1-x2*x2)-(y1-y2)*(y1*y1-y3*y3+x1*x1-x3*x3))/(2*(y1-y3)*(x1-x2)-2*(y1-y2)*(x1-x3));
          y = ((x1-x3)*(y1*y1-y2*y2+x1*x1-x2*x2)-(x1-x2)*(y1*y1-y3*y3+x1*x1-x3*x3))/(2*(y1-y2)*(x1-x3)-2*(y1-y3)*(x1-x2));
          printf("%.3f %.3f %.3f",x,y,r);
      }
      return 0 ;
 }

Compiler output:
main.c: In function 'main':
main.c:10:27: error: expected expression before 'double'
   10 |           r = x3 / (2*sin(double a));
      |                           ^~~~~~
Language: C

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

// ?????§?¨?????????¨??????
typedef complex<double> P;
// ???????????
#define PI 3.1415926535898

// ?¨±?????????????????
#define EPS (1e-10)
//XY??§?¨?
#define X real()
#define Y imag()

//?????????double????????°???????????????????????????
bool equal(double a, double b) {
	return (abs(a - b) < EPS) ? true : false;
}

// ????§???¢?????????
class Triangle {

private:
	//????§???¢??????????????§?¨?
	P a, b, c;
	//????§???¢??????????????????
	double edgeA, edgeB, edgeC;
	//????§???¢???????§??????§??????(????????¢???)
	double angleA, angleB, angleC;
	//????????????????????????????§????????±?????????¢??°
	double LawOfCosines(double a, double b, double c) {
		return acos((b*b + c*c - a*a) / (2.0*b*c));
	}

public:
	//?????????????????????(??????????????¨?????¨?§????????????????)
	Triangle(P p1, P p2, P p3) {
		a = p1;
		b = p2;
		c = p3;
		edgeB = abs(c - a);
		edgeA = abs(b - c);
		edgeC = abs(a - b);
		angleA = LawOfCosines(edgeA, edgeB, edgeC);
		angleB = LawOfCosines(edgeB, edgeC, edgeA);
		angleC = LawOfCosines(edgeC, edgeA, edgeB);
	}
	double getAngleC() {//?§?C????§????????????????
		return angleC;
	}
};

int main() {
	double x1, x2, x3, y1, y2, y3, xp, yp, angle;

	while (cin >> x1 >> y1 >> x2 >> y2 >> x3 >> y3 >> xp >> yp) {
		P a(x1, y1);
		P b(x2, y2);
		P c(x3, y3);
		P p(xp, yp);
		Triangle Tr1(a, b, p);
		Triangle Tr2(b, c, p);
		Triangle Tr3(c, a, p);
		angle = Tr1.getAngleC() + Tr2.getAngleC() + Tr3.getAngleC();
		(equal(2.0*PI, angle)) ? cout << "YES" : cout << "NO";
		cout << endl;
	}
}

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();
double sq(double);


int main(){
	double x1,x2,x3,y1,y2,y3,a1,b1,c1,a2,b2,c2,x,y,r;
	int n;
	
	scanf("%d\n", &n);
	for(int i = 0;i < n;i++){
		scanf("%lf %lf %lf %lf %lf %lf",
			&x1, &y1, &x2, &y2, &x3, &y3);

		
		a1 = 2 * (x2 - x1);
		b1 = 2 * (y2 - y1);
		c1 = sq(x1) - sq(x2) + sq(y1) - sq(y2);
		a2 = 2 * (x3 - x1);
		b2 = 2 * (y3 - y1);
		c2 = sq(x1) - sq(x3) + sq(y1) - sq(y3);
		
		x = (b1 * c2 - b2 * c1) / (a1 * b2 - a2 * b1);
		y = (c1 * a2 - c2 * a1) / (a1 * b2 - a2 * b1);
		r = hypot(fabs(x - x1), fabs(y - y1));
		
		printf("%.3lf %.3lf %.3lf", x, y, r);
	}
	
	return 0;
}

double sq(double x){
	return pow(x, 2);
}

Compiler output:
/usr/bin/ld: /tmp/ccjfcf6f.o: in function `main':
main.c:(.text+0x281): undefined reference to `hypot'
/usr/bin/ld: /tmp/ccjfcf6f.o: in function `sq':
main.c:(.text+0x2fe): undefined reference to `pow'
collect2: error: ld returned 1 exit status
Language: C

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

int main()
{
	int i, n;
    double x1, x2, x3, y1, y2, y3;
    double a, b, c, d, e, f;
    double X1, Y1, r;
    
    scanf("%d", &n);
    for (i = 0; i < n; i++){
        scanf("%lf %lf %lf %lf %lf %lf",&x1, &y1, &x2, &y2, &x3, &y3);
        a = 2 * (x2 - x1);
        b = 2 * (y2 - y1);
        c = x1*x1 - x2*x2 + y1*y1 - y2*y2;
        d = 2 * (x3 - x1);
        e = 2 * (y3 - y1);
        f = x1*x1 - x3*x3 + y1*y1 - y3*y3;
        
        X1 = (b*f - e*c) / (a*e - d*b);
        Y1 = (c*d - f*a) / (a*d - d*b);
        r  = sqrt((X1-x1)*(X1-x1) + (Y1-y1)*(Y1-y1));
        
        X1 *= 1000;
        Y1 *= 1000;
        r  *= 1000;
        
        px = round(px);
        py = round(py);
        r = round(r);
 
        px = px / 1000;
        py = py / 1000;
        r = r / 1000;
 
        if(fabs(px) < 1e-6)
            px = 0;
        if(fabs(py) < 1e-6)
            py = 0;
        if(fabs(r) < 1e-6)
            r = 0;

        
        printf("%.3f %.3f %.3f\n", X1, Y1, r);
        
        
    }
    
    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:29:9: error: 'px' undeclared (first use in this function)
   29 |         px = round(px);
      |         ^~
main.c:29:9: note: each undeclared identifier is reported only once for each function it appears in
main.c:30:9: error: 'py' undeclared (first use in this function)
   30 |         py = round(py);
      |         ^~
Language: C

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

int main()
{
  int n;
  int i;
  double x1, x2, x3, y1, y2, y3, px, py, r;

  scanf("%d", &n);

  for(i = 0; i < n; i++){
    scanf("%f %f %f %f %f %f", &x1, &y1, &x2, &y2, &x3, &y3);

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

    r = sqrt((px - x1) * (px - x1) + (py - y1) * (py - y1))

    printf("%lf %lf %lf", px, py, r);
  }
}

Compiler output:
main.c: In function 'main':
main.c:18:60: error: expected ';' before 'printf'
   18 |     r = sqrt((px - x1) * (px - x1) + (py - y1) * (py - y1))
      |                                                            ^
      |                                                            ;
   19 | 
   20 |     printf("%lf %lf %lf", px, py, r);
      |     ~~~~~~
Language: C

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

int main()
{
  int n;
  int i;
  double x1, x2, x3, y1, y2, y3, px, py, r;

  scanf("%d", &n);

  for(i = 0; i < n; i++){

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

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

    r = sqrt(pow((px - x1), 2), pow((py - y1), 2));

    printf("%.3lf %.3lf %.3lf", px, py, r);
  }
}

Compiler output:
main.c: In function 'main':
main.c:19:9: error: too many arguments to function 'sqrt'
   19 |     r = sqrt(pow((px - x1), 2), pow((py - y1), 2));
      |         ^~~~
In file included from /usr/include/features.h:523,
                 from /usr/include/x86_64-linux-gnu/bits/libc-header-start.h:33,
                 from /usr/include/stdio.h:28,
                 from main.c:1:
/usr/include/x86_64-linux-gnu/bits/mathcalls.h:176:1: note: declared here
  176 | __MATHCALL (sqrt,, (_Mdouble_ __x));
      | ^~~~~~~~~~