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

a[4],b[4];main(){int i,j,h,l;for(;~scanf("%d%d%d%d%d%d%d%d",a,a+1,a+2,a+3,b,b+1,b+2,b+3);printf("%d %d\n",h,l))for(i=h=l=0;i<4;i++)for(j=0;j<4;j++)if(a[i]==b[j])i==j?h++:l++;exit(0);}

Compiler output:
a.cc:1:1: error: 'a' does not name a type
    1 | a[4],b[4];main(){int i,j,h,l;for(;~scanf("%d%d%d%d%d%d%d%d",a,a+1,a+2,a+3,b,b+1,b+2,b+3);printf("%d %d\n",h,l))for(i=h=l=0;i<4;i++)for(j=0;j<4;j++)if(a[i]==b[j])i==j?h++:l++;exit(0);}
      | ^
a.cc:1:11: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
    1 | a[4],b[4];main(){int i,j,h,l;for(;~scanf("%d%d%d%d%d%d%d%d",a,a+1,a+2,a+3,b,b+1,b+2,b+3);printf("%d %d\n",h,l))for(i=h=l=0;i<4;i++)for(j=0;j<4;j++)if(a[i]==b[j])i==j?h++:l++;exit(0);}
      |           ^~~~
a.cc: In function 'int main()':
a.cc:1:61: error: 'a' was not declared in this scope
    1 | a[4],b[4];main(){int i,j,h,l;for(;~scanf("%d%d%d%d%d%d%d%d",a,a+1,a+2,a+3,b,b+1,b+2,b+3);printf("%d %d\n",h,l))for(i=h=l=0;i<4;i++)for(j=0;j<4;j++)if(a[i]==b[j])i==j?h++:l++;exit(0);}
      |                                                             ^
a.cc:1:75: error: 'b' was not declared in this scope
    1 | a[4],b[4];main(){int i,j,h,l;for(;~scanf("%d%d%d%d%d%d%d%d",a,a+1,a+2,a+3,b,b+1,b+2,b+3);printf("%d %d\n",h,l))for(i=h=l=0;i<4;i++)for(j=0;j<4;j++)if(a[i]==b[j])i==j?h++:l++;exit(0);}
      |                                                                           ^
a.cc:1:36: error: 'scanf' was not declared in this scope
    1 | a[4],b[4];main(){int i,j,h,l;for(;~scanf("%d%d%d%d%d%d%d%d",a,a+1,a+2,a+3,b,b+1,b+2,b+3);printf("%d %d\n",h,l))for(i=h=l=0;i<4;i++)for(j=0;j<4;j++)if(a[i]==b[j])i==j?h++:l++;exit(0);}
      |                                    ^~~~~
a.cc:1:90: error: 'printf' was not declared in this scope
    1 | a[4],b[4];main(){int i,j,h,l;for(;~scanf("%d%d%d%d%d%d%d%d",a,a+1,a+2,a+3,b,b+1,b+2,b+3);printf("%d %d\n",h,l))for(i=h=l=0;i<4;i++)for(j=0;j<4;j++)if(a[i]==b[j])i==j?h++:l++;exit(0);}
      |                                                                                          ^~~~~~
a.cc:1:1: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
  +++ |+#include <cstdio>
    1 | a[4],b[4];main(){int i,j,h,l;for(;~scanf("%d%d%d%d%d%d%d%d",a,a+1,a+2,a+3,b,b+1,b+2,b+3);printf("%d %d\n",h,l))for(i=h=l=0;i<4;i++)for(j=0;j<4;j++)if(a[i]==b[j])i==j?h++:l++;exit(0);}
a.cc:1:175: error: 'exit' was not declared in this scope
    1 | a[4],b[4];main(){int i,j,h,l;for(;~scanf("%d%d%d%d%d%d%d%d",a,a+1,a+2,a+3,b,b+1,b+2,b+3);printf("%d %d\n",h,l))for(i=h=l=0;i<4;i++)for(j=0;j<4;j++)if(a[i]==b[j])i==j?h++:l++;exit(0);}
      |                                                                                                                                                                               ^~~~
a.cc:1:1: note: 'exit' is defined in header '<cstdlib>'; this is probably fixable by adding '#include <cstdlib>'
  +++ |+#include <cstdlib>
    1 | a[4],b[4];main(){int i,j,h,l;for(;~scanf("%d%d%d%d%d%d%d%d",a,a+1,a+2,a+3,b,b+1,b+2,b+3);printf("%d %d\n",h,l))for(i=h=l=0;i<4;i++)for(j=0;j<4;j++)if(a[i]==b[j])i==j?h++:l++;exit(0);}
Language: C++

