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

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

int main(){
    string mas;
    bool judge;
    while(cin >> mas){
        judge = false;
        for(int i=0;i<9;i+=3){
            if(mas.substr(i,3) == "ooo"){
                cout << "o" << endl;
                judge = true;
                break;
            }
            if(mas.substr(i,3) == "xxx"){
                cout << "x" << endl;
                judge = true;
                break;
            }
        }
        for(int i=0;i<3;i++){
            if(mas[i] == mas[i+3] && mas[i+3] == mas[i+6] && !judge && mas[i] != 's'){
                cout << mas[i] << endl;
                judge = true;
                break;
            }
        }
        if(mas[0] == mas[4] && mas[4] == mas[8] && !judge && mas[i] != 's') {
            cout << mas[0] << endl;
            judge = true;
        }
        else if(mas[2] == mas[4] && mas[4] == mas[6] && !judge && mas[i] != 's'){
            cout << mas[2] << endl;
            judge = true;
        }
        else if(!judge) cout << "d" << endl;
    }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:29:66: error: 'i' was not declared in this scope
   29 |         if(mas[0] == mas[4] && mas[4] == mas[8] && !judge && mas[i] != 's') {
      |                                                                  ^
Language: C++

#include<iostream>
using namespace std;
int main(void)
{
  char a[9];
  while(cin>>a)
    {
      int x=0;
      for(int i=0;i<3;i++)
	{
	  
	  
	  if((a[i*3]=='o' && a[i*3+1]=='o' && a[i*3+2]=='o') || (a[i]=='o' && a[i+3]=='o' && a[i+6]=='o'))
	    {
	      cout<<'o'<<endl;
	      x++;
	      break;
	    }
	  else if((a[i*3]=='x' && a[i*3+1]=='x' && a[i*3+2]=='x') || (a[i]=='x' && a[i+3]=='x' && a[i+6]=='x'))
	    {
	      cout<<'x'<<endl;
	      x++;
	      break;
	    }
	  j+=2;
	}
      if(a[0]=='o' && a[4]=='o' && a[8]=='o' || (a[2]=='o' && a[4]=='o' && a[6]=='o'))
	{
	  cout<<'o'<<endl;
	  x++;
	}
      if((a[0]=='x' && a[4]=='x' && a[8]=='x') || (a[2]=='x' && a[4]=='x' && a[6]=='x'))
	{
	  cout<<'x'<<endl;
	  x++;
	}
 if(x==0)cout<<'d'<<endl;
    }
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:25:11: error: 'j' was not declared in this scope
   25 |           j+=2;
      |           ^
Language: Java

package aoj;

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.ArrayList;

public class aoj06 {
	public static void main(String[] args){
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String tes = null;
		int g=0;
		int d = 0;


		ArrayList<Integer> al = new ArrayList<Integer>();
		ArrayList<ArrayList> al2 = new ArrayList<ArrayList>();
		ArrayList<Integer> lsf = new ArrayList<Integer>();
		ArrayList<Integer> lsl = new ArrayList<Integer>();
		ArrayList<Integer> lsn = new ArrayList<Integer>();
		ArrayList<Integer> lsf2 = new ArrayList<Integer>();
		ArrayList<Integer> lsl2 = new ArrayList<Integer>();
		ArrayList<Integer> lsn2 = new ArrayList<Integer>();
		ArrayList<Integer> dead = new ArrayList<Integer>();

		while(true){
			ArrayList<Integer> al3 = new ArrayList<Integer>();
			for(int s=0;s<12;s++){
				try {
					tes = br.readLine();
				} catch (IOException e) {
					// TODO 自動生成された catch ブロック
					e.printStackTrace();
				}
				if(tes == null){
					if(g == 1){
						d = 1;
						break;
					}
					g = 1;
					continue;
				}
				if(tes.equals("")){
					if(g == 1){
						d = 1;
						break;
					}
					g = 1;
					continue;
				}
				g = 0;
				try{
					
					for(int i=0;i<12;i++){
						al3.add(Integer.parseInt(String.valueOf(tes.charAt(i))));
						dead.add(0);
					}
				}catch(NumberFormatException e){
					break;
				}
			}
			if(d == 1){
				break;
			}
			al2.add(al3);

			//al.add(a);
		}
		
		for(int i=0;i<al2.size();i++){
			for(int j=0;j<12;j++){
				for(int k=0;k<12;k++){
					System.out.print(al2.get(i).get(trans(j,k)));
				}
				System.out.println();
			}
			System.out.println("\n");
		}
	}
	public static int trans(int h,int w){
		int ret = 0;
		
		ret = h*12+w;
		
		
		return ret;
		
	}

}

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

package aoj;

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.ArrayList;

public class aoj06 {
	public static void main(String[] args){
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String tes = null;
		int g=0;
		int d = 0;


		ArrayList<Integer> al = new ArrayList<Integer>();
		ArrayList<ArrayList> al2 = new ArrayList<ArrayList>();
		ArrayList<Integer> lsf = new ArrayList<Integer>();
		ArrayList<Integer> lsl = new ArrayList<Integer>();
		ArrayList<Integer> lsn = new ArrayList<Integer>();
		ArrayList<Integer> lsf2 = new ArrayList<Integer>();
		ArrayList<Integer> lsl2 = new ArrayList<Integer>();
		ArrayList<Integer> lsn2 = new ArrayList<Integer>();
		ArrayList<Integer> dead = new ArrayList<Integer>();

		while(true){
			ArrayList<Integer> al3 = new ArrayList<Integer>();
			for(int s=0;s<12;s++){
				try {
					tes = br.readLine();
				} catch (IOException e) {
					// TODO 自動生成された catch ブロック
					e.printStackTrace();
				}
				if(tes == null){
					if(g == 1){
						d = 1;
						break;
					}
					g = 1;
					continue;
				}
				if(tes.equals("")){
					if(g == 1){
						d = 1;
						break;
					}
					g = 1;
					continue;
				}
				g = 0;
				try{
					
					for(int i=0;i<12;i++){
						al3.add(Integer.parseInt(String.valueOf(tes.charAt(i))));
						dead.add(0);
					}
				}catch(NumberFormatException e){
					break;
				}
			}
			if(d == 1){
				break;
			}
			al2.add(al3);

			//al.add(a);
		}
	}
	public static int trans(int h,int w){
		int ret = 0;
		
		ret = h*12+w;
		
		
		return ret;
		
	}

}

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

package aoj;

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.ArrayList;

public class aoj06 {
	public static void main(String[] args){
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String tes = null;
		int g=0;
		int d = 0;


		ArrayList<Integer> al = new ArrayList<Integer>();
		ArrayList<ArrayList> al2 = new ArrayList<ArrayList>();
		ArrayList<Integer> lsf = new ArrayList<Integer>();
		ArrayList<Integer> lsl = new ArrayList<Integer>();
		ArrayList<Integer> lsn = new ArrayList<Integer>();
		ArrayList<Integer> lsf2 = new ArrayList<Integer>();
		ArrayList<Integer> lsl2 = new ArrayList<Integer>();
		ArrayList<Integer> lsn2 = new ArrayList<Integer>();
		ArrayList<Integer> dead = new ArrayList<Integer>();

		while(true){
			ArrayList<Integer> al3 = new ArrayList<Integer>();
			for(int s=0;s<12;s++){
				try {
					tes = br.readLine();
				} catch (IOException e) {
					// TODO 自動生成された catch ブロック
					e.printStackTrace();
				}
				if(tes == null){
					if(g == 1){
						d = 1;
						break;
					}
					g = 1;
					continue;
				}
				if(tes.equals("")){
					if(g == 1){
						d = 1;
						break;
					}
					g = 1;
					continue;
				}
				g = 0;
				try{
					
					for(int i=0;i<12;i++){
						al3.add(Integer.parseInt(String.valueOf(tes.charAt(i))));
						dead.add(0);
					}
				}catch(NumberFormatException e){
					break;
				}
			}
			if(d == 1){
				break;
			}
			al2.add(al3);

			//al.add(a);
		}
	}

}

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

package aoj;

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.ArrayList;

public class aoj06 {
	public static void main(String[] args){
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String tes = null;
		int g=0;
		int d=0;


		ArrayList<Integer> al = new ArrayList<Integer>();
		ArrayList<ArrayList> al2 = new ArrayList<ArrayList>();
		ArrayList<Integer> lsf = new ArrayList<Integer>();
		ArrayList<Integer> lsl = new ArrayList<Integer>();
		ArrayList<Integer> lsn = new ArrayList<Integer>();
		ArrayList<Integer> lsf2 = new ArrayList<Integer>();
		ArrayList<Integer> lsl2 = new ArrayList<Integer>();
		ArrayList<Integer> lsn2 = new ArrayList<Integer>();
		ArrayList<Integer> dead = new ArrayList<Integer>();

		while(true){
			ArrayList<Integer> al3 = new ArrayList<Integer>();
			for(int s=0;s<12;s++){
				try {
					tes = br.readLine();
				} catch (IOException e) {
					// TODO 自動生成された catch ブロック
					e.printStackTrace();
				}
				if(tes == null){
					if(g == 1){
						d = 1;
						break;
					}
					g = 1;
					continue;
				}
				if(tes.equals("")){
					if(g == 1){
						d = 1;
						break;
					}
					g = 1;
					continue;
				}
				g = 0;
				try{
					
					for(int i=0;i<12;i++){
						al3.add(Integer.parseInt(String.valueOf(tes.charAt(i))));
						dead.add(0);
					}
				}catch(NumberFormatException e){
					break;
				}
			}
			if(d == 1){
				break;
			}
			al2.add(al3);

			//al.add(a);
		}
	}

}

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

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.ArrayList;

public class Main {
	public static void main(String[] args){
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String tes = null;
		int g=0;
		int d = 0;


		ArrayList<Integer> al = new ArrayList<Integer>();
		ArrayList<ArrayList> al2 = new ArrayList<ArrayList>();
		ArrayList<Integer> lsf = new ArrayList<Integer>();
		ArrayList<Integer> lsl = new ArrayList<Integer>();
		ArrayList<Integer> lsn = new ArrayList<Integer>();
		ArrayList<Integer> lsf2 = new ArrayList<Integer>();
		ArrayList<Integer> lsl2 = new ArrayList<Integer>();
		ArrayList<Integer> lsn2 = new ArrayList<Integer>();
		ArrayList<Integer> dead = new ArrayList<Integer>();

		while(true){
			ArrayList<Integer> al3 = new ArrayList<Integer>();
			for(int s=0;s<12;s++){
				try {
					tes = br.readLine();
				} catch (IOException e) {
					// TODO 自動生成された catch ブロック
					e.printStackTrace();
				}
				if(tes == null){
					if(g == 1){
						d = 1;
						break;
					}
					g = 1;
					continue;
				}
				if(tes.equals("")){
					if(g == 1){
						d = 1;
						break;
					}
					g = 1;
					continue;
				}
				g = 0;
				try{
					
					for(int i=0;i<12;i++){
						al3.add(Integer.parseInt(String.valueOf(tes.charAt(i))));
						dead.add(0);
					}
				}catch(NumberFormatException e){
					break;
				}
			}
			if(d == 1){
				break;
			}
			al2.add(al3);
		}


}

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

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.ArrayList;

public class Main {
	public static void main(String[] args){
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String tes = null;
		int g=0;
		int d = 0;


		ArrayList<Integer> al = new ArrayList<Integer>();
		ArrayList<ArrayList> al2 = new ArrayList<ArrayList>();
		ArrayList<Integer> lsf = new ArrayList<Integer>();
		ArrayList<Integer> lsl = new ArrayList<Integer>();
		ArrayList<Integer> lsn = new ArrayList<Integer>();
		ArrayList<Integer> lsf2 = new ArrayList<Integer>();
		ArrayList<Integer> lsl2 = new ArrayList<Integer>();
		ArrayList<Integer> lsn2 = new ArrayList<Integer>();
		ArrayList<Integer> dead = new ArrayList<Integer>();

		while(true){
			ArrayList<Integer> al3 = new ArrayList<Integer>();
			for(int s=0;s<12;s++){
				try {
					tes = br.readLine();
				} catch (IOException e) {
					// TODO 自動生成された catch ブロック
					e.printStackTrace();
				}
				if(tes == null){
					if(g == 1){
						d = 1;
						break;
					}
					g = 1;
					continue;
				}
				if(tes.equals("")){
					if(g == 1){
						d = 1;
						break;
					}
					g = 1;
					continue;
				}
				g = 0;
				try{
					
					for(int i=0;i<12;i++){
						al3.add(Integer.parseInt(String.valueOf(tes.charAt(i))));
						dead.add(0);
					}
				}catch(NumberFormatException e){
					break;
				}
			}
			if(d == 1){
				break;
			}
			al2.add(al3);

			//al.add(a);
		}
		
		for(int i=0;i<al2.size();i++){
			for(int j=0;j<12;j++){
				for(int k=0;k<12;k++){
					System.out.print(al2.get(i).get(trans(j,k)));
				}
				System.out.println();
			}
			System.out.println("\n");
		}

	}

}

Compiler output:
Main.java:71: error: cannot find symbol
					System.out.print(al2.get(i).get(trans(j,k)));
					                                ^
  symbol:   method trans(int,int)
  location: class Main
1 error
Language: Java

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.ArrayList;

public class Main {
	public static void main(String[] args){
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String tes = null;
		int g=0;
		int d = 0;


		ArrayList<Integer> al = new ArrayList<Integer>();
		ArrayList<ArrayList> al2 = new ArrayList<ArrayList>();
		ArrayList<Integer> lsf = new ArrayList<Integer>();
		ArrayList<Integer> lsl = new ArrayList<Integer>();
		ArrayList<Integer> lsn = new ArrayList<Integer>();
		ArrayList<Integer> lsf2 = new ArrayList<Integer>();
		ArrayList<Integer> lsl2 = new ArrayList<Integer>();
		ArrayList<Integer> lsn2 = new ArrayList<Integer>();
		ArrayList<Integer> dead = new ArrayList<Integer>();

		while(true){
			ArrayList<Integer> al3 = new ArrayList<Integer>();
			for(int s=0;s<12;s++){
				try {
					tes = br.readLine();
				} catch (IOException e) {
					// TODO 自動生成された catch ブロック
					e.printStackTrace();
				}
				if(tes == null){
					if(g == 1){
						d = 1;
						break;
					}
					g = 1;
					continue;
				}
				if(tes.equals("")){
					if(g == 1){
						d = 1;
						break;
					}
					g = 1;
					continue;
				}
				g = 0;
				try{
					
					for(int i=0;i<12;i++){
						al3.add(Integer.parseInt(String.valueOf(tes.charAt(i))));
						dead.add(0);
					}
				}catch(NumberFormatException e){
					break;
				}
			}
			if(d == 1){
				break;
			}
			al2.add(al3);

			//al.add(a);
		}
		
		for(int i=0;i<al2.size();i++){
			for(int j=0;j<12;j++){
				for(int k=0;k<12;k++){
					System.out.print(al2.get(i).get(trans(j,k)));
				}
				System.out.println();
			}
			System.out.println("\n");
		}
}
		
	}
	public static int trans(int h,int w){
		int ret = 0;
		
		ret = h*12+w;
		
		
		return ret;
		
	}

}

Compiler output:
Main.java:80: error: unnamed classes are a preview feature and are disabled by default.
	public static int trans(int h,int w){
	              ^
  (use --enable-preview to enable unnamed classes)
Main.java:90: error: class, interface, enum, or record expected
}
^
2 errors
Language: Java

package aoj;

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.ArrayList;

public class aoj06 {
	public static void main(String[] args){
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String tes = null;
		int g=0;
		int d = 0;


		ArrayList<Integer> al = new ArrayList<Integer>();
		ArrayList<ArrayList> al2 = new ArrayList<ArrayList>();
		ArrayList<Integer> lsf = new ArrayList<Integer>();
		ArrayList<Integer> lsl = new ArrayList<Integer>();
		ArrayList<Integer> lsn = new ArrayList<Integer>();
		ArrayList<Integer> lsf2 = new ArrayList<Integer>();
		ArrayList<Integer> lsl2 = new ArrayList<Integer>();
		ArrayList<Integer> lsn2 = new ArrayList<Integer>();
		ArrayList<Integer> dead = new ArrayList<Integer>();

		while(true){
			ArrayList<Integer> al3 = new ArrayList<Integer>();
			for(int s=0;s<12;s++){
				try {
					tes = br.readLine();
				} catch (IOException e) {
					// TODO 自動生成された catch ブロック
					e.printStackTrace();
				}
				if(tes == null){
					if(g == 1){
						d = 1;
						break;
					}
					g = 1;
					continue;
				}
				if(tes.equals("")){
					if(g == 1){
						d = 1;
						break;
					}
					g = 1;
					continue;
				}
				g = 0;
				try{
					
					for(int i=0;i<12;i++){
						al3.add(Integer.parseInt(String.valueOf(tes.charAt(i))));
						dead.add(0);
					}
				}catch(NumberFormatException e){
					break;
				}
			}
			if(d == 1){
				break;
			}
			al2.add(al3);

			//al.add(a);
		}
		
		for(int i=0;i<al2.size();i++){
			for(int j=0;j<12;j++){
				for(int k=0;k<12;k++){
					System.out.print(al2.get(i).get(trans(j,k)));
				}
				System.out.println();
			}
			System.out.println("\n");
		}
		
	}
	public static int trans(int h,int w){
		int ret = 0;
		
		ret = h*12+w;
		
		
		return ret;
		
	}

}

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

package aoj;

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.ArrayList;

public class aoj06 {
	public static void main(String[] args){
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String tes = null;
		int g=0;
		int d = 0;


		ArrayList<Integer> al = new ArrayList<Integer>();
		ArrayList<ArrayList> al2 = new ArrayList<ArrayList>();
		ArrayList<Integer> lsf = new ArrayList<Integer>();
		ArrayList<Integer> lsl = new ArrayList<Integer>();
		ArrayList<Integer> lsn = new ArrayList<Integer>();
		ArrayList<Integer> lsf2 = new ArrayList<Integer>();
		ArrayList<Integer> lsl2 = new ArrayList<Integer>();
		ArrayList<Integer> lsn2 = new ArrayList<Integer>();
		ArrayList<Integer> dead = new ArrayList<Integer>();

		while(true){
			ArrayList<Integer> al3 = new ArrayList<Integer>();
			for(int s=0;s<12;s++){
				try {
					tes = br.readLine();
				} catch (IOException e) {
					// TODO 自動生成された catch ブロック
					e.printStackTrace();
				}
				if(tes == null){
					if(g == 1){
						d = 1;
						break;
					}
					g = 1;
					continue;
				}
				if(tes.equals("")){
					if(g == 1){
						d = 1;
						break;
					}
					g = 1;
					continue;
				}
				g = 0;
				try{
					
					for(int i=0;i<12;i++){
						al3.add(Integer.parseInt(String.valueOf(tes.charAt(i))));
						dead.add(0);
					}
				}catch(NumberFormatException e){
					break;
				}
			}
			if(d == 1){
				break;
			}
			al2.add(al3);


		}

		
	}
	public static int trans(int h,int w){
		int ret = 0;
		
		ret = h*12+w;
		
		
		return ret;
		
	}

}

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

package aoj;

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.ArrayList;

public class aoj06 {
	public static void main(String[] args){
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String tes = null;
		int g=0;
		int d = 0;


		ArrayList<Integer> al = new ArrayList<Integer>();
		ArrayList<ArrayList> al2 = new ArrayList<ArrayList>();
		ArrayList<Integer> lsf = new ArrayList<Integer>();
		ArrayList<Integer> lsl = new ArrayList<Integer>();
		ArrayList<Integer> lsn = new ArrayList<Integer>();
		ArrayList<Integer> lsf2 = new ArrayList<Integer>();
		ArrayList<Integer> lsl2 = new ArrayList<Integer>();
		ArrayList<Integer> lsn2 = new ArrayList<Integer>();
		ArrayList<Integer> dead = new ArrayList<Integer>();

		while(true){
			ArrayList<Integer> al3 = new ArrayList<Integer>();
			for(int s=0;s<12;s++){
				try {
					tes = br.readLine();
				} catch (IOException e) {
					// TODO 自動生成された catch ブロック
					e.printStackTrace();
				}
				if(tes == null){
					if(g == 1){
						d = 1;
						break;
					}
					g = 1;
					continue;
				}
				if(tes.equals("")){
					if(g == 1){
						d = 1;
						break;
					}
					g = 1;
					continue;
				}
				g = 0;
				try{
					
					for(int i=0;i<12;i++){
						al3.add(Integer.parseInt(String.valueOf(tes.charAt(i))));
						dead.add(0);
					}
				}catch(NumberFormatException e){
					break;
				}
			}
			al2.add(al3);


		}
		
	}
	public static int trans(int h,int w){
		int ret = 0;
		
		ret = h*12+w;
		
		
		return ret;
		
	}

}

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

package aoj;

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.ArrayList;

public class aoj06 {
	public static void main(String[] args){
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String tes = null;
		int g=0;
		int d = 0;


		ArrayList<Integer> al = new ArrayList<Integer>();
		ArrayList<ArrayList> al2 = new ArrayList<ArrayList>();
		ArrayList<Integer> lsf = new ArrayList<Integer>();
		ArrayList<Integer> lsl = new ArrayList<Integer>();
		ArrayList<Integer> lsn = new ArrayList<Integer>();
		ArrayList<Integer> lsf2 = new ArrayList<Integer>();
		ArrayList<Integer> lsl2 = new ArrayList<Integer>();
		ArrayList<Integer> lsn2 = new ArrayList<Integer>();
		ArrayList<Integer> dead = new ArrayList<Integer>();

		while(true){
			ArrayList<Integer> al3 = new ArrayList<Integer>();
			for(int s=0;s<12;s++){
				try {
					tes = br.readLine();
				} catch (IOException e) {
					// TODO 自動生成された catch ブロック
					e.printStackTrace();
				}
				if(tes == null){
					if(g == 1){
						d = 1;
						break;
					}
					g = 1;
					continue;
				}
				if(tes.equals("")){
					if(g == 1){
						d = 1;
						break;
					}
					g = 1;
					continue;
				}
				g = 0;
				try{
					
					for(int i=0;i<12;i++){
						al3.add(Integer.parseInt(String.valueOf(tes.charAt(i))));
						dead.add(0);
					}
				}catch(NumberFormatException e){
					break;
				}
			}


		}
		
	}
	public static int trans(int h,int w){
		int ret = 0;
		
		ret = h*12+w;
		
		
		return ret;
		
	}

}

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

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.ArrayList;

public class Main {
	public static void main(String[] args){
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String tes = null;
		int g=0;
		int d = 0;


		ArrayList<Integer> al = new ArrayList<Integer>();
		ArrayList<tyu> al2 = new ArrayList<tyu>();
		ArrayList<Integer> lsf = new ArrayList<Integer>();
		ArrayList<Integer> lsl = new ArrayList<Integer>();
		ArrayList<Integer> lsn = new ArrayList<Integer>();
		ArrayList<Integer> lsf2 = new ArrayList<Integer>();
		ArrayList<Integer> lsl2 = new ArrayList<Integer>();
		ArrayList<Integer> lsn2 = new ArrayList<Integer>();
		ArrayList<Integer> dead = new ArrayList<Integer>();

		while(true){
			tyu io = new tyu();
			for(int s=0;s<12;s++){
				try {
					tes = br.readLine();
				} catch (IOException e) {
					// TODO 自動生成された catch ブロック
					e.printStackTrace();
				}
				if(tes == null){
					if(g == 1){
						d = 1;
						break;
					}
					g = 1;
					continue;
				}
				if(tes.equals("")){
					if(g == 1){
						d = 1;
						break;
					}
					g = 1;
					continue;
				}
				g = 0;
				try{
					
					for(int i=0;i<12;i++){
						io.t.add(Integer.parseInt(String.valueOf(tes.charAt(i))));
						dead.add(0);
					}
				}catch(NumberFormatException e){
					break;
				}
			}
			if(d == 1){
				break;
			}
			al2.add(io);

			//al.add(a);
		}
		
		/*for(int i=0;i<al2.size();i++){
			for(int j=0;j<12;j++){
				for(int k=0;k<12;k++){
					System.out.print(al2.get(i).get(trans(j,k)));
				}
				System.out.println();
			}
			System.out.println("\n");
		}*/
		
		int num;
		int cl;
		int yn;
		
		al = al2.get(r).t;
al.get(0);

		
	}
	public static int trans(int h,int w){
		int ret = 0;
		
		ret = h*12+w;
		
		
		return ret;
		
	}

}
class tyu{
	ArrayList<Integer> t = new ArrayList<Integer>();
	
}

Compiler output:
Main.java:82: error: cannot find symbol
		al = al2.get(r).t;
		             ^
  symbol:   variable r
  location: class Main
1 error
Language: Java

import java.io.*;

ckass Main{
public static void main(String[] args) throws IOException{
BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
String line="";
int count;
char[][] map=new char[12][12];
while(true){
count=0;
for(int i=0;i<12;i++){
line=br.readLine();
for(int j=0;j<12;j++){
map[i][j]=line.charAt(j);
}
}
for(int i=0;i<12;i++){
for(int j=0;j<12;j++){
if(map[i][j]=='1'){
dfs(i,j,map);
count++;
}
}
}
System.out.println(count);
line=br.readLine();
if(line==null){
break;
}
}
}
private static void dfs(int x,int y,char[][] map){
int nx,ny;
map[x][y]='0';
int[] dx={-1,0,1,0};
int[] dy={0,-1,0,1};
for(int i=0;i<4;i++){
nx=x+dx[i];
ny=x+dy[i];
if(nx>=0&&nx<12&&ny>=0&&ny<12&&map[nx][ny]=='1'){
dfs(nx,ny,map);
}
}
return;
}
}

Compiler output:
Main.java:3: error: class, interface, enum, or record expected
ckass Main{
^
Main.java:4: error: unnamed classes are a preview feature and are disabled by default.
public static void main(String[] args) throws IOException{
              ^
  (use --enable-preview to enable unnamed classes)
Main.java:46: error: class, interface, enum, or record expected
}
^
3 errors
Language: Java

import java.util.Scanner;


public class Main {
	static Scanner scan = new Scanner(System.in);
	static boolean[][] map = new boolean[12][12];
	static boolean[][] check = new boolean[12][12];
	static int island = 0;
	public static void main(String[] args) {
		while(scan.hasNext()) {
			
			for(int i = 0; i < 12; i++) {
				int count = 0;
				for( String s : scan.nextLine().split("",0)) {
					if(s.equals("1")) {
						map[i][count] = true;
					}
					else {
						map[i][count] = false;
					}
					count++;
				}
			}
			for(int i = 0; i < 12 ; i++) {
				for(int u = 0; u < 12; u++) {
					if(map[i][u] && !check[i][u]) {
						fun(i,u);
					}
				}
			}
		}
	}

	static void fun(int x, int y) {
		fun(x,y,0);
		island++;

	}

	static void fun(int x, int y, int muki) {
		check[x][y] = true;
	
			if(y + 1 < 12 && map[x][y+1]) {
				fun(x,y+1,0);
			} else {
				fun(x+1,y,1);

			

			if(x+1 < 12 && map[x+1][y]) {
				fun(x+1,y,1);
			} else {
				fun(x,y-1,2);


			if(y - 1 > - 1 && map[x][y-1]) {
				fun(x,y-1,2);
			} else {
				fun(x+1,y,3);

			if(x - 1 > -1 && map[x-1][y]) {
				fun(x-1,y,3);
			} 			

	}
}

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

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

char tisei[12][12];
void shima(int a, int b) {
	tisei[a][b] = 0;
	if (tisei[a - 1][b] &&  a - 1>0 )shima(a - 1, b);
	if (tisei[a + 1][b] &&  a + 1<13)shima(a + 1, b);
	if (tisei[a][b - 1] &&  b - 1>0 )shima(a, b - 1);
	if (tisei[a][b + 1] &&  b + 1<13)shima(a, b + 1);
}
int main() {
	while (1) {
		for (int a = 0; a < 12; a++) {
			string c;
			cin >> c;
			if (cin.fail())goto l;
			for (int b = 0; b < 12; b++) {
				tisei[a][b] = c[b] - 48;
			}
		}
		int s = 0;
		for (int e = 0; e < 12; e++) {
			for (int f = 0; f < 12; f++) {
				if (tisei[e][f]) { s++; shima(e, f); }
			}
		}
		cout << s << endl;
	}
l:;
}

Compiler output:
Main.java:1: error: illegal character: '#'
#include<iostream>
^
Main.java:2: error: illegal character: '#'
#include<vector>
^
Main.java:3: error: illegal character: '#'
#include<string>
^
Main.java:6: error: class, interface, enum, or record expected
char tisei[12][12];
^
Main.java:7: error: unnamed classes are a preview feature and are disabled by default.
void shima(int a, int b) {
^
  (use --enable-preview to enable unnamed classes)
Main.java:18: error: not a statement
			cin >> c;
			    ^
Main.java:19: error: not a statement
			if (cin.fail())goto l;
			                    ^
Main.java:30: error: not a statement
		cout << s << endl;
		          ^
Main.java:19: error: illegal start of expression
			if (cin.fail())goto l;
			               ^
9 errors
Language: Java

package NumberOfIsland;

import java.io.IOException;
import java.util.Scanner;

/**
 * <pre>
 * NumberOfIsland
 *
 * ??¶?????°???????????????
 * </pre>
 *
 * @author ?????????????????§???
 *
 */
public class NumberofIsland {

    static boolean[][] map;
    static boolean[][] check;
    static int island ;

	public static void main(String[] args) throws IOException {
		Scanner sc = new Scanner(System.in);
		 while(sc.hasNext()) {
	            map = new boolean[12][12];
	            check = new boolean[12][12];
	            island = 0;
	            for(int cnt = 0; cnt < map.length; cnt++) {
	                int trans = 0;
	                for( String s : sc.next().split("",0)) {
	                    if(s.equals("1")) {
	                        map[cnt][trans] = true;
	                    }
	                    else {
	                        map[cnt][trans] = false;
	                    }
	                    trans++;
	                }
	            }
	            for(int mh = 0; mh < map.length ; mh++) {
	                for(int mw = 0; mw < map.length; mw++) {
	                    if(map[mh][mw] && !check[mh][mw]) {
	                        fun(mh,mw);
	                    }
	                }
	            }
	            System.out.println(island);
		} // ?????????????????????
	}// ?????????????????????????????????

	static void fun(int mh, int mw) {
        flag(mh,mw);
        island++;
    }

    static void flag(int mh, int mw) {
        check[mh][mw] = true;

        if(mw + 1 < 12 && map[mh][mw+1] && !check[mh][mw+1]) {
            flag(mh,mw+1);
        }
        if(mh + 1 < 12 && map[mh+1][mw] && !check[mh+1][mw]) {
            flag(mh+1,mw);
        }
        if(mw - 1 > -1 && map[mh][mw-1] && !check[mh][mw-1]) {
            flag(mh,mw-1);
        }
        if(mh - 1 > -1 && map[mh-1][mw] && !check[mh-1][mw]) {
            flag(mh-1,mw);
        }
    }
}// ??????????????????????????????

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

111100001111
111000001111
110000001111
100000001111
000100010000
000000111000
000001111100
100011111110
110001111100
111000111000
111100010000
000000000000

010001111100
110010000010
010010000001
010000000001
010000000110
010000111000
010000000100
010000000010
010000000001
010010000001
010010000010
111001111100

000000000000
111111111111
100010100001
100010100001
100010100001
100010100001
100100100101
101000011101
100000000001
100000000001
111111111111
100000000001

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

import java.util.Scanner;

public class Main {

	class Island {

		int[][] map = new int[14][14];
		int num = 2;

		public Island(int[][] map) {
			this.map = map;
		}

		private void label(int row, int column) {
			map[row][column] = num;
			for(int i=0; i<4; i++) {
				if(i==0) {
					if(map[row][column-1] == 1) label(row, column-1);
				} else if(i == 1) {
					if(map[row-1][column] == 1) label(row-1, column);
				} else if(i == 2) {
					if(map[row][column+1] == 1) label(row, column+1);
				} else if(i == 3) {
					if(map[row+1][column] == 1) label(row+1, column);
				}
			}
		}

		public int count() {
			for(int i=1; i<13; i++) {
				for(int j=1; j<13; j++) {
					if(map[i][j] == 1) {
						num++;
						label(i, j);
					}
				}
			}
			return num-2;
		}

	}


	public static void main(String[] args) {

		Scanner sc = new Scanner(System.in);

		while(sc.hasNext()) {

			int[][] map = new int[14][14];

			// 外を埋める
			for(int i=0; i<14; i++) {
				map[0][i] = 0;
				map[13][i] = 0;
				map[i][0] = 0;
				map[i][13] = 0;
			}

			for(int i=1; i<13; i++) {
				String line = sc.next();
				for(int j=1; j<13; j++) {
					map[i][j] = Integer.parseInt(line.split("")[j-1]);
				}
			}

			Island island = new Main().new Island(map);
			System.out.println(island.count());
		}

		sc.close();


	}


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

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

public class Main {
public static void main(String[] args) throws IOException {
  BufferedReader br = new BufferedReader(
	  new InputStreamReader(System.in));
  boolean hasNext = true;
  while (hasNext) {
	int[][] before = new int[12][];
	int[][] line = new int[12][];
	int count = 0, num = 0;
	int[][] old = null;
	char[] read = new char[12];
	for (int col = 0; col < 12; col++) {
	  old = before;
	  before = line;
	  line = old;
	  br.read(read);
	  for (int row = 0; row < 12; row++) {
		if (read[row] == '1') {
		  boolean upperHas = before[row] != null;
		  boolean leftHas = row != 0 && line[row - 1] != null;
		  if (!(upperHas || leftHas)) {
			line[row] = new int[] { num++ };
			count++;
		  } else if (leftHas) {
			line[row] = line[row - 1];
			if (upperHas && line[row][0] != before[row][0]) {
			  line[row][0] = before[row][0];
			  count--;
			}
		  } else if (upperHas) {
			line[row] = before[row];
		  }
		}
		else {
		  line[row] = null;
		}
	  }
	  br.readLine();
	}
	System.out.print(count);
	hasNext = br.readLine() != null;
	if (hasNext) {
	  System.out.print(" ");
	} else {
	  System.out.println();
	}
  }
}

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

#include <stdio.h>

char m[14][14];
int w[4][2]={{-1,0},{1,0},{0,-1},{0,1}};

void sol(int i,int j) {
    int ni,nj;
    m[i][j]=='0';
    for(int k=0;k<4;++k) {
        ni=i+w[k][0];
        nj=j+w[k][1];
        if(m[ni][nj]=='1') sol(ni,nj);
    }
}


int main(){
    int ans;
    for (;;) {
        ans=0;
        memset(m,'0',sizeof(m));
        for (int i=1;i<=12;++i) {
            if (scanf("%s",&m[i][1])==EOF) return 0;
            m[i][13]='0';
        }

        for (int i=1;i<=12;++i) {
            for (int j=1;j<=12;++j) {
                if (m[i][j]=='1') {
                    sol(i,j);
                    ans++;
                }
            }
        }
        printf("%d\n",ans);
    }
}

Compiler output:
main.c: In function 'main':
main.c:21:9: error: implicit declaration of function 'memset' [-Wimplicit-function-declaration]
   21 |         memset(m,'0',sizeof(m));
      |         ^~~~~~
main.c:2:1: note: include '<string.h>' or provide a declaration of 'memset'
    1 | #include <stdio.h>
  +++ |+#include <string.h>
    2 | 
main.c:21:9: warning: incompatible implicit declaration of built-in function 'memset' [-Wbuiltin-declaration-mismatch]
   21 |         memset(m,'0',sizeof(m));
      |         ^~~~~~
main.c:21:9: note: include '<string.h>' or provide a declaration of 'memset'
Language: C

#include <stdio.h>
bool setMap();
void search(int x,int y);
int map[12][12];
int w=12;
int h=12;


int main(void)
{
	while(setMap()){
	}
}

bool setMap(){
	char t;
	int count=0;
	int r;
	for(int i=0;i<h;i++){
		for(int j=0;j<w;j++){
			
			r=scanf(" %c",&t);
			if(r<1){
				return false;
			}
			
			map[i][j]=t-'0';
		}
	}
	
	for(int i=0;i<h;i++){
		for(int j=0;j<w;j++){
			if(map[i][j]==1){
				search(j,i);
				count++;
			}
		}
	}
	printf("%d\n",count);
	return true;
}


void search(int x,int y){
	if(w>x && x>=0 && h>y && y>=0 && map[y][x]==1){
		map[y][x]=0;
		search(x+1,y);
		search(x-1,y);
		search(x,y+1);
		search(x,y-1);
	}
}

Compiler output:
main.c:2:1: error: unknown type name 'bool'
    2 | bool setMap();
      | ^~~~
main.c:2:1: note: 'bool' is defined in header '<stdbool.h>'; this is probably fixable by adding '#include <stdbool.h>'
    1 | #include <stdio.h>
  +++ |+#include <stdbool.h>
    2 | bool setMap();
main.c:15:1: error: unknown type name 'bool'
   15 | bool setMap(){
      | ^~~~
main.c:15:1: note: 'bool' is defined in header '<stdbool.h>'; this is probably fixable by adding '#include <stdbool.h>'
main.c: In function 'setMap':
main.c:24:40: error: 'false' undeclared (first use in this function)
   24 |                                 return false;
      |                                        ^~~~~
main.c:24:40: note: 'false' is defined in header '<stdbool.h>'; this is probably fixable by adding '#include <stdbool.h>'
main.c:24:40: note: each undeclared identifier is reported only once for each function it appears in
main.c:40:16: error: 'true' undeclared (first use in this function)
   40 |         return true;
      |                ^~~~
main.c:40:16: note: 'true' is defined in header '<stdbool.h>'; this is probably fixable by adding '#include <stdbool.h>'
Language: C

#include<iostream>
#include<string>
using namespace std;
#define N 12

int map[N][N], ans = 0;

int toInt(string str, int n);
int search();
int loop(int x, int y);

int main(){
    string str;
    while(cin >>str){
        toInt(str, 0);
        for(int i = 1; i < N; i++){
            ans = 0;
            cin >>str;
            toInt(str, i);
        }
        search();
        cout <<ans <<endl;
    }
}

int toInt(string str, int n){
    for(int i = 0; i < N; i++){
        map[n][i] = str[i] - '0';
    }
}

int search(){
    for(int i = 0; i < N; i++){
        for(int j = 0; j < N; j++){
            if(map[i][j] == 1){
                ans++;
                loop(j, i);
            }
        }
    }
}

int loop(int x, int y){
    int xm[] = {0, 1, 0, -1}, ym[] = {-1, 0, 1, 0};
    if(map[y][x] == 1){
        map[y][x] = 0;
        for(int i = 0; i < 4; i++){
            int xn = x + xm[i], yn = y + ym[i];
            if(xn >= 0 && yn >= 0 && xn < N && yn < N && map[yn][xn] == 1) loop(xn, yn);
        }
    }
}

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

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

char island[12][12];

void wn(int i, int j){
	island[i][j] = '0';
	for(int k = -1; k <= 1; k+=2){
		if(i + k < 0 || j + k < 0)	continue;
		if(island[i+k][j] == '1'){
			wn(i+k, j);
		}
		if(island[i][j+k] == '1'){
			wn(i, j+k);
		}
	}

	return;	
}

int main(){
	int num;
	
	for(int c = 0; c < 20; c++){
		num = 0;
		for(int i = 0; i < 12; i++){
			scanf("%s", island[i]);
		}
	
		for(int i = 0; i < 12; i++){
			for(int j = 0; j < 12; j++){
				if(island[i][j] == '1'){
					wn(i, j);
					num++;		
				}
			}
		}
	
		cout << num << endl；
　　　　　　　　 cout << endl;
	}
	return 0;
}

Compiler output:
a.cc:41:1: error: extended character 　 is not valid in an identifier
   41 | 　　　　　　　　 cout << endl;
      | ^
a.cc:41:1: error: extended character 　 is not valid in an identifier
a.cc:41:1: error: extended character 　 is not valid in an identifier
a.cc:41:1: error: extended character 　 is not valid in an identifier
a.cc:41:1: error: extended character 　 is not valid in an identifier
a.cc:41:1: error: extended character 　 is not valid in an identifier
a.cc:41:1: error: extended character 　 is not valid in an identifier
a.cc:41:1: error: extended character 　 is not valid in an identifier
a.cc: In function 'int main()':
a.cc:40:32: error: 'endl\U0000ff1b' was not declared in this scope
   40 |                 cout << num << endl；
      |                                ^~~~~~
Language: C++

#include <iostream>
#include <cstdio>
#include <cstdlib>
#include <time.h>
#include <math.h>
#include <vector>
#include <queue>
#include <map>
#include <set>
#include <algorithm>
#include <iterator>
#include <sstream>
#include <string>
#include <bitset>
using namespace std;
#define rep(I,N) for(int I = 0; I < (int)(N); I++)
#define FIN(V) cout<<V<<endl
#define pb push_back
#define INF (1 << 30)
typedef pair<int, int> P;
typedef long long ll;
typedef priority_queue<int> pq;
int StrToInt(string);
string IntToStr(int);
string maze[13];
int dx[4] = {1, -1, 0, 0};
int dy[4] = {0, 0, 1, -1};

void bfs(int x, int y){
	maze[y][x] = '0';
	rep(i, 4){
		int nx = x + dx[i];
		int ny = y + dy[i];
		if(nx >= 0 && nx <= 12 && ny >= 0 && ny <= 12 && maze[ny][nx] == '1'){
			maze[ny][nx] = '0';
			bfs(nx, ny);
		}
	}
}

int main(void){
	int w, h;
	while(cin >> maze[0]){
		rep(i, 11){
			cin >> maze[i+1];
		}
		int cnt = 0;
		rep(i, 12){
			rep(j, 12){
				if(maze[i][j] == '1'){
					bfs(j, i);
					cnt++;
				}
			}
		}
		FIN(cnt);
	return 0;
}



int StrToInt(string s){
	stringstream ss;
	ss << s;
	int val;
	ss >> val;
	return val;
}
string IntToStr(int i){
	stringstream ss;
	ss << i;
	return ss.str();
}

Compiler output:
a.cc: In function 'int main()':
a.cc:62:23: error: a function-definition is not allowed here before '{' token
   62 | int StrToInt(string s){
      |                       ^
a.cc:69:23: error: a function-definition is not allowed here before '{' token
   69 | string IntToStr(int i){
      |                       ^
a.cc:73:2: error: expected '}' at end of input
   73 | }
      |  ^
a.cc:41:15: note: to match this '{'
   41 | int main(void){
      |               ^
Language: C++

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

char ma[12][12];
bool vi[12][12];
int mv[4][2]={{0,1},{0,-1},{1,0},{-1,0}};

void dfs(int x, int y){
    vi[y][x]=1;
    for(int i=0;i<4;i++){
        int nx=x+mv[i][0],ny=y+mv[i][1];
        if(ny>=0&&nx>=0&&ny<12&&nx<12&&(!vi[ny][nx])&&(ma[ny][nx]=='1'))
            dfs(nx,ny);
    }
}

int main(){
    
    while(cin>>ma[0][0]){
        for(int i=0;i<12;i++){
            for(int j=0;j<12;j++){
                if(!i&&!j)continue;
                cin>>ma[i][j];
            }
        }
        int co=0;
        memset(vi, 0, sizeof(vi));
        for(int i=0;i<12;i++){
            for(int j=0;j<12;j++){
                if(ma[i][j]=='1'&&!vi[i][j]){
                    co++;
                    dfs(j,i);
                }
            }
        }
        cout<<co<<endl;
    }
    
}

Compiler output:
a.cc: In function 'int main()':
a.cc:29:9: error: 'memset' was not declared in this scope
   29 |         memset(vi, 0, sizeof(vi));
      |         ^~~~~~
a.cc:3:1: note: 'memset' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>'
    2 | #include<vector>
  +++ |+#include <cstring>
    3 | #include<string>
Language: C++

#include<stdio.h>
#include<iostream>
#include<string>
#include<vector>
#include<math.h>


#define CI cin >>
#define CO cout <<
#define E << endl;
#define F(i,max) (for(int i = 0;i < max;++i))

using namespace std;

char board[14][14];
int vvv = 0;

int JudgeSurround(int x, int y) {
	if (board[x][y] == '0') {
		return vvv;
	}

	if (board[x][y] == '1') {
		board[x][y] = 0;
		vvv = 1;
		JudgeSurround(x + 1, y);
		JudgeSurround(x, y + 1);
		JudgeSurround(x - 1, y);
		JudgeSurround(x, y - 1);
		return vvv;
	}
}


int main(void) {
	int count = 0;
	bool flag = false;

	vector<int> answer;


	for (int i = 0; i < 14; ++i) {
		for (int j = 0; j < 14; ++j) {
			board[i][j] = 0;
		}
	}


	while (true) {
		count = 0;

		for (int i = 1; i < 13; ++i) {
			for (int j = 1; j < 13; ++j) {
				if (!(CI board[i][j])) {
					flag = true;
				}
			}
		}

		for (int i = 1; i < 13; ++i) {
			for (int j = 1; j < 13; ++j) {
				if (vvv = 0, JudgeSurround(i, j) == 1) {
					count++;
				}
			}
		}

		answer.push_back(count);
		if (flag) {
			break
		}
	}

	for (int i = 0; i < answer.size(); ++i) {
		CO answer[i] E
	}
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:70:30: error: expected ';' before '}' token
   70 |                         break
      |                              ^
      |                              ;
   71 |                 }
      |                 ~             
a.cc: In function 'int JudgeSurround(int, int)':
a.cc:32:1: warning: control reaches end of non-void function [-Wreturn-type]
   32 | }
      | ^
Language: C++

/*#include<map>
#include<list>
#include<cmath>
#include<stack>
#include<string>
#include<vector>
#include<iostream>
#include<algorithm>
using namespace std;

int A[10] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 };
int cunt = 0;

void depth(int n, int s, int i){
	
	if (n == 0 && s == 0){
		cunt++;
		return;
	}
	else if (n == 0) return;
	else if (s < 0) return;
	else if (i == 10) return;


	depth(n - 1, s - A[i],i+1);
	depth(n, s, i+1);

}

int main(){
	int n, s;
	while (cin >> n >> s){
		if (n == 0 && s == 0) break;
		depth(n, s, 0);
		cout << cunt << endl;
		cunt = 0;
	}
	return 0;
}
*/
#include<map>
#include<list>
#include<stack>
#include<queue>
#include<cmath>
#include<string>
#include<stdio.h>
#include<iostream>
#include<algorithm>
using namespace std;

int tmap[12][12];

void Terrain(int i,int l){

	if (i<0 || i>11 || l<0 || i>11 || tmap[i][l] == 0){
		return;
	}
	tmap[i][l] = 0;

	Terrain(i + 1, l);
	Terrain(i - 1, l);
	Terrain(i, l + 1);
	Terrain(i, l - 1);

}

int main(){
	int cunt = 0;
	for (int c = 0; c < 3; c++){
		for (int i = 0; i < 12; i++){
			for (int l = 0; l < 12; l++){
				scanf_s("%1d", &tmap[i][l]);
			}
		}
		for (int i = 0; i < 12; i++){
			for (int l = 0; l < 12; l++){
				if (tmap[i][l] == 1){
					Terrain(i, l);
					cunt++;
				}
			}
		}
		cout << cunt << endl; 
		cunt = 0;
	}
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:73:33: error: 'scanf_s' was not declared in this scope; did you mean 'scanf'?
   73 |                                 scanf_s("%1d", &tmap[i][l]);
      |                                 ^~~~~~~
      |                                 scanf
Language: C++

#include<map>
#include<list>
#include<stack>
#include<queue>
#include<cmath>
#include<string>
#include<stdio.h>
#include<iostream>
#include<algorithm>
using namespace std;

int tmap[12][12];

void Terrain(int i,int l){

	if (i<0 || i>11 || l<0 || i>11 || tmap[i][l] == 0){
		return;
	}
	tmap[i][l] = 0;

	Terrain(i + 1, l);
	Terrain(i - 1, l);
	Terrain(i, l + 1);
	Terrain(i, l - 1);

}

int main(){
	int cunt = 0;
	for (int c = 0; c < 3; c++){
		for (int i = 0; i < 12; i++){
			for (int l = 0; l < 12; l++){
				scanf_s("%1d", &tmap[i][l]);
			}
		}
		for (int i = 0; i < 12; i++){
			for (int l = 0; l < 12; l++){
				if (tmap[i][l] == 1){
					Terrain(i, l);
					cunt++;
				}
			}
		}
		cout << cunt << endl; 
		cunt = 0;
	}
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:33:33: error: 'scanf_s' was not declared in this scope; did you mean 'scanf'?
   33 |                                 scanf_s("%1d", &tmap[i][l]);
      |                                 ^~~~~~~
      |                                 scanf
Language: C++

#include<map>
#include<list>
#include<stack>
#include<queue>
#include<cmath>
#include<string>
#include<stdio.h>
#include<iostream>
#include<algorithm>
using namespace std;

int tmap[12][12];

void Terrain(int i,int l){

	if (i<0 || i>11 || l<0 || i>11 || tmap[i][l] == 0){
		return;
	}
	tmap[i][l] = 0;

	Terrain(i + 1, l);
	Terrain(i - 1, l);
	Terrain(i, l + 1);
	Terrain(i, l - 1);

}

int main(){
	int cunt = 0;
	while (1){
		for (int i = 0; i < 12; i++){
			for (int l = 0; l < 12; l++){
				if (scanf_s("%1d", &tmap[i][l]) == EOF) return 0;
			}
		}
		for (int i = 0; i < 12; i++){
			for (int l = 0; l < 12; l++){
				if (tmap[i][l] == 1){
					Terrain(i, l);
					cunt++;
				}
			}
		}
		cout << cunt << endl;
		cunt = 0;
	}
	
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:33:37: error: 'scanf_s' was not declared in this scope; did you mean 'scanf'?
   33 |                                 if (scanf_s("%1d", &tmap[i][l]) == EOF) return 0;
      |                                     ^~~~~~~
      |                                     scanf
Language: C++

#include<map>
#include<list>
#include<stack>
#include<queue>
#include<cmath>
#include<string>
#include<stdio.h>
#include<iostream>
#include<algorithm>
#include<conio.h>
using namespace std;

int tmap[12][12];

void Terrain(int i,int l){

	if (i<0 || i>11 || l<0 || i>11 || tmap[i][l] == 0){
		return;
	}
	tmap[i][l] = 0;

	Terrain(i + 1, l);
	Terrain(i - 1, l);
	Terrain(i, l + 1);
	Terrain(i, l - 1);

}
int a;
int main(){
	int cunt = 0;
	while (1){
		for (int i = 0; i < 12; i++){
			for (int l = 0; l < 12; l++){
				scanf_s("%1d", &tmap[i][l])
			}
		}
		for (int i = 0; i < 12; i++){
			for (int l = 0; l < 12; l++){
				if (tmap[i][l] == 1){
					Terrain(i, l);
					cunt++;
				}
			}
		}
		cout << cunt << endl;
		cunt = 0;
	}
	
	return 0;
}

Compiler output:
a.cc:10:9: fatal error: conio.h: No such file or directory
   10 | #include<conio.h>
      |         ^~~~~~~~~
compilation terminated.