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

#include<iostream>
#include<complex>
#define eps 10e-9
using namespace std;
typedef complex<double> p;

double cross(p x,p y)
{
	return x.real()*y.imag()-x.imag()*y.real();
}

int main()
{
	p a,b,c,d;
	while (scanf("%lf,%lf,%lf,%lf,%lf,%lf,%lf,%lf",&a.real(),&a.imag(),&b.real(),&b.imag(),&c.real(),&c.imag(),&d.real(),&d.imag())!=EOF) 
	{
		double tmp=1;
		tmp*=cross(b-a,d-a);
		bool flag=true;
		if(tmp*cross(c-b,a-b)<-eps||tmp*cross(d-c,b-c)<-eps||tmp*cross(a-d,c-d)<-eps) flag=false;
		cout<<(flag?"YES":"NO")<<endl;
	}
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:15:63: error: lvalue required as unary '&' operand
   15 |         while (scanf("%lf,%lf,%lf,%lf,%lf,%lf,%lf,%lf",&a.real(),&a.imag(),&b.real(),&b.imag(),&c.real(),&c.imag(),&d.real(),&d.imag())!=EOF)
      |                                                         ~~~~~~^~
a.cc:15:73: error: lvalue required as unary '&' operand
   15 |         while (scanf("%lf,%lf,%lf,%lf,%lf,%lf,%lf,%lf",&a.real(),&a.imag(),&b.real(),&b.imag(),&c.real(),&c.imag(),&d.real(),&d.imag())!=EOF)
      |                                                                   ~~~~~~^~
a.cc:15:83: error: lvalue required as unary '&' operand
   15 |         while (scanf("%lf,%lf,%lf,%lf,%lf,%lf,%lf,%lf",&a.real(),&a.imag(),&b.real(),&b.imag(),&c.real(),&c.imag(),&d.real(),&d.imag())!=EOF)
      |                                                                             ~~~~~~^~
a.cc:15:93: error: lvalue required as unary '&' operand
   15 |         while (scanf("%lf,%lf,%lf,%lf,%lf,%lf,%lf,%lf",&a.real(),&a.imag(),&b.real(),&b.imag(),&c.real(),&c.imag(),&d.real(),&d.imag())!=EOF)
      |                                                                                       ~~~~~~^~
a.cc:15:103: error: lvalue required as unary '&' operand
   15 |         while (scanf("%lf,%lf,%lf,%lf,%lf,%lf,%lf,%lf",&a.real(),&a.imag(),&b.real(),&b.imag(),&c.real(),&c.imag(),&d.real(),&d.imag())!=EOF)
      |                                                                                                 ~~~~~~^~
a.cc:15:113: error: lvalue required as unary '&' operand
   15 |         while (scanf("%lf,%lf,%lf,%lf,%lf,%lf,%lf,%lf",&a.real(),&a.imag(),&b.real(),&b.imag(),&c.real(),&c.imag(),&d.real(),&d.imag())!=EOF)
      |                                                                                                           ~~~~~~^~
a.cc:15:123: error: lvalue required as unary '&' operand
   15 |         while (scanf("%lf,%lf,%lf,%lf,%lf,%lf,%lf,%lf",&a.real(),&a.imag(),&b.real(),&b.imag(),&c.real(),&c.imag(),&d.real(),&d.imag())!=EOF)
      |                                                                                                                     ~~~~~~^~
a.cc:15:133: error: lvalue required as unary '&' operand
   15 |         while (scanf("%lf,%lf,%lf,%lf,%lf,%lf,%lf,%lf",&a.real(),&a.imag(),&b.real(),&b.imag(),&c.real(),&c.imag(),&d.real(),&d.imag())!=EOF)
      |                                                                                                                               ~~~~~~^~
Language: C++

#include <iostream>
#include <cmath>
#include <vector>
#include <string>
#include <algorithm>
#include <climits>

using namespace std;

double EPS = 1e-12;

//誤差を考慮して足し算を行う
double add(double a, double b) {
	if( abs(a + b) < EPS * (abs(a) + abs(b))) {
		return 0;
	}

	return a + b;
}

//二次元ベクトル構造体
struct P {
	double x, y;

	P() {};
	P(double x, double y) : x(x), y(y) {
	}
	P operator + (P p) {
		return P(add(x, p.x), add(y, p.y));
	}
	P operator - (P p) {
		return P(add(x, -p.x), add(y, -p.y));
	}
	P operator * (double d) {
		return P(x * d, y * d);
	}
	double dot(P p) {	//　内積
		return add(x * p.x, y * p.y);
	}
	double det(P p) {	//　外積
		return add(x * p.y, -y * p.x);
	}
};

//　線分p1-p2上に点qがあるか判定
bool on_seg(P p1, P p2, P q) {
		return (p1 - q).det(p2 - q) == 0 && (p1 - q).dot(p2 - q) <= 0;
}

//　直線p1-p2と直線q1-q2の交点
P intersection(P p1, P p2, P q1, P q2) {
	return p1 + (p2 - p1) * ((q2 - q1).det(q1 - p1) / (q2 - q1).det(p2 - p1));
}

int ccw(P a, P b, P c) {
	a = b - a;
	b = b - c;

	if(a.det(b) < 0) {
		return -1;
	} else if(a.det(b) > 0) {
		return 1;
	}

	return 0;
}


int main() {

	string str;
    while (getline(cin, str)) {
        replace(str.begin(), str.end(), ',', ' ');
        stringstream buf(str);
        P p[4];
        for (int i = 0; i < 4; i++) {
            buf >> p[i].x >> p[i].y;
        }
 
        int cnt = 0, n = 0;
        for (int i = 0; i < 4; i++) {
            int c = ccw(p[i], p[(i+1)%4], p[(i+2)%4]);
            cnt += c;
            n += abs(c);
        }
 
        cout << (abs(cnt) == n ? "YES" : "NO") << endl;
    }
}
}

Compiler output:
a.cc: In function 'int main()':
a.cc:74:29: error: variable 'std::stringstream buf' has initializer but incomplete type
   74 |         stringstream buf(str);
      |                             ^
a.cc: At global scope:
a.cc:90:1: error: expected declaration before '}' token
   90 | }
      | ^
Language: C++

#include <iostream>
#include <cmath>
#include <vector>
#include <string>
#include <algorithm>
#include <climits>
#include <sstream>

using namespace std;

double EPS = 1e-12;

//誤差を考慮して足し算を行う
double add(double a, double b) {
	if( abs(a + b) < EPS * (abs(a) + abs(b))) {
		return 0;
	}

	return a + b;
}

//二次元ベクトル構造体
struct P {
	double x, y;

	P() {};
	P(double x, double y) : x(x), y(y) {
	}
	P operator + (P p) {
		return P(add(x, p.x), add(y, p.y));
	}
	P operator - (P p) {
		return P(add(x, -p.x), add(y, -p.y));
	}
	P operator * (double d) {
		return P(x * d, y * d);
	}
	double dot(P p) {	//　内積
		return add(x * p.x, y * p.y);
	}
	double det(P p) {	//　外積
		return add(x * p.y, -y * p.x);
	}
};

//　線分p1-p2上に点qがあるか判定
bool on_seg(P p1, P p2, P q) {
		return (p1 - q).det(p2 - q) == 0 && (p1 - q).dot(p2 - q) <= 0;
}