#include<iostream>
#include<string>
#include<cstdio>
#include<cstring>
#include<algorithm>
using namespace std;
int main(void){
    while(cin<<n){

	int a,b,c,d;
	cin>>a>>b>>c>>d;
	int w,x,y,z;
	int hit=0,blow=0;
	cin>>w>>x>>y>>z;
	if(w==a)hit++;
	else if(w==b||w==c||w==d)blow++;
	if(x==b)hit++;
	else if(x==a||x==c||x==d)blow++;
	if(y==c)hit++;
	else if(y==b||y==a||y==d)blow++;
	if(z==d)hit++;
	else if(z==b||z==c||z==a)blow++;
	cout<<hit<<" "<<blow<<endl;
    }


	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:16: error: 'n' was not declared in this scope
    8 |     while(cin<<n){
      |                ^
Language: C++

#include <iostream>
using namespace std;

int main()
{
	int i,j;
	int a[4];
	int b[4];
	while(1){

		int hit =  0;
		int blow = 0;
		if(cin.eof())return;
		for(i=0;i<4;++i)cin>>a[i];
		for(i=0;i<4;++i)cin>>b[i];

		for(i=0;i<4;++i){
			for(j=0;j<4;++j){
				if(b[i] == a[j]){
					(j == i) ? ++hit : ++blow;
				}
			}
		}
		cout << hit << ' ' << blow << endl;
	}
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:30: error: return-statement with no value, in function returning 'int' [-fpermissive]
   13 |                 if(cin.eof())return;
      |                              ^~~~~~
Language: C++

include <iostream>

using namespace std;

int main() {
  int a[4], b[4];

  while(cin >> a[0] >> a[1] >> a[2] >> a[3]) {
    cin >> b[0] >> b[1] >> b[2] >> b[3];
    int hit=0, blow=0;
    bool checked[4][4]; for(int i=0;i<4;i++)for(int j=0;j<4;j++)checked[i][j]=false;
    
    for(int i = 0; i < 4; i++) {
      for(int j = i; j < 4; j++) {
	if(checked[i][j]) continue;
	
	if(i == j && a[i] == b[j]) {
	  hit++;
	  checked[i][j] = true; checked[j][i] = true;
	}
	else if(a[i] == b[j]) {
	  blow++;
	  checked[i][j] = true; checked[j][i] = true;
	}
      }
    }

    cout << hit << " " << blow << endl;
  }
  
  return 0;
}

Compiler output:
a.cc:1:1: error: 'include' does not name a type
    1 | include <iostream>
      | ^~~~~~~
a.cc: In function 'int main()':
a.cc:8:9: error: 'cin' was not declared in this scope
    8 |   while(cin >> a[0] >> a[1] >> a[2] >> a[3]) {
      |         ^~~
a.cc:28:5: error: 'cout' was not declared in this scope
   28 |     cout << hit << " " << blow << endl;
      |     ^~~~
a.cc:28:35: error: 'endl' was not declared in this scope
   28 |     cout << hit << " " << blow << endl;
      |                                   ^~~~
Language: C++

#include <iostream>
using namespace std;

int main(){
	int a[4], b[4];
    while(cin >> a[0] >> a[1] >> a[2] >> a[3]　>> b[0] >> b[1] >> b[2] >> b[3]){
        int hit = 0, blow = 0;
        for(int i = 0; i < 4; i++){
            for(int j = 0; j < 4; j++){
                if(a[i] == b[j]){
                    if(i == j){
                        hit++;
                    }else{
                        blow++;
                    }
                }
            }
        }
        cout << hit << " " << blow << endl;
    }

    return 0;
}

Compiler output:
a.cc:6:46: error: extended character 　 is not valid in an identifier
    6 |     while(cin >> a[0] >> a[1] >> a[2] >> a[3]　>> b[0] >> b[1] >> b[2] >> b[3]){
      |                                              ^
a.cc: In function 'int main()':
a.cc:6:46: error: expected ')' before '\U00003000'
    6 |     while(cin >> a[0] >> a[1] >> a[2] >> a[3]　>> b[0] >> b[1] >> b[2] >> b[3]){
      |          ~                                   ^~
      |                                              )
a.cc:6:46: error: '\U00003000' was not declared in this scope
    6 |     while(cin >> a[0] >> a[1] >> a[2] >> a[3]　>> b[0] >> b[1] >> b[2] >> b[3]){
      |                                              ^~
Language: C++

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

int main()
{
    double num, t;
	int a[4],b[4];
	int hit, brow;
	while ( cin >> a[0] >> a[1] >> a[2] >> a[3]  ) {
			cin >> b[0] >> b[1] >> b[2] >> b[3];
			
			hit = 0; brow = 0;
			for( int i = 0; i < 4; i++ ) {
				for( int j = 0; j < 4; j++ ) {
					if( b[i] == a[j] ) {
						if( i == j ) {
							hit++;
						}
						else  {
							brow++;
						}
					}
				}			
			}
			
			cout << hit << << " " << brow << endl;

	}

        return 0;
}
  

Compiler output:
a.cc: In function 'int main()':
a.cc:27:40: error: expected primary-expression before '<<' token
   27 |                         cout << hit << << " " << brow << endl;
      |                                        ^~
Language: C++

#include <iostream>
#include <iomanip>
#include <cassert>
#include <algorithm>
#include <functional>
#include <vector>
#include <string>
#include <cstring>
#include <stack>
#include <queue>
#include <map>
#include <bitset>
#include <sstream>
#include <istream>
#include <cmath>
#include <cstdio>

using namespace std;

#define vci vector<int>
#define vcs vector<string>
#define pb push_back
#define sz size()
#define mapci map<char, int>
#define mapsi map<string, int>
#define all(x) x.begin(), x.end()

#define for_(i, a, b) for (int i=(int)a; i<(int)b; i++)
#define for_d(i, a, b) for (int i=(int)a-1; i>=b; i--)
#define for_r(i, a, b, c) for (int i=(int)a; i<(int)b; i += c)
#define for_dr(i, a, b, c) for (int i=(int)a-1; i>=b; i -= c)
#define FOR(i,c) for(__typeof((c).begin())i=(c).begin();i!=(c).end();++i)

#define vcitr vector<int>::iterator
#define vcsitr vector<string>::iterator
#define mapcitr map<char, int>::iterator
#define mapsitr map<string, int>::iterator

typedef long long ll;

const int iINF = 2147483647;
const ll lINF = 9223372036854775807;

template <class T> inline void dbg(T t) { cout << t << endl; }

int main() {
	vci a(4), b(4);
	bool use[10] = { 0 };
	
	while (~scanf("%d %d %d %d %d %d %d %d", &a[0], &a[1], &a[2], &a[3], &b[0], &b[1], &b[2], &b[3]) {		
		for_(i, 0, 4) use[ a[i] ] = 1;
		
		int hit = 0, blow = 0;
		for_(i, 0, 4) {
			if (a[i] == b[i]) hit++;
			else if (use[ b[i] ]) blow++;
		}
		cout << hit << " " << blow << endl;
	}
	
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:50:105: error: expected ')' before '{' token
   50 |         while (~scanf("%d %d %d %d %d %d %d %d", &a[0], &a[1], &a[2], &a[3], &b[0], &b[1], &b[2], &b[3]) {
      |               ~                                                                                         ^~
      |                                                                                                         )
Language: C++

#include <iostream>
#include <vector>
 
int get_hit(std::vector<u_int> *A, std::vector<u_int> *B)
{
    u_int hit = 0;
    for(u_int i = 0; i < A -> size(); ++i)
        if(A -> at(i) == B -> at(i))
            ++hit;
             
    return hit;
}
 
int get_blow(std::vector<u_int> *A, std::vector<u_int> *B)
{
    u_int blow = 0;
    for(u_int i = 0; i < A -> size(); ++i){
        for(u_int j = 0; j < B -> size(); ++j){
            if(A -> at(i) == B -> at(j)){
                if(i != j)
                    ++blow;
                break;
            }
        }
    }
             
    return blow;
}
 
int main()
{
    const u_int number = 4;
    std::vector<u_int> A;
    std::vector<u_int> B;
    A.reserve(number);
    B.reserve(number);
     
    std::array<u_int, number> array;
    bool flag = true;
    while(std::cin >> array[0] >> array[1] >> array[2] >> array[3]){
        if(flag){
            A.clear();
            B.clear();
            for(u_int i = 0; i < number; ++i)
                A.push_back(array.at(i));
            flag = !flag;
        }else{
            for(u_int i = 0; i < number; ++i)
                B.push_back(array.at(i));
            std::cout << get_hit(&A, &B) << " " << get_blow(&A, &B) << std::endl;
            flag = !flag;
        }
    }
         
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:38:31: error: aggregate 'std::array<unsigned int, 4> array' has incomplete type and cannot be defined
   38 |     std::array<u_int, number> array;
      |                               ^~~~~
a.cc:3:1: note: 'std::array' is defined in header '<array>'; this is probably fixable by adding '#include <array>'
    2 | #include <vector>
  +++ |+#include <array>
    3 |
Language: Java

import java.util.Scanner;
public class DroppingInc {
	public static void main(String[] args) {
		Scanner scanner = new Scanner(System.in);
				scanner.useDelimiter(",|\\n");
		int x,y,plotSize;
		int paper[][] = new int[14][14];
		int zeroCellNum = 0;
		int mostDark = 0;
		while(scanner.hasNext()){
			x = 2 + scanner.nextInt();
			y = 2 + scanner.nextInt();
			plotSize = scanner.nextInt();
			System.out.println(x + " " + y + " " + plotSize);
			paper[x][y]++;
			paper[x+1][y]++;
			paper[x-1][y]++;
			paper[x][y+1]++;
			paper[x][y-1]++;
			if(plotSize >= 2){
				paper[x+1][y+1]++;
				paper[x+1][y-1]++;
				paper[x-1][y+1]++;
				paper[x-1][y-1]++;
			}
			if(plotSize == 3){
				paper[x+2][y]++;
				paper[x-2][y]++;
				paper[x][y+2]++;
				paper[x][y-2]++;
			}
		}
		for(int i=2; i<12; i++){
			for(int j=2; j<12; j++){
				if(paper[i][j] == 0){
					zeroCellNum++;
					System.out.println("i=" + i + " j=" + j);
				}
				if(paper[i][j] > mostDark){
					mostDark = paper[i][j];
				}
			}
		}
		System.out.println(zeroCellNum);
		System.out.println(mostDark);
	}
}

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


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

public class V00026 {

	private static BufferedReader br;
	private static int[][] squares;

	static {
		br = new BufferedReader(new InputStreamReader(System.in));
		squares = new int[10][10];
	}

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

		String line;
		int x, y, size, blind = 100, max = 0;

		while ((line = br.readLine()) != null && !line.isEmpty()) {
			StringTokenizer st = new StringTokenizer(line, ",");

			while (st.hasMoreTokens()) {
				x = Integer.parseInt(st.nextToken());
				y = Integer.parseInt(st.nextToken());
				size = Integer.parseInt(st.nextToken());

				squares[x][y]++;
				switch (size) {
				case 1:
					set1(x, y);
					break;
				case 2:
					set1(x, y);
					set2(x, y);
					break;
				case 3:
					set1(x, y);
					set2(x, y);
					set3(x, y);
				default:
					break;
				}
			}
		}
		for (int[] square : squares) {
			for (int value : square) {
				if (value != 0) {
					blind--;
				}
				if (max < value) {
					max = value;
				}
			}
		}
		System.out.println(blind + "\n" + max);
	}

	private static void set1(int x, int y) {
		if (x > 0) {
			squares[x - 1][y]++;
		}
		if (x < 9) {
			squares[x + 1][y]++;
		}
		if (y > 0) {
			squares[x][y - 1]++;
		}
		if (y < 9) {
			squares[x][y + 1]++;
		}
	}

	private static void set2(int x, int y) {
		if (x > 0 && y > 0) {
			squares[x - 1][y - 1]++;
		}
		if (x > 0 && y < 9) {
			squares[x - 1][y + 1]++;
		}
		if (x < 9 && y > 0) {
			squares[x + 1][y - 1]++;
		}
		if (x < 9 && y < 10) {
			squares[x + 1][y + 1]++;
		}
	}

	private static void set3(int x, int y) {
		if (x - 1 > 0) {
			squares[x - 2][y]++;
		}
		if (x + 1 < 9) {
			squares[x + 2][y]++;
		}
		if (y - 1 > 0) {
			squares[x][y - 2]++;
		}
		if (y + 1 < 9) {
			squares[x][y + 2]++;
		}
	}
}

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

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

public class Question2 {

	public static void main(String[] args) {
		int field[][] = setField();
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String input = null;
		while (true) {
			try {
				input = br.readLine();
			} catch (IOException e) {
				e.printStackTrace();
			}
			if (input == null || input.isEmpty()) {
				break;
			}
			;
			String[] inputs = input.split(",");
			drop(field, Integer.parseInt(inputs[0]),
					Integer.parseInt(inputs[1]),
					Integer.parseInt(inputs[2]));
		}
		amountOfWhite(field);
		maxDepth(field);

	}

	private static int[][] setField() {
		int field[][] = new int[10][10];
		for (int i = 0; i < 10; i++) {
			for (int j = 0; j < 10; j++) {
				field[i][j] = 0;
			}
		}
		return field;
	}

	private static void drop(int[][] field, int x, int y, int size) {
		switch (size) {
		case 1:
			dropSmall(field, x, y);
			break;

		case 2:
			dropMiddle(field, x, y);
			break;
		case 3:
			dropLarge(field, x, y);
			break;
		}

	}

	private static void dropLarge(int[][] field, int x, int y) {

		dropMiddle(field, x, y);

		int dropX[] = { -2, 0, 2, 0 };
		int dropY[] = { 0, -2, 0, 2 };

		for (int i = 0; i < dropX.length; i++) {
			dropping(field, x + dropX[i], y + dropY[i]);
		}
	}

	private static void dropMiddle(int[][] field, int x, int y) {

		dropSmall(field, x, y);

		int dropX[] = { -1, -1, 1, 1 };
		int dropY[] = { 1, -1, 1, -1 };

		for (int i = 0; i < dropX.length; i++) {
			dropping(field, x + dropX[i], y + dropY[i]);
		}
	}

	private static void dropSmall(int[][] field, int x, int y) {
		int dropX[] = { -1, 0, 1, 0 };
		int dropY[] = { 0, -1, 0, 1 };
		dropping(field, x, y);

		for (int i = 0; i < dropX.length; i++) {
			dropping(field, x + dropX[i], y + dropY[i]);
		}
	}

	private static int[][] dropping(int[][] field, int x, int y) {
		if (0 <= x || x < 10 || 0 <= y || y < 10) {
			field[x][y] += 1;
		}
		return field;
	}

	private static void amountOfWhite(int[][] field) {
		int count = 0;
		for (int i = 0; i < 10; i++) {
			for (int j = 0; j < 10; j++) {
				if (field[i][j] == 0) {
					count++;
				}
			}
		}
		System.out.println(count);
	}

	private static void maxDepth(int[][] field) {
		int maxDepth = 0;
		for (int i = 0; i < 10; i++) {
			for (int j = 0; j < 10; j++) {
				if (maxDepth < field[i][j]) {
					maxDepth = field[i][j];
				}
			}
		}
		System.out.println(maxDepth);
	}
}

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

package volume0;

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

public class MAIN {

	// 10*10????????????????????????????????´???????????????14*14?????????????????????
	private static int[][] square = new int[14][14];
	private static int SMALL_INK = 1;
	private static int LARGE_INK = 3;
	private static int ALIGNMENT = 2;

	/**
	 * ?¨??????\??????????????????????????????????????????????????????????????£????????????????????????????????????
	 * ??????????????\??????????????????????????????????????????????????§????????????????????°??¨???????????????????????????????????????????????????
	 *
	 * @param args
	 * @throws IOException
	 */
	public static void main(String[] args) throws IOException {

		int mostDeep = 0;
		int whiteTiles = 0;

		String[] inputString;
		String readLine = "";

		Scanner input = new Scanner(System.in);

		while (input.hasNext()) {

			readLine = input.next();

			// ???????????£????????????????????????????????????
			inputString = readLine.split(",", 0);

			inkPoint(Integer.parseInt(inputString[0]) + ALIGNMENT,
					Integer.parseInt(inputString[1]) + ALIGNMENT,
					Integer.parseInt(inputString[2]));

		}

		// 10*10?????????????????°?????????????????????????????????????????°??¨???????????????????????????????????????
		for (int i = 2; i < 12; i++) {
			for (int j = 2; j < 12; j++) {
				if (square[i][j] == 0) {
					whiteTiles++;
				} else {
					if (square[i][j] > mostDeep) {
						mostDeep = square[i][j];
					}
				}
			}
		}
		System.out.println(whiteTiles + "\r\n" + mostDeep);
	}

	/**
	 * square???2???12??????????????????????????¨???
	 *
	 * @param x
	 * @param y
	 * @param inkSize
	 */
	static void inkPoint(int x, int y, int inkSize) {

		square[x][y - 1]++;
		square[x - 1][y]++;
		square[x][y]++;
		square[x + 1][y]++;
		square[x][y + 1]++;

		if (inkSize != SMALL_INK) {
			square[x - 1][y - 1]++;
			square[x + 1][y - 1]++;
			square[x - 1][y + 1]++;
			square[x + 1][y + 1]++;
		}

		if (inkSize == LARGE_INK) {
			square[x][y - 2]++;
			square[x - 2][y]++;
			square[x + 2][y]++;
			square[x][y + 2]++;
		}
	}
}

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

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
 
public class Main {
static int[][] math;
static final int MATH_LENGTH = 10;
 
public static void main(String[] args) throws IOException {
	math = new int[10][10];
int scale;
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
String inputStr = null;
while (true) {
inputStr = br.readLine();
if (inputStr == null || inputStr.isEmpty()) {
break;
}
string[] inputSplitStr = inputStr.split(",");   

switch (Integer.valueOf(inputSplitStr[2])) {
    case 1: //インキ滴「小」
setSmallInk(Integer.valueOf(inputSplitStr[0]), Integer.valueOf(inputSplitStr[1]));
break;
    case 2: //インキ滴「中」
setMediumInk(Integer.valueOf(inputSplitStr[0]), Integer.valueOf(inputSplitStr[1]));
break;
    case 3: //インキ滴「大」
setLargeInk(Integer.valueOf(inputSplitStr[0]), Integer.valueOf(inputSplitStr[1]));
break;
}
}
int whiteNumber = 0;
int mostNumber = 0;
for (int i = 0; i < MATH_LENGTH; i++) {
    for (int j = 0; j < MATH_LENGTH; j++) {
if (math[i][j] == 0) {
    whiteNumber++;
}
if (mostNumber < math[i][j]) {
    mostNumber = math[i][j];
}
}
}
System.out.println(whiteNumber);
System.out.println(mostNumber);
}
 
private static void setSmallInk(int x, int y) {
math[x][y]++;
if ((x - 1) >= 0) {
    math[x - 1][y]++;
}
if ((y - 1) >= 0) {
    math[x][y - 1]++;
}
if (MATH_LENGTH > (x + 1)) {
    math[x + 1][y]++;
}
if (MATH_LENGTH > (y + 1)) {
    math[x][y + 1]++;
}
}
private static void setMediumInk(int x, int y) {
math[x][y]++;
if ((x - 1) >= 0) {
    math[x - 1][y]++;
if ((y - 1) >= 0) {
math[x - 1][y - 1]++;
}
if (MATH_LENGTH > (y + 1)) {
math[x - 1][y + 1]++;
}
}
if ((y - 1) >= 0) {
    math[x][y - 1]++;
}
if (MATH_LENGTH > (y + 1)) {
    math[x][y + 1]++;
}
if (MATH_LENGTH > (x + 1)) {
    math[x + 1][y]++;
if ((y - 1) >= 0) {
math[x + 1][y - 1]++;
}
if (MATH_LENGTH > (y + 1)) {
math[x + 1][y + 1]++;
}
}
}
private static void setLargeInk(int x, int y) {
math[x][y]++;
if ((x - 2) >= 0) {
    math[x - 2][y]++;
}
if (MATH_LENGTH > (x + 2)) {
    math[x + 2][y]++;
}
if ((y - 2) >= 0) {
    math[x][y - 2]++;
}
if (MATH_LENGTH > (y + 2)) {
    math[x][y + 2]++;
}
if ((x - 1) >= 0) {
    math[x - 1][y]++;
if ((y - 1) >= 0) {
math[x - 1][y - 1]++;
}
if (MATH_LENGTH > (y + 1)) {
math[x - 1][y + 1]++;
}
}
if ((y - 1) >= 0) {
    math[x][y - 1]++;
}
if (MATH_LENGTH > (y + 1)) {
    math[x][y + 1]++;
}
if (MATH_LENGTH > (x + 1)) {
    math[x + 1][y]++;
if ((y - 1) >= 0) {
math[x + 1][y - 1]++;
}
if (MATH_LENGTH > (y + 1)) {
math[x + 1][y + 1]++;
}
}
}
}

Compiler output:
Main.java:19: error: cannot find symbol
string[] inputSplitStr = inputStr.split(",");   
^
  symbol:   class string
  location: class Main
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));
int[][] di=new int[10][10];
int max,count=0;
String str;
while((str=readLine())!=null){
String[] s=str.split(",");
int x=Integer.parseInt(s[0]);
int y=Integer.parseInt(s[1]);
int s=Integer.parseInt(s[2]);
drop(x,y,s,di);
}
for(int i=0;i<10;i++){
for(int j=0;j<10;j++){
max=Math.max(max,di[i][j]);
if(di[i][j]==0){
count++;
}
}
}
System.out.println(count);
System.out.println(max);
}
static void drop(int x,int y,int s,int[][] di){
if(s==1||s==2||s==3){
di[x][y]++;
int[] sx={1,0,-1,0};
int[] sy={0,1,0,-1};
for(int i=0;i<sx.length;i++){
if(x+sx[i]>=0&&x+sx[i]<10&&y+sy[i]>=0&&y+sy[i]<10){
di[x+sx[i]][y+sy[i]]++;
}
}
if(s==2||s==3){
int[] mx={-1,-1,1,1};
int[] my={-1,1,-1,1};
for(int i=0;i<mx.length;i++){
if(x+mx[i]>=0&&x+mx[i]<10&&y+my[i]>=0&&y+my[i]<10){
di[x+mx[i]][y+my[i]]++;
}
}
if(s==3){
int[] lx={-2,0,2,0};
int[] ly={0,-2,0,2};
for(int i=0;i<lx.length;i++){
if(x+lx[i]>=0&&x+lx[i]<10&&y+ly[i]>=0&&y+ly[i]<10){
di[x+lx[i]][y+ly[i]]++;
}
}
}
}
}
}
}

Compiler output:
Main.java:9: error: cannot find symbol
while((str=readLine())!=null){
           ^
  symbol:   method readLine()
  location: class Main
Main.java:13: error: variable s is already defined in method main(String[])
int s=Integer.parseInt(s[2]);
    ^
Main.java:13: error: array required, but int found
int s=Integer.parseInt(s[2]);
                        ^
3 errors
Language: Java

import java.io.*;

class Main{
public static void main(String[] args) throws IOException{
BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
int[][] di=new int[10][10];
int max,count=0;
String str;
while((str=br.readLine())!=null){
String[] s=str.split(",");
int x=Integer.parseInt(s[0]);
int y=Integer.parseInt(s[1]);
int s=Integer.parseInt(s[2]);
drop(x,y,s,di);
}
for(int i=0;i<10;i++){
for(int j=0;j<10;j++){
max=Math.max(max,di[i][j]);
if(di[i][j]==0){
count++;
}
}
}
System.out.println(count);
System.out.println(max);
}
static void drop(int x,int y,int s,int[][] di){
if(s==1||s==2||s==3){
di[x][y]++;
int[] sx={1,0,-1,0};
int[] sy={0,1,0,-1};
for(int i=0;i<sx.length;i++){
if(x+sx[i]>=0&&x+sx[i]<10&&y+sy[i]>=0&&y+sy[i]<10){
di[x+sx[i]][y+sy[i]]++;
}
}
if(s==2||s==3){
int[] mx={-1,-1,1,1};
int[] my={-1,1,-1,1};
for(int i=0;i<mx.length;i++){
if(x+mx[i]>=0&&x+mx[i]<10&&y+my[i]>=0&&y+my[i]<10){
di[x+mx[i]][y+my[i]]++;
}
}
if(s==3){
int[] lx={-2,0,2,0};
int[] ly={0,-2,0,2};
for(int i=0;i<lx.length;i++){
if(x+lx[i]>=0&&x+lx[i]<10&&y+ly[i]>=0&&y+ly[i]<10){
di[x+lx[i]][y+ly[i]]++;
}
}
}
}
}
}
}

Compiler output:
Main.java:13: error: variable s is already defined in method main(String[])
int s=Integer.parseInt(s[2]);
    ^
Main.java:13: error: array required, but int found
int s=Integer.parseInt(s[2]);
                        ^
2 errors
Language: Java

import java.io.*;

class Main{
public static void main(String[] args) throws IOException{
BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
int[][] di=new int[10][10];
int max,count=0;
String str;
while((str=br.readLine())!=null){
String[] value=str.split(",");
int x=Integer.parseInt(value[0]);
int y=Integer.parseInt(value[1]);
int s=Integer.parseInt(value[2]);
drop(x,y,s,di);
}
for(int i=0;i<10;i++){
for(int j=0;j<10;j++){
max=Math.max(max,di[i][j]);
if(di[i][j]==0){
count++;
}
}
}
System.out.println(count);
System.out.println(max);
}
static void drop(int x,int y,int s,int[][] di){
if(s==1||s==2||s==3){
di[x][y]++;
int[] sx={1,0,-1,0};
int[] sy={0,1,0,-1};
for(int i=0;i<sx.length;i++){
if(x+sx[i]>=0&&x+sx[i]<10&&y+sy[i]>=0&&y+sy[i]<10){
di[x+sx[i]][y+sy[i]]++;
}
}
if(s==2||s==3){
int[] mx={-1,-1,1,1};
int[] my={-1,1,-1,1};
for(int i=0;i<mx.length;i++){
if(x+mx[i]>=0&&x+mx[i]<10&&y+my[i]>=0&&y+my[i]<10){
di[x+mx[i]][y+my[i]]++;
}
}
if(s==3){
int[] lx={-2,0,2,0};
int[] ly={0,-2,0,2};
for(int i=0;i<lx.length;i++){
if(x+lx[i]>=0&&x+lx[i]<10&&y+ly[i]>=0&&y+ly[i]<10){
di[x+lx[i]][y+ly[i]]++;
}
}
}
}
}
}
}

Compiler output:
Main.java:18: error: variable max might not have been initialized
max=Math.max(max,di[i][j]);
             ^
Main.java:25: error: variable max might not have been initialized
System.out.println(max);
                   ^
2 errors
Language: Java

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

public class check
{
	static int array[][]= new int[10][10];
	public static void main (String[] arg)throws IOException
	{
		BufferedReader input =new BufferedReader (new InputStreamReader (System.in));
		String line;
		StringTokenizer tokenizer1,tokenizer2;
		int a[] = new int[3];
		int max=0, sum=0;
		
		while ((line = input.readLine()) != null && !line.isEmpty()) {
			tokenizer1 = new StringTokenizer(line,",");
			for(int i=0;i<3;i++){
				a[i]=Integer.parseInt(tokenizer1.nextToken());
			}
			if(a[2]==1){
				small(a[0],a[1]);
			}
			if(a[2]==2){
				mid(a[0],a[1]);
			}
			if(a[2]==3){
				big(a[0],a[1]);
			}
		}
		for(int i=0;i<10;i++){
			for(int j=0;j<10;j++){			
				max=Math.max(max, array[i][j]);
				if(array[i][j]==0){
					sum++;	
				}
			}
		}
		System.out.println(sum);
		System.out.println(max);
	}
	public static void small (int a, int b){
		int a2,b2;
		for(int i=0;i<3;i++){
			a2=a+i-1;			
			if (a2 > -1 && a2<10 ){
				array[a2][b]++;							
			}
		}
		for(int i=0;i<3;i++){
			b2=b+i-1;			
			if (b2 > -1 && b2<10 ){
				array[a][b2]++;							
			}
		}
		array[a][b]--;
	}
	public static void mid (int a, int b){
		int a2,b2;
		for(int i=0;i<3;i++){
			a2=a+i-1;			
			for(int j=0;j<3;j++){
				b2=b+j-1;
				if (a2 > -1 && a2< 10 && b2 > -1 && b2 < 10){
					array[a2][b2]++;	
				}
			}
		}
	}
	public static void big (int a, int b){
		mid(a,b);
		int i=2;
		int a2,b2;
		a2=i+a;
		if (a2 > -1 && a2<10){
			array[a2][b]++;	
		}
		a2=-i+a;
		if (a2 > -1 && a2<10){
			array[a2][b]++;	
		}
		b2=i+b;
		if (b2 > -1 && b2<10){
			array[a][b2]++;	
		}
		b2=-i+b;
		if (b2 > -1 && b2<10){
			array[a][b2]++;	
		}
	}
}	

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

public class Main {

	static int paper[][] = new int[10][10];

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

		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String str = null;

		while ((str = br.readLine()) != null) {

			// ??\???????????????
			String[] input = str.split(",");

			// ??????????????????????????°??????????????????
			int x = Integer.parseInt(input[0]);
			int y = Integer.parseInt(input[1]);
			int size = Integer.parseInt(input[2]);

			// size?????§??????????????£???????????????????????????????????????

			switch (size) {
			case 1:
				small(x, y);
				break;

			case 2:
				medium(x, y);

			case 3:
				large(x, y);
			}

		}

		int clear = 0;
		int max = 0;

		// ????????????????????????????????¨1???????????????????????????
		for (int i = 0; i < 10; ++i) {
			for (int j = 0; j < 10; ++j) {

				// ???????????????????????????????????°??????
				if (paper[i][j] == 0) {
					clear++;
				}

				// 1???????????????
				if (paper[i][j] > max) {
					max = paper[i][j];
				}
			}
		}

		System.out.println(clear);
		System.out.println(max);

	}

	private static void small(int x, int y) {

		paper[x][y]++;

		// ??????????????????????????¨
		if (y != 0) {
			paper[x][y - 1]++;
		}

		// ??????????????????????????¨
		if (y != 9) {
			paper[x][y + 1]++;
		}

		// ??????????????????????????¨
		if (x != 0) {
			paper[x - 1][y]++;
		}

		// ??????????????????????????¨
		if (x != 9) {
			paper[x + 1][y]++;
		}

	}

	private static void medium(int x, int y) {
		small(x, y);

		// ???????????????????????????
		if (x >= 1 && y >= 1) {
			paper[x - 1][y - 1]++;
		}

		// ???????????????????????????
		if (x <= 8 && y >= 1) {
			paper[x + 1][y - 1]++;
		}

		// ???????????????????????????
		if (x >= 1 && y <= 8) {
			paper[x - 1][y + 1]++;
		}

		// ???????????????????????????
		if (x <= 8 && y <= 8) {
			paper[x + 1][y + 1]++;
		}
	}

	private static void large(int x, int y) {

		small(x, y);
		medium(x, y);

		// ???????????´???2??????
		if (x >= 2) {
			paper[x - 2][y]++;
		}

		// ???????????´???2??????
		if (x <= 7) {
			paper[x + 2][y]++;
		}

		// ???????????´???2??????
		if (y >= 2) {
			paper[x][y - 2]++;
		}

		// ???????????´???2??????
		if (y <= 7) {
			paper[x][y + 2]++;
		}

	}

}

Compiler output:
Main.java:5: error: cannot find symbol
	public static void main(String[] args) throws IOException {
	                                              ^
  symbol:   class IOException
  location: class Main
Main.java:7: error: cannot find symbol
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		^
  symbol:   class BufferedReader
  location: class Main
Main.java:7: error: cannot find symbol
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		                        ^
  symbol:   class BufferedReader
  location: class Main
Main.java:7: error: cannot find symbol
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		                                           ^
  symbol:   class InputStreamReader
  location: class Main
4 errors
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 count = 0;
			int max = 0;
			int[][] paper = new int[10][10];
			for(int i = 0; i < 10; i++){
				for(int j = 0; j < 10; j++){
					paper[i][j] = 0;
				}
			}
			int x = scan.nextInt();
			int y = scan.nextInt();
			int s = scan.nextInt();
			if(s == 1){
				paper[x-1][y] += 1;
				paper[x][y-1] += 1;
				paper[x][y] += 1;
				paper[x][y+1] += 1;
				paper[x+1][y] += 1;
			} else if(s == 2){
				paper[x-1][y-1] += 1;
				paper[x-1][y] += 1;
				paper[x-1][y+1] += 1;
				paper[x][y-1] += 1;
				paper[x][y] += 1;
				paper[x][y+1] += 1;
				paper[x+1][y-1] += 1;
				paper[x+1][y] += 1;
				paper[x+1][y+1] += 1;
			} else if(s == 3){
				paper[x-2][y] += 1;
				paper[x-1][y-1] += 1;
				paper[x-1][y] += 1;
				paper[x-1][y+1] += 1;
				paper[x][y-2] += 1;
				paper[x][y-1] += 1;
				paper[x][y] += 1;
				paper[x][y+1] += 1;
				paper[x][y+2] += 1;
				paper[x+1][y-1] += 1;
				paper[x+1][y] += 1;
				paper[x+1][y+1] += 1;
				paper[x+2][y] += 1;
			}
		}
		for(int i = 0; i < 10; i++){
			for(int j = 0; j < 10; j++){
				if(paper[i][j] == 0){
					count++;
				}
				if(max < paper[i][j]){
					max = paper[i][j];
				}
			}
		}
		System.out.printf("%d\n", count);
		System.out.printf("%d\n", max);
	}
}

Compiler output:
Main.java:54: error: cannot find symbol
				if(paper[i][j] == 0){
				   ^
  symbol:   variable paper
  location: class Main
Main.java:55: error: cannot find symbol
					count++;
					^
  symbol:   variable count
  location: class Main
Main.java:57: error: cannot find symbol
				if(max < paper[i][j]){
				   ^
  symbol:   variable max
  location: class Main
Main.java:57: error: cannot find symbol
				if(max < paper[i][j]){
				         ^
  symbol:   variable paper
  location: class Main
Main.java:58: error: cannot find symbol
					max = paper[i][j];
					^
  symbol:   variable max
  location: class Main
Main.java:58: error: cannot find symbol
					max = paper[i][j];
					      ^
  symbol:   variable paper
  location: class Main
Main.java:62: error: cannot find symbol
		System.out.printf("%d\n", count);
		                          ^
  symbol:   variable count
  location: class Main
Main.java:63: error: cannot find symbol
		System.out.printf("%d\n", max);
		                          ^
  symbol:   variable max
  location: class Main
8 errors
Language: Java

import java.util.*;

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

	public static void main(String[] args){
		int n = 10;
		int[][] map = new int[n][n];
		int[][] small = {{0, 1, 0}, {1, 1, 1}, {0, 1, 0}};
		int[][] middle = {{1, 1, 1}, {1, 1, 1}, {1, 1, 1}};
		int[][] large = {{0, 0, 1, 0, 0}, {0, 1, 1, 1, 0},
						 {1, 1, 1, 1, 1}, {0, 1, 1, 1, 0}, {0, 0, 1, 0, 0}};
		while(scan.hasNext()){
			String[] ss = scan.nextLine().split(",");
			int x = Integer.parseInt(ss[0]);
			int y = Integer.parseInt(ss[1]);
			int s = Integer.parseInt(ss[2]);
			int[][] d;
			if(s == 1){
				d = small;
			} else if(s == 2){
				d = middle;
			} else if(s == 3){
				d = large;
			}
			int m = d.length / 2;
			for(int i = - m; i <= m; i++){
				for(int j = - m; j <= m; j++){
					if(d[i + m][j + m] == 1){
						drop(x + i, y + j);
					}
				}
			}
			int max = 0;
			int count = 0;
			for(int i = 0; i < n; i++){
				for(int j = 0; j < n; j++){
					max = Math.max(max, map[i][j]);
					if(map[i][j] == 0){
						count++;
					}
				}
			}
			System.out.printf("%d\n", count);
			System.out.printf("%d\n", max);
			scan.close();
		}
	}

	public static void drop(int xx, int yy){
		if(xx < 0 || xx >= n|| yy < 0 || yy >= n){
			return;
		}
		map[x][y]++;
	}
}

Compiler output:
Main.java:51: error: cannot find symbol
		if(xx < 0 || xx >= n|| yy < 0 || yy >= n){
		                   ^
  symbol:   variable n
  location: class Main
Main.java:51: error: cannot find symbol
		if(xx < 0 || xx >= n|| yy < 0 || yy >= n){
		                                       ^
  symbol:   variable n
  location: class Main
Main.java:54: error: cannot find symbol
		map[x][y]++;
		^
  symbol:   variable map
  location: class Main
Main.java:54: error: cannot find symbol
		map[x][y]++;
		    ^
  symbol:   variable x
  location: class Main
Main.java:54: error: cannot find symbol
		map[x][y]++;
		       ^
  symbol:   variable y
  location: class Main
5 errors
Language: Java

import java.util.*;

public class Main{
	private static final Scanner scan = new Scanner(System.in);
	int n = 10;
	int[][] map = new int[n][n];

	public static void main(String[] args){

		int[][] small = {{0, 1, 0}, {1, 1, 1}, {0, 1, 0}};
		int[][] middle = {{1, 1, 1}, {1, 1, 1}, {1, 1, 1}};
		int[][] large = {{0, 0, 1, 0, 0}, {0, 1, 1, 1, 0},
						 {1, 1, 1, 1, 1}, {0, 1, 1, 1, 0}, {0, 0, 1, 0, 0}};
		while(scan.hasNext()){
			String[] ss = scan.nextLine().split(",");
			int x = Integer.parseInt(ss[0]);
			int y = Integer.parseInt(ss[1]);
			int s = Integer.parseInt(ss[2]);
			int[][] d;
			if(s == 1){
				d = small;
			} else if(s == 2){
				d = middle;
			} else if(s == 3){
				d = large;
			}
			int m = d.length / 2;
			for(int i = - m; i <= m; i++){
				for(int j = - m; j <= m; j++){
					if(d[i + m][j + m] == 1){
						drop(x + i, y + j);
					}
				}
			}
			int max = 0;
			int count = 0;
			for(int i = 0; i < n; i++){
				for(int j = 0; j < n; j++){
					max = Math.max(max, map[i][j]);
					if(map[i][j] == 0){
						count++;
					}
				}
			}
			System.out.printf("%d\n", count);
			System.out.printf("%d\n", max);
			scan.close();
		}
	}

	public static void drop(int xx, int yy){
		if(xx < 0 || xx >= n|| yy < 0 || yy >= n){
			return;
		}
		map[x][y]++;
	}
}

Compiler output:
Main.java:37: error: non-static variable n cannot be referenced from a static context
			for(int i = 0; i < n; i++){
			                   ^
Main.java:38: error: non-static variable n cannot be referenced from a static context
				for(int j = 0; j < n; j++){
				                   ^
Main.java:39: error: non-static variable map cannot be referenced from a static context
					max = Math.max(max, map[i][j]);
					                    ^
Main.java:40: error: non-static variable map cannot be referenced from a static context
					if(map[i][j] == 0){
					   ^
Main.java:52: error: non-static variable n cannot be referenced from a static context
		if(xx < 0 || xx >= n|| yy < 0 || yy >= n){
		                   ^
Main.java:52: error: non-static variable n cannot be referenced from a static context
		if(xx < 0 || xx >= n|| yy < 0 || yy >= n){
		                                       ^
Main.java:55: error: non-static variable map cannot be referenced from a static context
		map[x][y]++;
		^
Main.java:55: error: cannot find symbol
		map[x][y]++;
		    ^
  symbol:   variable x
  location: class Main
Main.java:55: error: cannot find symbol
		map[x][y]++;
		       ^
  symbol:   variable y
  location: class Main
9 errors
Language: Java

import java.util.*;

public class Main{
	private static final Scanner scan = new Scanner(System.in);
	static int n = 10;
	static int[][] map = new int[n][n];

	public static void main(String[] args){

		int[][] small = {{0, 1, 0}, {1, 1, 1}, {0, 1, 0}};
		int[][] middle = {{1, 1, 1}, {1, 1, 1}, {1, 1, 1}};
		int[][] large = {{0, 0, 1, 0, 0}, {0, 1, 1, 1, 0},
						 {1, 1, 1, 1, 1}, {0, 1, 1, 1, 0}, {0, 0, 1, 0, 0}};
		while(scan.hasNext()){
			String[] ss = scan.nextLine().split(",");
			int x = Integer.parseInt(ss[0]);
			int y = Integer.parseInt(ss[1]);
			int s = Integer.parseInt(ss[2]);
			int[][] d;
			if(s == 1){
				d = small;
			} else if(s == 2){
				d = middle;
			} else if(s == 3){
				d = large;
			}
			int m = d.length / 2;
			for(int i = - m; i <= m; i++){
				for(int j = - m; j <= m; j++){
					if(d[i + m][j + m] == 1){
						drop(x + i, y + j);
					}
				}
			}
			int max = 0;
			int count = 0;
			for(int i = 0; i < n; i++){
				for(int j = 0; j < n; j++){
					max = Math.max(max, map[i][j]);
					if(map[i][j] == 0){
						count++;
					}
				}
			}
			System.out.printf("%d\n", count);
			System.out.printf("%d\n", max);
			scan.close();
		}
	}

	public static void drop(int xx, int yy){
		if(xx < 0 || xx >= n|| yy < 0 || yy >= n){
			return;
		}
		map[x][y]++;
	}
}

Compiler output:
Main.java:55: error: cannot find symbol
		map[x][y]++;
		    ^
  symbol:   variable x
  location: class Main
Main.java:55: error: cannot find symbol
		map[x][y]++;
		       ^
  symbol:   variable y
  location: class Main
2 errors
Language: Java

import java.util.*;

public class Main{
	private static final Scanner scan = new Scanner(System.in);
	static int n = 10;
	static int[][] map = new int[n][n];

	public static void main(String[] args){

		int[][] small = {{0, 1, 0}, {1, 1, 1}, {0, 1, 0}};
		int[][] middle = {{1, 1, 1}, {1, 1, 1}, {1, 1, 1}};
		int[][] large = {{0, 0, 1, 0, 0}, {0, 1, 1, 1, 0},
						 {1, 1, 1, 1, 1}, {0, 1, 1, 1, 0}, {0, 0, 1, 0, 0}};
		while(scan.hasNext()){
			String[] ss = scan.nextLine().split(",");
			int x = Integer.parseInt(ss[0]);
			int y = Integer.parseInt(ss[1]);
			int s = Integer.parseInt(ss[2]);
			int[][] d;
			if(s == 1){
				d = small;
			} else if(s == 2){
				d = middle;
			} else if(s == 3){
				d = large;
			}
			int m = d.length / 2;
			for(int i = - m; i <= m; i++){
				for(int j = - m; j <= m; j++){
					if(d[i + m][j + m] == 1){
						drop(x + i, y + j);
					}
				}
			}
			int max = 0;
			int count = 0;
			for(int i = 0; i < n; i++){
				for(int j = 0; j < n; j++){
					max = Math.max(max, map[i][j]);
					if(map[i][j] == 0){
						count++;
					}
				}
			}
			System.out.printf("%d\n", count);
			System.out.printf("%d\n", max);
			scan.close();
		}
	}

	public static void drop(int xx, int yy){
		if(xx < 0 || xx >= n|| yy < 0 || yy >= n){
			return;
		}
		map[xx][yy]++;
	}
}

Compiler output:
Main.java:27: error: variable d might not have been initialized
			int m = d.length / 2;
			        ^
1 error
Language: Java

import java.util.*;

public class Main{
	private static final Scanner scan = new Scanner(System.in);
	static int n = 10;
	static int[][] map = new int[n][n];

	public static void main(String[] args){

		int[][] small = {{0, 1, 0}, {1, 1, 1}, {0, 1, 0}};
		int[][] middle = {{1, 1, 1}, {1, 1, 1}, {1, 1, 1}};
		int[][] large = {{0, 0, 1, 0, 0}, {0, 1, 1, 1, 0},
						 {1, 1, 1, 1, 1}, {0, 1, 1, 1, 0}, {0, 0, 1, 0, 0}};
		while(scan.hasNext()){
			String[] ss = scan.nextLine().split(",");
			int x = Integer.parseInt(ss[0]);
			int y = Integer.parseInt(ss[1]);
			int s = Integer.parseInt(ss[2]);
			int[][] d;
			if(s == 1){
				d = small;
			} else if(s == 2){
				d = middle;
			} else if(s == 3){
				d = large;
			}
			int m =(int)(d.length / 2);
			for(int i = - m; i <= m; i++){
				for(int j = - m; j <= m; j++){
					if(d[i + m][j + m] == 1){
						drop(x + i, y + j);
					}
				}
			}
			int max = 0;
			int count = 0;
			for(int i = 0; i < n; i++){
				for(int j = 0; j < n; j++){
					max = Math.max(max, map[i][j]);
					if(map[i][j] == 0){
						count++;
					}
				}
			}
			System.out.printf("%d\n", count);
			System.out.printf("%d\n", max);
			scan.close();
		}
	}

	public static void drop(int xx, int yy){
		if(xx < 0 || xx >= n|| yy < 0 || yy >= n){
			return;
		}
		map[xx][yy]++;
	}
}

Compiler output:
Main.java:27: error: variable d might not have been initialized
			int m =(int)(d.length / 2);
			             ^
1 error
Language: Java

import java.util.*;

public class Main{
	private static final Scanner scan = new Scanner(System.in);
	static int n = 10;
	static int[][] map = new int[n][n];

	public static void main(String[] args){

		int[][] small = {{0, 1, 0}, {1, 1, 1}, {0, 1, 0}};
		int[][] middle = {{1, 1, 1}, {1, 1, 1}, {1, 1, 1}};
		int[][] large = {{0, 0, 1, 0, 0}, {0, 1, 1, 1, 0},
						 {1, 1, 1, 1, 1}, {0, 1, 1, 1, 0}, {0, 0, 1, 0, 0}};
		while(scan.hasNext()){
			String[] ss = scan.nextLine().split(",");
			int x = Integer.parseInt(ss[0]);
			int y = Integer.parseInt(ss[1]);
			int s = Integer.parseInt(ss[2]);
			int[][] d;
			if(s == 1){
				d = small;
			} else if(s == 2){
				d = middle;
			} else if(s == 3){
				d = large;
			}
			int m = 0;
			int m =(int)(d.length / 2);
			for(int i = - m; i <= m; i++){
				for(int j = - m; j <= m; j++){
					if(d[i + m][j + m] == 1){
						drop(x + i, y + j);
					}
				}
			}
			int max = 0;
			int count = 0;
			for(int i = 0; i < n; i++){
				for(int j = 0; j < n; j++){
					max = Math.max(max, map[i][j]);
					if(map[i][j] == 0){
						count++;
					}
				}
			}
			System.out.printf("%d\n", count);
			System.out.printf("%d\n", max);
			scan.close();
		}
	}

	public static void drop(int xx, int yy){
		if(xx < 0 || xx >= n|| yy < 0 || yy >= n){
			return;
		}
		map[xx][yy]++;
	}
}

Compiler output:
Main.java:28: error: variable m is already defined in method main(String[])
			int m =(int)(d.length / 2);
			    ^
1 error
Language: Java

import java.util.*;

public class Main{
	private static final Scanner scan = new Scanner(System.in);
	static int n = 10;
	static int[][] map = new int[n][n];

	public static void main(String[] args){

		int[][] small = {{0, 1, 0}, {1, 1, 1}, {0, 1, 0}};
		int[][] middle = {{1, 1, 1}, {1, 1, 1}, {1, 1, 1}};
		int[][] large = {{0, 0, 1, 0, 0}, {0, 1, 1, 1, 0},
						 {1, 1, 1, 1, 1}, {0, 1, 1, 1, 0}, {0, 0, 1, 0, 0}};
		while(scan.hasNext()){
			String[] ss = scan.nextLine().split(",");
			int x = Integer.parseInt(ss[0]);
			int y = Integer.parseInt(ss[1]);
			int s = Integer.parseInt(ss[2]);
			int[][] d;
			if(s == 1){
				d = small;
			} else if(s == 2){
				d = middle;
			} else if(s == 3){
				d = large;
			}
			int m = 0;
			m =(int)(d.length / 2);
			for(int i = - m; i <= m; i++){
				for(int j = - m; j <= m; j++){
					if(d[i + m][j + m] == 1){
						drop(x + i, y + j);
					}
				}
			}
			int max = 0;
			int count = 0;
			for(int i = 0; i < n; i++){
				for(int j = 0; j < n; j++){
					max = Math.max(max, map[i][j]);
					if(map[i][j] == 0){
						count++;
					}
				}
			}
			System.out.printf("%d\n", count);
			System.out.printf("%d\n", max);
			scan.close();
		}
	}

	public static void drop(int xx, int yy){
		if(xx < 0 || xx >= n|| yy < 0 || yy >= n){
			return;
		}
		map[xx][yy]++;
	}
}

Compiler output:
Main.java:28: error: variable d might not have been initialized
			m =(int)(d.length / 2);
			         ^
1 error
Language: Java

import java.util.Arrays;
import java.util.Scanner;

public class Main1 {
	static Scanner sc = new Scanner(System.in);
	private static final int MASS = 10;
	private static final int[] dx = {0, 0,-1, 1,-1,-1, 1, 1, 0, 0,-2, 2};
	private static final int[] dy = {-1, 1, 0, 0,-1, 1,-1, 1,-2, 2, 0, 0};

	public static void main(String[] args) {

		int map[][] = new int[MASS][MASS];
		int count = 0;
		int max = 0;

		for(int $ = 0; $ < MASS; $++) {
			Arrays.fill(map[$], 0);
		}

		while(sc.hasNext()) {
			String[] text = sc.next().split(",");
			int x = Integer.parseInt(text[0]);
			int y = Integer.parseInt(text[1]);
			int ink = Integer.parseInt(text[2]);

			//???????????????????????°???????????????1????????????
			map[x][y]++;

			//???????????????????????°???????????????1????????????
			for(int $ = 0; $ < ink * 4; $++) {
				int mx = x + dx[$];
				int my = y + dy[$];
				if(mx >= 0 && mx < MASS && my >= 0 && my < MASS) {
					map[mx][my]++;
				}
			}
		}

		//????????¨????????¨?????????????????¨????????????????????°??????
		for(int $ = 0; $ < MASS; $++) {
			for(int i = 0; i < MASS; i++) {
				if(map[$][i] == 0) {
					count++;
				}
				max = Math.max(max, map[$][i]);
			}
		}

		System.out.println(count);
		System.out.println(max);
	}
}

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