//　直線p1-p2と直線q1-q2の交点
P intersection(P p1, P p2, P q1, P q2) {
	return p1 + (p2 - p1) * ((q2 - q1).det(q1 - p1) / (q2 - q1).det(p2 - p1));
}

int ccw(P a, P b, P c) {
	a = b - a;
	b = b - c;

	if(a.det(b) < 0) {
		return -1;
	} else if(a.det(b) > 0) {
		return 1;
	}

	return 0;
}


int main() {

	string str;
    while (getline(cin, str)) {
        replace(str.begin(), str.end(), ',', ' ');
        stringstream buf(str);
        P p[4];
        for (int i = 0; i < 4; i++) {
            buf >> p[i].x >> p[i].y;
        }
 
        int cnt = 0, n = 0;
        for (int i = 0; i < 4; i++) {
            int c = ccw(p[i], p[(i+1)%4], p[(i+2)%4]);
            cnt += c;
            n += abs(c);
        }
 
        cout << (abs(cnt) == n ? "YES" : "NO") << endl;
    }
}
}

Compiler output:
a.cc:91:1: error: expected declaration before '}' token
   91 | }
      | ^
Language: C++

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

typedef complex<double> P;

#define x real()
#define y imag()

double isIntersect(P p1, P p2,P p3,P p4 ){
  return (((p1.x - p2.x)*(p3.y - p1.y)+(p1.y-p2.y)*(p1.x-p3.x))*((p1.x - p2.x)*(p4.y - p1.y)+(p1.y-p2.y)*(p1.x-p4.x)));
}

int main(){
  double xa,ya,xb,yb,xc,yc,xd,yd;

Compiler output:
a.cc: In function 'int main()':
a.cc:16:34: error: expected '}' at end of input
   16 |   double xa,ya,xb,yb,xc,yc,xd,yd;
      |                                  ^
a.cc:15:11: note: to match this '{'
   15 | int main(){
      |           ^
Language: C++

#include <iostream>
using namespace std;

int main(){
	char trash;
	double x[4], y[4];
	while(cin >> x[0] >> trash >> y[0]){
		double p, q, r;
		for(int i = 1; i < 4; i++){
			cin >> trash >> x[i] >> trash >> y[i];
		}
		p = ((y[1]-y[0])*(x[3]-x[0])/(x[1]-x[0]))+y[0];
		q = ((y[2]-y[1])*(x[3]-x[1])/(x[2]-x[1]))+y[1];
		r = ((y[2]-y[0])*(x[3]-x[0])/(x[2]-x[0]))+y[0];
		if(x[0] == x[2]){
			if(x[0] > x[1]){
				if(x[0] > x[3]){
					cout << "NO" << endl;
				}
				else{
					if((p < y[3] && q > y[3]) || (p > y[3] && q < y[3])){
						cout << "YES" << endl;
					}
					else{
						cout << "NO" << endl;
					}
				}
			}
			else{
				if(x[0] < x[3]){
					cout << "NO" << endl;
				}
				else{
					if((p < y[3] && q > y[3]) || (p > y[3] && q < y[3])){
						cout << "YES" << endl;
					}
					else{
						cout << "NO" << endl;
					}
				}
			}
		}
		else if(x[0] == x[1]){
			if(x[0] > x[2]){
				if(x[0] < x[2]){
					cout << "NO" << endl;
				}
				else{
					if(q > y[3]){
						cout << "YES" << endl;
					}
					else{
						cout << "NO" << endl;
					}
				}
			}
			else{
				if(x[0] > x[2]){
					cout << "NO" << endl;
				}
				else{
					if(q > y[3]){
						cout << "YES" << endl;
					}
					else{
						cout << "NO" << endl;
					}
				}
			}
		}
		else if(x[1] == x[2]){
			if(x[0] > x[1]){
				if(x[1] > x[3]){
					cout << "NO" << endl;
				}
				else{
					if(p < y[3]){
						cout << "YES" << endl;
					}
					else{
						cout << "NO" << endl;
					}
				}
			}
			else{
				if(x[1] < x[3]){
					cout << "NO" << endl;
				}
				else{
					if(p < y[3]){
						cout << "YES" << endl;
					}
					else{
						cout << "NO" << endl;
					}
				}
			}
		}
		else{
			if(r > y[1]){
				if(r > y[3]){
					cout << "NO" << endl;
				}
				else{
					if((p < y[3] && q > y[3]) || (p > y[3] && q < y[3])){
						cout << "YES" << endl;
					}
					else{
						cout << "NO" << endl;
					}
				}
			}
			else{
				if(r < y[3]){
					cout << "NO" << endl;
				}
				else{
					if((p < y[3] && q > y[3]) || (p > y[3] && q < y[3])){
						cout << "YES" << endl;
					}
					else{
						cout << "NO" << endl;
					}
				}	
			}
		}

Compiler output:
a.cc: In function 'int main()':
a.cc:126:18: error: expected '}' at end of input
  126 |                 }
      |                  ^
a.cc:7:44: note: to match this '{'
    7 |         while(cin >> x[0] >> trash >> y[0]){
      |                                            ^
a.cc:126:18: error: expected '}' at end of input
  126 |                 }
      |                  ^
a.cc:4:11: note: to match this '{'
    4 | int main(){
      |           ^
Language: C++

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

int main(){
	char trash;
	double x[4], y[4];
	while(cin >> x[0] >> trash >> y[0]){
		double a,b,c,d,e,f,t;
		for(int i = 1; i < 4; i++){
			cin >> trash >> x[i] >> trash >> y[i];
		}
		a = y[2]-y[0];
		b = -x[2]+x[0];
		e = -1*(y[0]*(x[2]-x[0])-x[0]*(y[2]-y[0]));
		c = y[3]-y[1];
		d = -x[3]+x[1];
		f = -1*(y[1]*(x[3]-x[1])-x[1]*(y[3]-y[1]));
		t = (e*d-b*f)/(a*d-b*c);
		if(x[2] < x[0]){
			swap(x[0],x[2]);
		}
		if(x[3] < x[1]){
			swap(x[1],x[3]);
		}
		if((t => x[0] && t <= x[2]) && (t => x[1] && t <= x[3])){
			cout << "YES" << endl;
		}
		else{
			cout << "NO" << endl;
		}
	}
}

Compiler output:
a.cc: In function 'int main()':
a.cc:26:24: error: expected primary-expression before '>' token
   26 |                 if((t => x[0] && t <= x[2]) && (t => x[1] && t <= x[3])){
      |                        ^
a.cc:26:52: error: expected primary-expression before '>' token
   26 |                 if((t => x[0] && t <= x[2]) && (t => x[1] && t <= x[3])){
      |                                                    ^
Language: C++

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

int main(){
	char trash;
	double x[4], y[4];
	while(cin >> x[0] >> trash >> y[0]){
		double a,b,c,d,e,f,t;
		for(int i = 1; i < 4; i++){
			cin >> trash >> x[i] >> trash >> y[i];
		}
		a = y[2]-y[0];
		b = -x[2]+x[0];
		e = -1*(y[0]*(x[2]-x[0])-x[0]*(y[2]-y[0]));
		c = y[3]-y[1];
		d = -x[3]+x[1];
		f = -1*(y[1]*(x[3]-x[1])-x[1]*(y[3]-y[1]));
		t = (e*d-b*f)/(a*d-b*c);
		if(x[2] < x[0]){
			swap(x[0],x[2]);
		}
		if(x[3] < x[1]){
			swap(x[1],x[3]);
		}
		if((t >= x[0] && t <= x[2]) && (t >= x[1] && t <= x[3])){
			cout << "YES" << endl;
		}
		else{
			cout << "NO" << endl;
		}
	}

Compiler output:
a.cc: In function 'int main()':
a.cc:32:10: error: expected '}' at end of input
   32 |         }
      |          ^
a.cc:5:11: note: to match this '{'
    5 | int main(){
      |           ^
Language: Java

import java.util.Scanner;


public class AOJ_Volume0036 {
	private static int[][] a = new int[8][8];
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		while(sc.hasNext()){
			String[] s = new String[8];
			for(int i=0;i<8;i++){
				s[i] = sc.nextLine();
				String[] temp = s[i].split("");
				for(int j=0;j<8;j++){
					a[i][j] = Integer.parseInt(temp[j+1]);
				}
			}
			
			boolean flag = true;
			for(int i=0;i<8;i++){
				for(int j=0;j<8;j++){
					if(Check_A(i,j) && flag){
						System.out.println("A");
						flag = false;
					}
					if(Check_B(i,j) && flag){
						System.out.println("B");
						flag = false;
					}
					if(Check_C(i,j) && flag){
						System.out.println("C");
						flag = false;
					}
					if(Check_D(i,j) && flag){
						System.out.println("D");
						flag = false;
					}				
					if(Check_E(i,j) && flag){
						System.out.println("E");
						flag = false;
					}
					if(Check_F(i,j) && flag){
						System.out.println("F");
						flag = false;
					}
					if(Check_G(i,j) && flag){
						System.out.println("G");
						flag = false;
					}
				}
			}
		}
	}
	
	private static boolean ch(int i,int j){
		if(a[i][j] == 1) return true;
		return false;
	}
	
	private static boolean Check_A(int i,int j){
		if(i+1 < 8 && j+1 < 8){
			if(ch(i,j) && ch(i+1,j) && ch(i,j+1) && ch(i+1,j+1))  return true;
		}
		return false;
	}
	
	private static boolean Check_B(int i,int j){
		if(i+1 < 8 && i+2 < 8 && i+3 < 8){
			if(ch(i,j) && ch(i+1,j) && ch(i+2,j) && ch(i+3,j)) return true;
		}
		return false;
	}
	
	private static boolean Check_C(int i,int j){
		if(j+1 < 8 && j+2 < 8 && j+3 < 8){
			if(ch(i,j) && ch(i,j+1) && ch(i,j+2) && ch(i,j+3)) return true;
		}
		return false;
	}
	
	private static boolean Check_D(int i,int j){
		if(j-1 >= 0 && i+1 < 8 && i+2 < 8){
			if(ch(i,j) && ch(i+1,j) && ch(i+1,j-1) && ch(i+2,j-1)) return true;
		}
		return false;
	}
	
	private static boolean Check_E(int i,int j){
		if(i+1 < 8 && j+1 < 8 && j+2 < 8){
			if(ch(i,j) && ch(i,j+1) && ch(i+1,j+1) && ch(i+1,j+2)) return true;
		}
		return false;
	}
	
	private static boolean Check_F(int i,int j){
		if(i+1 < 8 && i+2 < 8 && j+1 < 8){
			if(ch(i,j) && ch(i+1,j) && ch(i+1,j+1)&& ch(i+2,j+1)) return true;
		}
		return false;
	}
	
	private static boolean Check_G(int i,int j){
		if(i+1 < 8 && j+1 < 8 && j-1 >= 0){
			if(ch(i,j) && ch(i+1,j) && ch(i,j+1) && ch(i+1,j-1)) return true;
		}
		return false;
	}
}

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

import java.util.Scanner;
public class Main2 {
    public static void main(String[] args){
        Scanner sc=new Scanner(System.in);
        while(sc.hasNext()){
            int[] a=new int[8];
            for(int i=0;i<8;i++){
            	a[i]=Integer.parseInt(sc.next(),2);
            }
            for(int i=0;i<8;i++){
                if(a[i]>0){
                    if(i==7){System.out.println("C");break;}
                    else if(a[i+1]==0){System.out.println("C"); break;}
                    else{
                    	if(a[i]==a[i+1]){
                            if(i+2==8){System.out.println("A");break;}
                            else{
                                if(a[i]==a[i+2]){System.out.println("B"); break; }
                                else{System.out.println("A");break;}
                            }
                        }else if(a[i+1]==a[i]+a[i]*2){System.out.println("D"); break;
                        }else if(a[i]==a[i+1]*2){System.out.println("E"); break;
                        }else if(a[i+1]==a[i]+a[i]/2){System.out.println("F"); break;
                        }else{System.out.println("G"); break; }
                    }
                }
            }
        }
    }
}

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

import java.io.*;

class Main{
public static void main(String[] args) throws IOException{
BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
String line;
char[][] map=new char[8][8];
int[] ax={1,0,1};
int[] ay={0,1,1};
int[] bx={1,2,3};
int[] by={0,0,0};
int[] cx={0,0,0};
int[] cy={1,2,3};
int[] dx={1,1,2};
int[] dy={0,-1,-1};
int[] ex={0,1,1};
int[] ey={1,1,2};
int[] fx={1,1,2};
int[] fy={0,1,1};
int[] gx={0,1,1};
int[] gy={1,0,-1};
while((line=br.readLine()!=null){
if(line.isEmpty()){
line=br.readLine();
}
boolean flag=false;
boolean f=false;
for(int j=0;j<8;i++){
map[0][j]=line.charAt(j);
if(!flag){
if(map[i][j]=='1'){
final int tx=i;
final int ty=j;
flag=true;
}
}
for(int i=1;i<8;i++){
line=br.readLine();
for(int j=0;j<8;i++){
map[i][j]=line.charAt(j);
if(!flag){
if(map[i][j]=='1'){
final int tx=i;
final int ty=j;
flag=true;
}
}
}
}
for(int i=0;i<3;i++){
if(map[tx+ax[i]][ty+ay[i]]!='1'){
break;
}
else if(i==2){
System.out.println("A")
f=true;
}
}
if(!f){
for(int i=0;i<3;i++){
if(map[tx+bx[i]][ty+by[i]]!='1'){
break;
}
else if(i==2){
System.out.println("B")
f=true;
}
}
}
if(!f){
for(int i=0;i<3;i++){
if(map[tx+cx[i]][ty+cy[i]]!='1'){
break;
}
else if(i==2){
System.out.println("C")
f=true;
}
}
}
if(!f){
for(int i=0;i<3;i++){
if(map[tx+dx[i]][ty+dy[i]]!='1'){
break;
}
else if(i==2){
System.out.println("D")
f=true;
}
}
}
if(!f){
for(int i=0;i<3;i++){
if(map[tx+ex[i]][ty+ey[i]]!='1'){
break;
}
else if(i==2){
System.out.println("E")
f=true;
}
}
}
if(!f){
for(int i=0;i<3;i++){
if(map[tx+fx[i]][ty+fy[i]]!='1'){
break;
}
else if(i==2){
System.out.println("F")
f=true;
}
}
}
if(!f){
for(int i=0;i<3;i++){
if(map[tx+gx[i]][ty+gy[i]]!='1'){
break;
}
else if(i==2){
System.out.println("G")
f=true;
}
}
}
}
}
}

Compiler output:
Main.java:22: error: ')' expected
while((line=br.readLine()!=null){
                                ^
Main.java:55: error: ';' expected
System.out.println("A")
                       ^
Main.java:65: error: ';' expected
System.out.println("B")
                       ^
Main.java:76: error: ';' expected
System.out.println("C")
                       ^
Main.java:87: error: ';' expected
System.out.println("D")
                       ^
Main.java:98: error: ';' expected
System.out.println("E")
                       ^
Main.java:109: error: ';' expected
System.out.println("F")
                       ^
Main.java:120: error: ';' expected
System.out.println("G")
                       ^
Main.java:127: error: reached end of file while parsing
}
 ^
9 errors
Language: Java

import java.io.*;

class Main{
public static void main(String[] args) throws IOException{
BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
String line;
char[][] map=new char[8][8];
int[] ax={1,0,1};
int[] ay={0,1,1};
int[] bx={1,2,3};
int[] by={0,0,0};
int[] cx={0,0,0};
int[] cy={1,2,3};
int[] dx={1,1,2};
int[] dy={0,-1,-1};
int[] ex={0,1,1};
int[] ey={1,1,2};
int[] fx={1,1,2};
int[] fy={0,1,1};
int[] gx={0,1,1};
int[] gy={1,0,-1};
while((line=br.readLine())!=null){
if(line.isEmpty()){
line=br.readLine();
}
boolean flag=false;
boolean f=false;
for(int j=0;j<8;i++){
map[0][j]=line.charAt(j);
if(!flag){
if(map[i][j]=='1'){
final int tx=i;
final int ty=j;
flag=true;
}
}
for(int i=1;i<8;i++){
line=br.readLine();
for(int j=0;j<8;i++){
map[i][j]=line.charAt(j);
if(!flag){
if(map[i][j]=='1'){
final int tx=i;
final int ty=j;
flag=true;
}
}
}
}
for(int i=0;i<3;i++){
if(map[tx+ax[i]][ty+ay[i]]!='1'){
break;
}
else if(i==2){
System.out.println("A");
f=true;
}
}
if(!f){
for(int i=0;i<3;i++){
if(map[tx+bx[i]][ty+by[i]]!='1'){
break;
}
else if(i==2){
System.out.println("B");
f=true;
}
}
}
if(!f){
for(int i=0;i<3;i++){
if(map[tx+cx[i]][ty+cy[i]]!='1'){
break;
}
else if(i==2){
System.out.println("C");
f=true;
}
}
}
if(!f){
for(int i=0;i<3;i++){
if(map[tx+dx[i]][ty+dy[i]]!='1'){
break;
}
else if(i==2){
System.out.println("D");
f=true;
}
}
}
if(!f){
for(int i=0;i<3;i++){
if(map[tx+ex[i]][ty+ey[i]]!='1'){
break;
}
else if(i==2){
System.out.println("E");
f=true;
}
}
}
if(!f){
for(int i=0;i<3;i++){
if(map[tx+fx[i]][ty+fy[i]]!='1'){
break;
}
else if(i==2){
System.out.println("F");
f=true;
}
}
}
if(!f){
for(int i=0;i<3;i++){
if(map[tx+gx[i]][ty+gy[i]]!='1'){
break;
}
else if(i==2){
System.out.println("G");
f=true;
}
}
}
}
}
}

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

import java.io.*;

class Main{
public static void main(String[] args) throws IOException{
BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
String line;
char[][] map=new char[8][8];
int[] ax={1,0,1};
int[] ay={0,1,1};
int[] bx={1,2,3};
int[] by={0,0,0};
int[] cx={0,0,0};
int[] cy={1,2,3};
int[] dx={1,1,2};
int[] dy={0,-1,-1};
int[] ex={0,1,1};
int[] ey={1,1,2};
int[] fx={1,1,2};
int[] fy={0,1,1};
int[] gx={0,1,1};
int[] gy={1,0,-1};
while((line=br.readLine())!=null){
if(line.isEmpty()){
line=br.readLine();
}
boolean flag=false;
boolean f=false;
for(int j=0;j<8;i++){
map[0][j]=line.charAt(j);
if(!flag){
if(map[i][j]=='1'){
final int tx=i;
final int ty=j;
flag=true;
}
}
for(int i=1;i<8;i++){
line=br.readLine();
for(int j=0;j<8;i++){
map[i][j]=line.charAt(j);
if(!flag){
if(map[i][j]=='1'){
final int tx=i;
final int ty=j;
flag=true;
}
}
}
}
for(int i=0;i<3;i++){
if(map[tx+ax[i]][ty+ay[i]]!='1'){
break outer;
}
else if(i==2){
System.out.println("A");
f=true;
}
}
if(!f){
for(int i=0;i<3;i++){
if(map[tx+bx[i]][ty+by[i]]!='1'){
break outer;
}
else if(i==2){
System.out.println("B");
f=true;
}
}
}
if(!f){
for(int i=0;i<3;i++){
if(map[tx+cx[i]][ty+cy[i]]!='1'){
break outer;
}
else if(i==2){
System.out.println("C");
f=true;
}
}
}
if(!f){
for(int i=0;i<3;i++){
if(map[tx+dx[i]][ty+dy[i]]!='1'){
break outer;
}
else if(i==2){
System.out.println("D");
f=true;
}
}
}
if(!f){
for(int i=0;i<3;i++){
if(map[tx+ex[i]][ty+ey[i]]!='1'){
break outer;
}
else if(i==2){
System.out.println("E");
f=true;
}
}
}
if(!f){
for(int i=0;i<3;i++){
if(map[tx+fx[i]][ty+fy[i]]!='1'){
break outer;
}
else if(i==2){
System.out.println("F");
f=true;
}
}
}
if(!f){
for(int i=0;i<3;i++){
if(map[tx+gx[i]][ty+gy[i]]!='1'){
break outer;
}
else if(i==2){
System.out.println("G");
f=true;
}
}
}
}
}
}

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

import java.io.*;

class Main{
public static void main(String[] args) throws IOException{
BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
String line;
char[][] map=new char[8][8];
int[] ax={1,0,1};
int[] ay={0,1,1};
int[] bx={1,2,3};
int[] by={0,0,0};
int[] cx={0,0,0};
int[] cy={1,2,3};
int[] dx={1,1,2};
int[] dy={0,-1,-1};
int[] ex={0,1,1};
int[] ey={1,1,2};
int[] fx={1,1,2};
int[] fy={0,1,1};
int[] gx={0,1,1};
int[] gy={1,0,-1};
while((line=br.readLine())!=null){
if(line.isEmpty()){
line=br.readLine();
}
boolean flag=false;
boolean f=false;
for(int j=0;j<8;i++){
map[0][j]=line.charAt(j);
if(!flag){
if(map[i][j]=='1'){
final int tx=i;
final int ty=j;
flag=true;
}
}
for(int i=1;i<8;i++){
line=br.readLine();
for(int j=0;j<8;i++){
map[i][j]=line.charAt(j);
if(!flag){
if(map[i][j]=='1'){
final int tx=i;
final int ty=j;
flag=true;
}
}
}
}
for(int i=0;i<3;i++){
if(map[tx+ax[i]][ty+ay[i]]!='1'){
break outer;
}
else if(i==2){
System.out.println("A");
f=true;
}
}
if(!f){
for(int i=0;i<3;i++){
if(map[tx+bx[i]][ty+by[i]]!='1'){
break outer;
}
else if(i==2){
System.out.println("B");
f=true;
}
}
}
if(!f){
for(int i=0;i<3;i++){
if(map[tx+cx[i]][ty+cy[i]]!='1'){
break outer;
}
else if(i==2){
System.out.println("C");
f=true;
}
}
}
if(!f){
for(int i=0;i<3;i++){
if(map[tx+dx[i]][ty+dy[i]]!='1'){
break outer;
}
else if(i==2){
System.out.println("D");
f=true;
}
}
}
if(!f){
for(int i=0;i<3;i++){
if(map[tx+ex[i]][ty+ey[i]]!='1'){
break outer;
}
else if(i==2){
System.out.println("E");
f=true;
}
}
}
if(!f){
for(int i=0;i<3;i++){
if(map[tx+fx[i]][ty+fy[i]]!='1'){
break outer;
}
else if(i==2){
System.out.println("F");
f=true;
}
}
}
if(!f){
for(int i=0;i<3;i++){
if(map[tx+gx[i]][ty+gy[i]]!='1'){
break outer;
}
else if(i==2){
System.out.println("G");
f=true;
}
}
}
}
}

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

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

public class Main{ 
    
    public static void main(String[] args)throws IOException{
	try{
	    InputStreamReader isr = new InputStreamReader(System.in);
	    BufferedReader br=new BufferedReader(isr);
	    String line;
 	    int[][] f=new int[8][8];
	    do{
		
		
		for(int i=0;i<8;i++){
		    line=br.readLine();
		    if(line.equals(""))
			i--;
		    else{
			for(int j=0;j<8;j++){
			    f[i][j]=Character.getNumericValue(line.charAt(j));
			}
		    }
		}
		hantei(f);
	    }while((line=br.readLine())!=null);
	}catch(java.lang.NumberFormatException e)
	    {
	    }
	catch(java.lang.StringIndexOutOfBoundsException e){
	}
    }

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

import java.util.*;

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

	public static void main(String[] args){

		while(scan.hasNext()){
			int[][] mas = new int[8][8];
			for(int i = 0; i < 8; i++){
				for(int j = 0; j < 8; j++){
					mas[i][j] = scan.nextInt();
				}
			}
			String type = "";
			for(int i = 0; i < 8; i++){
				for(int j = 0; j < 8; j++){
					if(mas[i][j] == 1){
						if(i+1 < 8 && j+1 < 8){
							if(mas[i][j+1] == 1 && mas[i+1][j] == 1
								&& mas[i+1][j+1] == 1){
								type = "A";
								break;
							}
						}
						if(i+1 < 8 && i+2 < 8 && i+3 < 8){
							if(mas[i+1][j] == 1 && mas[i+2][j] == 1
								&& mas[i+3][j] == 1){
								type = "B";
								break;
							}
						}
						if(j+1 < 8 && j+2 < 8 && j+3 < 8){
							if(mas[i][j+1] == 1 && mas[i][j+2] == 1
								&& mas[i][j+3] == 1){
								type = "C";
								break;
							}
						}
						if(i+1 < 8 && j-1 >= 0 && i+2 < 8){
							if(mas[i+1][j-1] == 1 && mas[i+1][j] == 1
								&& mas[i+2][j-1] == 1){
								type = "D";
								break;
							}
						}
						if(j+1 < 8 && i+1 < 8 && j+2 < 8){
							if(mas[i][j+1] == 1 && mas[i+1][j+1] == 1
								&& mas[i+1][j+2] == 1){
								type = "E";
								break;
							}
						}
						if(i+1 < 8 && j+1 < 8 && i+2 < 8){
							if(mas[i+1][j] == 1 && mas[i+1][j+1] == 1
								&& mas[i+2][[j+1] == 1){
								type = "F";
								break;
							}
						}
						if(j+1 < 8 && j-1 >= 0){
							if(mas[i][j+1] == 1 && mas[i+1][j-1] == 1
								&& mas[i+1][j] == 1){
								type = "G";
								break;
							}
						}
					}
				}
			}
			System.out.printf("%s\n", type);
		}
	}
}

Compiler output:
Main.java:56: error: illegal start of expression
								&& mas[i+2][[j+1] == 1){
								            ^
1 error
Language: Java

import java.util.*;

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

	public static void main(String[] args){

		while(scan.hasNext()){
			int[][] mas = new int[8][8];
			for(int i = 0; i < 8; i++){
				for(int j = 0; j < 8; j++){
					mas[i][j] = scan.nextInt();
				}
			}
			String type = "";
			for(int i = 0; i < 8; i++){
				for(int j = 0; j < 8; j++){
					if(mas[i][j] == 1){
						if(i+1 < 8 && j+1 < 8){
							if(mas[i][j+1] == 1 && mas[i+1][j] == 1	&& mas[i+1][j+1] == 1){
								type = "A";
								break;
							}
						}
						if(i+1 < 8 && i+2 < 8 && i+3 < 8){
							if(mas[i+1][j] == 1 && mas[i+2][j] == 1	&& mas[i+3][j] == 1){
								type = "B";
								break;
							}
						}
						if(j+1 < 8 && j+2 < 8 && j+3 < 8){
							if(mas[i][j+1] == 1 && mas[i][j+2] == 1	&& mas[i][j+3] == 1){
								type = "C";
								break;
							}
						}
						if(i+1 < 8 && j-1 >= 0 && i+2 < 8){
							if(mas[i+1][j-1] == 1 && mas[i+1][j] == 1 && mas[i+2][j-1] == 1){
								type = "D";
								break;
							}
						}
						if(j+1 < 8 && i+1 < 8 && j+2 < 8){
							if(mas[i][j+1] == 1 && mas[i+1][j+1] == 1 && mas[i+1][j+2] == 1){
								type = "E";
								break;
							}
						}
						if(i+1 < 8 && j+1 < 8 && i+2 < 8){
							if(mas[i+1][j] == 1 && mas[i+1][j+1] == 1 && mas[i+2][[j+1] == 1){
								type = "F";
								break;
							}
						}
						if(j+1 < 8 && j-1 >= 0){
							if(mas[i][j+1] == 1 && mas[i+1][j-1] == 1 && mas[i+1][j] == 1){
								type = "G";
								break;
							}
						}
					}
				}
			}
			System.out.printf("%s\n", type);
		}
	}
}

Compiler output:
Main.java:50: error: illegal start of expression
							if(mas[i+1][j] == 1 && mas[i+1][j+1] == 1 && mas[i+2][[j+1] == 1){
							                                                      ^
1 error
Language: Java

import java.util.*;

public class Main{
	private static final Scanner scan = new Scanner(System.in);
	static String A = "1100000011";
	static String B = "10000000100000001";
	static String C = "1111";
	static String D = "1000000110000001";
	static String E = "11000000011";
	static String F = "100000001100000001";
	static String G = "110000011";
	static String[] blocks = {A, B, C, D, E, F, G};
	static String[] dic = {"A", "B", "C", "D", "E", "F", "G"};

	public static void main(String[] args){

		while(scan.hasNext()){
			StringBuffer sb = new StringBuffer();
			for(int i = 0; i < 8; i++){
				sb.append(scan.next());
			}
			System.out.printf("%s\n", dic[solve(sb.toString())]);
		}
	}

	public static int solve(String str){
		Loop;for(int i = 0; i < 8 * 8; i++){
			for(int j = 0; j < 7; j++){
				if(8 * 8 < i + blocks[j].length()){
					break Loop;
				}
				String s = str.substring(i, i + blocks[j].length());
				if(s.equals(blocks[j])){
					return j;
				}
			}
		}
		return -1;
	}
}

Compiler output:
Main.java:27: error: not a statement
		Loop;for(int i = 0; i < 8 * 8; i++){
		^
1 error
Language: Java

import java.util.Scanner;

public class Main {
	private Scanner sc;
	
	public static void main(String[] args) {
		new Main_format();
	}
	
	public Main() {
		sc = new Scanner(System.in);
		
		while (sc.hasNext() == true) {
			int[][] map = new int[8][8];

			for (int i = 0; i < 8; i++) {
				String line = sc.nextLine();
				
				for (int j = 0; j < 8; j++) {
					map[i][j] = line.charAt(j) - '0';
				}
			}
			
			int state = 0;
			int max = 8;
			int k = 0;
			
			boolean end = false;
			for (int i = 0; i < max; i++) {
				for (int j = k; j < 8; j++) {
					if (map[i][j] == 1) {
						switch (state) {
						case 0:
							state = 1;
							max = i + 4;
							k = j - 1;
							break;
							
						case 1:
							state = 2;
							break;

						case 2:
							state = 3;
							break;

						case 3:
							System.out.println("C");
							end = true;
							break;
						
						case 4:
							if (j == k) {
								System.out.println("D");
								end = true;
							} else {
								state = 6;
							}
							break;
							
						case 5:
							if (j == k) {
								System.out.println("G");
								end = true;
							} else if (j == (k + 1)) {
								System.out.println("A");
								end = true;
							} else {
								System.out.println("E");
								end = true;
							}
								
						case 6:
							System.out.println("F");
							end = true;
							break;
						}
						
					}
					if (end == true) break;
				}
				
				if ((state == 1) || (state == 2)) {
					state = state + 3;
				} if (state == 6) {
					System.out.println("B");
					end = true;
				}
				if (end == true) break;
 			}
		}
	}
}

Compiler output:
Main.java:7: error: cannot find symbol
		new Main_format();
		    ^
  symbol:   class Main_format
  location: class Main
1 error
Language: Java

import java.util.Scanner;

public class Main {

	static Scanner sc = new java.util.Scanner(System.in);

	// static int[][] num =new int [8][8];

	public static void main(String[] args) {

		int[][] num = new int[15][15];
		String str = "";

		while (sc.hasNextLine()) {
			// num[][]????????????
			syokika(num);
			// ???????????¨????????????????´?
			for (int i = 0; i < 8; i++) {
				str = sc.next();
				String[] st = str.split("");
				for (int j = 0; j < 8; j++) {
					num[i][j] = Integer.parseInt(st[j]);
				}
			}
			// ????????????
			for (int i = 0; i < 8; i++) {
				for (int j = 0; j < 8; j++) {
					if(num[i][j]==1&&num[i][j+1]==1&&num[i+1][j]==1&&num[i+1][j+1]==1){
						System.out.println("A");
					}else if(num[i][j]==1&&num[i+1][j]==1&&num[i+2][j]==1&&num[i+3][j]==1){
						System.out.println("B");
					}else if(num[i][j]==1&&num[i][j+1]==1&&num[i][j+2]==1&&num[i][j+3]==1){
						System.out.println("C");
					}else if(num[i][j+1]==1&&num[i+1][j]==1&&num[i][j+1]==1&&num[i+2][j]==1){
						System.out.println("D");
					}else if(num[i][j]==1&&num[i][j+1]==1&&num[i+1][j+1]==1&&num[i+1][j+2]==1){
						System.out.println("E");
					}else if(num[i][j]==1&&num[i+1][j]==1&&num[i+1][j+1]==1&&num[i+2][j+1]==1){
						System.out.println("F");
					}else if(num[i][j+1]==1&&num[i][j+2]==1&&num[i+1][j]==1&&num[i+1][j+1]==1){
						System.out.println("B");
					}

				}
			}

		}

	}

	// ???????????¢??°
	public static int[][] syokika(int[][] num) {

		for (int i = 0; i < 8; i++) {
			for (int j = 0; j < 8; j++) {
				num[i][j] = 0;
			}
		}
		return num;
	}

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

import java.util.Scanner;

public class Maih {

	static int[][] a;
	public static void main(String[] args) {
		Scanner cin = new Scanner(System.in);
		while(cin.hasNext()){
			a = new int[30][30];
			int x=0, y=0;
			boolean flag = false;
			for(int i = 5; i < 5+8;i++){
				String str = cin.next();
				for(int j = 5; j < 5+8;j++){
					a[i][j]=str.charAt(j-5)-'0';
					if(a[i][j]==1&&!flag){
						flag=true;
						x=i;y=j;
					}
				}
			}
			// A
			if(a[x][y]+a[x][y+1]+a[x+1][y]+a[x+1][y+1]==4){
				System.out.println("A");
				continue;
			}
			
			//B
			if(a[x][y]+a[x+1][y]+a[x+2][y]+a[x+3][y]==4){
				System.out.println("B");
				continue;
			}
			
			//C
			if(a[x][y]+a[x][y+1]+a[x][y+2]+a[x][y+3]==4){
				System.out.println("C");
				continue;
			}
			
			//D
			if(a[x][y]+a[x+1][y]+a[x+1][y-1]+a[x+2][y-1]==4){
				System.out.println("D");
				continue;
			}
			
			//E
			if(a[x][y]+a[x][y+1]+a[x+1][y+1]+a[x+1][y+2]==4){
				System.out.println("E");
				continue;
			}
			
			//G
			if(a[x][y]+a[x][y+1]+a[x+1][y-1]+a[x+1][y]==4){
				System.out.println("G");
				continue;
			}
		}
	}

}

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

import java.io.*

public class Main {

	public static String solve (String[] str) {
		int baseX = 0, baseY = 0;
		main : for (int i = 0; i < str.length; i++) {
			for (int j = 0; j < str[i].length(); j++) {
				if (str[i].charAt(j) == '1') {
					baseX = j;
					baseY = i;
					break main;
				}
			}
		}

		if (str[baseY].charAt(baseX + 1) == '1') {

			if (str[baseY + 1].charAt(baseX) == '1')
				return str[baseY + 1].charAt(baseX + 1) == '1' ? "A" : "G";
			else
				return str[baseY + 1].charAt(baseX + 1) == '1' ? "E" : "C";

		} else {

			if (str[baseY + 2].charAt(baseX) == '1')
				return "B";
			else
				return str[baseY + 1].charAt(baseX + 1) == '1' ? "F" : "D";

		}

	}

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

		BufferedReader br =
				new BufferedReader(new InputStreamReader(System.in));
		String line = "";
		while ((line = br.readLine()) != null) {
			String[] str = new String[10];
			str[0] = line + "00";
			for (int i = 1; i < str.length - 2; i++)
				str[i] = br.readLine() + "00";
			System.out.println(solve(str));
		}

	}

}

Compiler output:
Main.java:1: error: ';' expected
import java.io.*
                ^
1 error
Language: C

#include<stdio.h>

int main(void){
    int i, j, f, map[8][8];

    while(1){
        f=0;
        for(i = 0; i < 8; i++){
            for(j = 0; j < 8; j++){
                if(scanf("%1d", &map[i][j])==EOF){
                    f=1;
                    break;ac
                }
            }
        }
        if(f == 1) break;

        for (i = 0; i < 8; i++){
            for(j = 0; j < 8; j++){
                if(map[i][j] == 1){
                    if(map[i+3][j] == 1) printf("B\n");
                    else if(map[i+2][j-1] == 1) printf("D\n");
                    else if(map[i+2][j+1] == 1) printf("F\n");
                    else if(map[i][j+1] == 1){
                        if(map[i+1][j-1] == 1) printf("G\n");
                        else if(map[i+1][j] == 1 && map[i+1][j+1] == 1) printf("A\n");
                        else if(map[i+1][j+2] == 1) printf("E\n");
                    }else if(map[i][j+3] == 1) printf("C\n");
                    else break;
                }
            }
        }
    }
    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:12:27: error: 'ac' undeclared (first use in this function)
   12 |                     break;ac
      |                           ^~
main.c:12:27: note: each undeclared identifier is reported only once for each function it appears in
main.c:12:29: error: expected ';' before '}' token
   12 |                     break;ac
      |                             ^
      |                             ;
   13 |                 }
      |                 ~
Language: C

#include<stdio.h>
int main(void){
	int a[8][8];
	char v[8][8];
	int i,j;
	while(1){
	for(i = 0;i < 8;i++){
		for(j = 0;j < 8;j++){
			if(scanf("%c",&v[i][j]) == EOF){
				return 0;
			}
			a[i][j] = v[i][j] - 48;
		}
		getchar()();
	}
	for(i = 0;i < 8;i++){
		for(j = 0;j < 8;j++){
			if(a[i][j] == 1){
				if(a[i][j+1] == 1 && a[i+1][j] == 1 && a[i+1][j+1] == 1){
					printf("A\n");
					break;break;
				}
				else if(a[i+1][j] == 1 && a[i+2][j] == 1 && a[i+3][j] == 1){
					printf("B\n");
					break;break;
				}
				else if(a[i][j+1] == 1 && a[i][j+2] == 1 && a[i][j+3] == 1){
					printf("C\n");
					break;break;
				}
				else if(a[i+1][j] == 1 && a[i+1][j-1] == 1 && a[i+2][j-1] == 1){
					printf("D\n");
					break;break;
				}
				else if(a[i][j+1] == 1 && a[i+1][j+1] == 1 && a[i+1][j+2] == 1){
					printf("E\n");
					break;break;
				}
				else if(a[i+1][j] == 1 && a[i+1][j+1] == 1 && a[i+2][j+1] == 1){
					printf("F\n");
					break;break;
				}
				else{
					printf("G\n");
					break;break;
				}
			}
		}
	}
	}
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:14:17: error: called object is not a function or function pointer
   14 |                 getchar()();
      |                 ^~~~~~~
Language: C

#include <stdio.h>
#include <string.h>
 
int main(void){
    char b[65];
    char p[7][33] = {
        "1100000011",
        "10000000100000001000000010000001",
        "1111",
        "1000000110000001",
        "11000000011",
        "100000001100000001",
        "110000011",
    };
    char *bi;
 
    int t = 0;
    while(true){
        if(scanf("%s", b) == EOF){ break; }
        for(int i=1; i<8; ++i){
            scanf("%s", b+i*8);
        }
        bi = strchr(b, '1');
        for(int i=0; i<7; ++i){
            if(memcmp(bi, p[i], strlen(p[i])) == 0){
                printf("%c\n", 'A' + i);
                break;
            }
        }
    }
    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:18:11: error: 'true' undeclared (first use in this function)
   18 |     while(true){
      |           ^~~~
main.c:3:1: note: 'true' is defined in header '<stdbool.h>'; this is probably fixable by adding '#include <stdbool.h>'
    2 | #include <string.h>
  +++ |+#include <stdbool.h>
    3 | 
main.c:18:11: note: each undeclared identifier is reported only once for each function it appears in
   18 |     while(true){
      |           ^~~~
Language: C

#include<stdio.h>
main(){
  int i,j;
  char a[8][8];
  while(scanf("%s",a[0])!=EOF){
    for(i=1;i<8;i++){
      scanf("%s",a[i]);
    }
    for(i=0;i<8;i++){
      for(j=0;j<8;j++){
    if(a[i][j]=='1'&&a[i][j+1]=='1'&&a[i+1][j]=='1'&&a[i+1][j+1]=='1'){
      printf("A\n");
      break;
      break;
    }
    else if(a[i][j]=='1'&&a[i+1][j]=='1'&&a[i+2][j]=='1'&&a[i+3][j]=='1'){
      printf("B\n");
      break;
      break;
    }
    else if(a[i][j]=='1'&&a[i][j+1]=='1'&&a[i][j+2]=='1'&&a[i][j+3]=='1'){
      printf("C\n");
      break;
      break;
    }
    else if(a[i][j]=='1'&&a[i+1][j-1]=='1'&&a[i+1][j]=='1'&&a[i+2][j-1]=='1'){
      printf("D\n");
      break;
      break;
    }
    else if(a[i][j]=='1'&&a[i][j+1]=='1'&&a[i+1][j+1]=='1'&&a[i+1][j+2]=='1'){
      printf("E\n");
      break;
      break;
    }
    else if(a[i][j]=='1'&&a[i+1][j]=='1'&&a[i+1][j+1]=='1'&&a[i+2][j+1]=='1'){
      printf("F\n");
      break;
      break;
    }
    else if(a[i][j]=='1'&&a[i][j+1]=='1'&&a[i+1][j]=='1'&&a[i+1][j-1]=='1'){
      printf("G\n");
      break;
      break;
    }
      }
    }
  }
 

Compiler output:
main.c:2:1: error: return type defaults to 'int' [-Wimplicit-int]
    2 | main(){
      | ^~~~
main.c: In function 'main':
main.c:48:3: error: expected declaration or statement at end of input
   48 |   }
      |   ^
Language: C

#include <stdio.h>

int main(void){
    int i, j, k;
    int dot;
    int point[4][2];
    for(k = 0; k < 50; k++){
    for(i = 0; i < 8 i++){
        scanf("%d", &dot");
        for(j = 8; j > 0; j--){
            if(dot ^ (1 < j) == 1){
                point[k][0] = i;
                point[k][1] = j;
                k++;
            }
        }
    }
    if(point[0][1] + 1 == point[1][1] && point[0][1] + 2 == point[2][1]){
        puts("C");
    }else if(point[0][0] + 1 == point[1][0] && point[0][0] + 2 == point[2][0]){
        puts("B");
    }else if(point[0][1] + 1 == point[1][1] && point[1][0] + 1 == point[3][0]){
        if(point[3][1] + 1 == point[2][1])
            puts("E");
        else
            puts("A");
    }else if(point[0][1] + 1 == point[1][1] && point[0][0] + 1 == point[3][0]){
            puts("G");
    }else if(point[1][0] + 1 == point[2][0]){
        if(point[3][1] == point[1][1])
            puts("D");
        else
            puts("F");
    }
    return 0;
}
}
           

Compiler output:
main.c: In function 'main':
main.c:8:21: error: expected ';' before 'i'
    8 |     for(i = 0; i < 8 i++){
      |                     ^~
      |                     ;
main.c:9:25: warning: missing terminating " character
    9 |         scanf("%d", &dot");
      |                         ^
main.c:9:25: error: missing terminating " character
    9 |         scanf("%d", &dot");
      |                         ^~~
main.c:9:25: error: expected ')' before 'for'
    9 |         scanf("%d", &dot");
      |              ~          ^
      |                         )
   10 |         for(j = 8; j > 0; j--){
      |         ~~~              
main.c:16:10: error: expected ';' before '}' token
   16 |         }
      |          ^
      |          ;
   17 |     }
      |     ~
Language: C

#include <stdio.h>

int main()
{
	int Field[8][8],
		y,x,
		i;
	char progression[9];
	
	while(1)
	{
		for(y=0;y<8;y++){
			if(scanf("%s",progression) != EOF){
				for(i=0;progression[i];i++){
					Field[y][i] = (progression[i] == '1');
				}
			} else {
				return 0;
			}
		}
		
		
		for(i=0;i<64;i++)
		{
			if(Field[i/8][i%8]){
				y = i/8;
				x = i%8;
				break;
			}
		}
		
		if(Field[y][x+1] && Field[y+1][x] && Field[y+1][x+1]){
			printf("A\n");
		} else if(Field[y+1][x] && Field[y+2][x] && Field[y+3][x]){
			printf("B\n");
		} else if(Field[y][x+1] && Field[y][x+2] && Field[y][x+3]){
			printf("C\n");
		} else if(Field[y+1][x-1] && Field[y+1][x] && Field[y+2][x-1]){
			printf("D\n");
		} else if(Field[y][x+1] && Field[y+1][x+1] && Field[y+1][x+2]){
			printf("E\n");
		} else if(Field[y+1][x] && Field[y+1][x+1] && Field[y+2][x+1]){
			printf("F\n");
		} else if(Field[y][x+1] && Field[y+1][x-1] && Field[y+1][x]){
			printf("G\n");
		}
		
		}
		printf("\n");
	}
}

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

#include <stdio.h>
#define A 1
#define B 2
#define C 3
#define D 4
#define E 5
#define F 6
#define G 7

int main(void){
	int field[9][9];
	int i,j,c;
	int type;
	int end = 0;
	int s_end;
	for(i = 0; i < 9; i++){
		field[i][8] = 0;
	}
	for(j = 0; j < 9; j++){
		field[8][j] = 0;
	}
	while(1){
		type = 0;
		i = 0;
		j = 0;
		s_end = 0;
		while(1){		
			c = getchar();
			if(c == EOF){
				end = 1;
				break;
			}
			field[i][j] = c - '0';
			if(i == 7){
				getchar();
				i = 0;
				if(j == 7){
					getchar();
					break;
				}else{
					j++;
				}
			}else{
				i++;		
			}
		}
		if(end){break;}
		for(j = 0; j < 8; j++){
			for(i = 0; i < 8; i++){
				if(field[i][j]){
					if(field[i-1][j+1]){
						if(field[i+1][j  ]){
							type = G;
							s_end = 1;
							break;
						}else{
							type = D;
							s_end = 1;
							break;
						}
					}else{
						if(
							field[i  ][j+1] &&
							field[i+1][j  ] &&
							field[i+1][j+1]
						){
							type = A;
							s_end = 1;
							break;
						}else if(
							field[i  ][j+1] &&
							field[i  ][j+2] &&
							field[i  ][j+3]
						){		
							type = B;
							s_end = 1;
							break;
						}else if(
							field[i+1][j  ] &&
							field[i+2][j  ] &&
							field[i+3][j  ]
						){
							type = C;
							s_end = 1;
							break;
						}else if(
							field[i+1][j  ] &&
							field[i+1][j+1]	&&
							field[i+2][j+1]	
						){
							type = E;
							s_end = 1;
							break;
						}else if(
							field[i  ][j+1] &&
							field[i+1][j+1] &&
							field[i+1][j+2] 
						){
							type = F;
							s_end = 1;
							break;
						}
					}
				}
			}
			if(s_end){break;}
		}
		putchar(
			type == A ? 'A' :
			type == B ? 'B' :
			type == C ? 'C' :
			type == D ? 'D' :
			type == E ? 'E' :
			type == F ? 'F' : 'G'
		);

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

#include <stdio.h>
#define A 1
#define B 2
#define C 3
#define D 4
#define E 5
#define F 6
#define G 7

int main(void){
	int field[10][10];
	int i,j,c;
	int type;
	int end = 0;
	int s_end;
	for(i = 0; i < 9; i++){
		field[i][0] = 0;
		field[i][8] = 0;
	}
	for(j = 0; j < 9; j++){
		field[0][j] = 0;
		field[8][j] = 0;
	}
	while(1){
		type = 0;
		i = 1;
		j = 1;
		s_end = 0;
		while(1){		
			c = getchar();
			if(c == EOF){
				end = 1;
				break;
			}
			field[i][j] = c - '0';
			if(i == 8){
				getchar();
				i = 1;
				if(j == 8){
					getchar();
					break;
				}else{
					j++;
				}
			}else{
				i++;		
			}
		}
		if(end){break;}
		for(j = 1; j < 9; j++){
			for(i = 1; i < 9; i++){
				if(field[i][j]){
					if(field[i-1][j+1]){
						if(field[i+1][j  ]){
							type = G;
							s_end = 1;
							break;
						}else{
							type = D;
							s_end = 1;
							break;
						}
					}else{
						if(
							field[i  ][j+1] &&
							field[i+1][j  ] &&
							field[i+1][j+1]
						){
							type = A;
							s_end = 1;
							break;
						}else if(
							field[i  ][j+1] &&
							field[i  ][j+2] &&
							field[i  ][j+3]
						){		
							type = B;
							s_end = 1;
							break;
						}else if(
							field[i+1][j  ] &&
							field[i+2][j  ] &&
							field[i+3][j  ]
						){
							type = C;
							s_end = 1;
							break;
						}else if(
							field[i+1][j  ] &&
							field[i+1][j+1]	&&
							field[i+2][j+1]	
						){
							type = E;
							s_end = 1;
							break;
						}else if(
							field[i  ][j+1] &&
							field[i+1][j+1] &&
							field[i+1][j+2] 
						){
							type = F;
							s_end = 1;
							break;
						}
					}
				}
			}
			if(s_end){break;}
		}
		putchar(
			type == A ? 'A' :
			type == B ? 'B' :
			type == C ? 'C' :
			type == D ? 'D' :
			type == E ? 'E' :
			type == F ? 'F' : 'G'
		);
		putchar('\n');
	}

	return 0;

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

#include <iostream>
#include <string>
using namespace std;
string s[8];
void f(){
	char b='A';
	for(int i=0;i<8;i++){
		for(int j=0;j<8;j++){
			if(s[i][j]=='1'){
				if(i<5)if(s[i+3][j]=='1')b='B';
				if(j<5)if(s[i][j+3]=='1')b='C';
				if(i<6&&j>0)if(s[i+2][j-1]=='1')b='D';
				if(j<6)if(s[i+1][j+2]=='1')b='E';
				if(i<6)if(s[i+2][j+1]=='1')b='F';
				if(j>0)if(s[i+1][j-1]=='1')b='G';
				cout<<b<<endl;
				return;
			}
		}
	}
}

int main(){
	while(cin>>s[0]){
		for(int i=1;i<8;i++)cin>>s[i];
		f();
	}
	return 0;
}

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