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

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

import static java.util.Arrays.*;
import static javaa.String.Math.*;

public Main {
	int INF = 1 << 28;
	double EPS = 1e-10;
	int OFS = 2;
	
	int[][] map;
	
	void run() {
		Scanner sc = new Scanner(System.in);
		map = new int[10 + 4][10 + 4];
		for(;sc.hasNext(); ) {
			String[] ss = sc.next().split(",");
			int[] vals = new int[3];
			
			for(int i=0;i<3;i++) vals[i] = Integer.parseInt(ss[i]);
			if(val[2] == 1) small(val[0], val[1]);
			if(val[2] == 2) medium(val[0], val[1]);
			if(val[2] == 3) large(val[0], val[1]);
		}
		
		int sp = 0, max = 0;
		for(int x=2;<10+2;x++) for(int y=2;y<10+2;y++) {
			if(map[y][x] != 0) max = max(max, map[y][x]);
			else sp++;
		}
		System.out.println(sp);
		System.out.println(max);
	}
	
	void large(int x, int y) {
		for(int ny=-2;ny<=2;ny++) {
			for(int nx=-( 2-abs(i) );nx<=2-abs(i);nx++) 
				map[y+ny+2][x+nx+2]++;
		}
	}
	
	void medium(int x, int y) {
		for(int i=-1;i<=1;i++) for(int j=-1;j<=1;j++) {
			map[y+j+2][x+i+2]++;
		}
	}
	
	void small(int x, int y) {
		map[y-1+2][x+2]++; map[y+2][x-1+2]++; map[y+1+2][x+2]++; map[y+2][x+1+2]++;
	}
	
	public static void main(String[] args) {
		new Main().run();
	}
}

Compiler output:
Main.java:7: error: class, interface, enum, or record expected
public Main {
       ^
Main.java:9: error: unnamed classes are a preview feature and are disabled by default.
	double EPS = 1e-10;
	^
  (use --enable-preview to enable unnamed classes)
Main.java:28: error: not a statement
		for(int x=2;<10+2;x++) for(int y=2;y<10+2;y++) {
		               ^
Main.java:28: error: illegal start of type
		for(int x=2;<10+2;x++) for(int y=2;y<10+2;y++) {
		             ^
Main.java:28: error: ')' expected
		for(int x=2;<10+2;x++) for(int y=2;y<10+2;y++) {
		                 ^
Main.java:28: error: ';' expected
		for(int x=2;<10+2;x++) for(int y=2;y<10+2;y++) {
		                     ^
Main.java:56: error: class, interface, enum, or record expected
}
^
7 errors
Language: Java

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

import static java.util.Arrays.*;
import static javaa.String.Math.*;

public class Main {
	int INF = 1 << 28;
	double EPS = 1e-10;
	int OFS = 2;
	
	int[][] map;
	
	void run() {
		Scanner sc = new Scanner(System.in);
		map = new int[10 + 4][10 + 4];
		for(;sc.hasNext(); ) {
			String[] ss = sc.next().split(",");
			int[] vals = new int[3];
			
			for(int i=0;i<3;i++) vals[i] = Integer.parseInt(ss[i]);
			if(val[2] == 1) small(val[0], val[1]);
			if(val[2] == 2) medium(val[0], val[1]);
			if(val[2] == 3) large(val[0], val[1]);
		}
		
		int sp = 0, max = 0;
		for(int x=2;<10+2;x++) for(int y=2;y<10+2;y++) {
			if(map[y][x] != 0) max = max(max, map[y][x]);
			else sp++;
		}
		System.out.println(sp);
		System.out.println(max);
	}
	
	void large(int x, int y) {
		for(int ny=-2;ny<=2;ny++) {
			for(int nx=-( 2-abs(i) );nx<=2-abs(i);nx++) 
				map[y+ny+2][x+nx+2]++;
		}
	}
	
	void medium(int x, int y) {
		for(int i=-1;i<=1;i++) for(int j=-1;j<=1;j++) {
			map[y+j+2][x+i+2]++;
		}
	}
	
	void small(int x, int y) {
		map[y-1+2][x+2]++; map[y+2][x-1+2]++; map[y+1+2][x+2]++; map[y+2][x+1+2]++;
	}
	
	public static void main(String[] args) {
		new Main().run();
	}
}

Compiler output:
Main.java:28: error: illegal start of type
		for(int x=2;<10+2;x++) for(int y=2;y<10+2;y++) {
		             ^
Main.java:28: error: not a statement
		for(int x=2;<10+2;x++) for(int y=2;y<10+2;y++) {
		               ^
Main.java:28: error: ')' expected
		for(int x=2;<10+2;x++) for(int y=2;y<10+2;y++) {
		                 ^
Main.java:28: error: ';' expected
		for(int x=2;<10+2;x++) for(int y=2;y<10+2;y++) {
		                     ^
4 errors
Language: Java

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

import static java.util.Arrays.*;
import static java.String.Math.*;

public class Main {
	int INF = 1 << 28;
	double EPS = 1e-10;
	int OFS = 2;
	
	int[][] map;
	
	void run() {
		Scanner sc = new Scanner(System.in);
		map = new int[10 + 4][10 + 4];
		for(;sc.hasNext(); ) {
			String[] ss = sc.next().split(",");
			int[] val = new int[3];
			
			for(int i=0;i<3;i++) vals[i] = Integer.parseInt(ss[i]);
			if(val[2] == 1) small(val[0], val[1]);
			if(val[2] == 2) medium(val[0], val[1]);
			if(val[2] == 3) large(val[0], val[1]);
		}
		
		int sp = 0, max = 0;
		for(int x=2;x<10+2;x++) for(int y=2;y<10+2;y++) {
			if(map[y][x] != 0) max = max(max, map[y][x]);
			else sp++;
		}
		System.out.println(sp);
		System.out.println(max);
	}
	
	void large(int x, int y) {
		for(int ny=-2;ny<=2;ny++) {
			for(int nx=-( 2-abs(ny) );nx<=2-abs(ny);nx++) 
				map[y+ny+2][x+nx+2]++;
		}
	}
	
	void medium(int x, int y) {
		for(int i=-1;i<=1;i++) for(int j=-1;j<=1;j++) {
			map[y+j+2][x+i+2]++;
		}
	}
	
	void small(int x, int y) {
		map[y-1+2][x+2]++; map[y+2][x-1+2]++; map[y+1+2][x+2]++; map[y+2][x+1+2]++;
	}
	
	public static void main(String[] args) {
		new Main().run();
	}
}

Compiler output:
Main.java:5: error: package java.String does not exist
import static java.String.Math.*;
                         ^
Main.java:21: error: cannot find symbol
			for(int i=0;i<3;i++) vals[i] = Integer.parseInt(ss[i]);
			                     ^
  symbol:   variable vals
  location: class Main
Main.java:29: error: cannot find symbol
			if(map[y][x] != 0) max = max(max, map[y][x]);
			                         ^
  symbol:   method max(int,int)
  location: class Main
Main.java:38: error: cannot find symbol
			for(int nx=-( 2-abs(ny) );nx<=2-abs(ny);nx++) 
			                ^
  symbol:   method abs(int)
  location: class Main
Main.java:38: error: cannot find symbol
			for(int nx=-( 2-abs(ny) );nx<=2-abs(ny);nx++) 
			                                ^
  symbol:   method abs(int)
  location: class Main
5 errors
Language: Java

package jimang_laurant.com;

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

public class Main0026 {
	private static Scanner scan;
	public static void main(String[] args) {
		scan = new Scanner(System.in);
		scan.useDelimiter(",|\\s+");
		int a[][] = new int[10][10];
		for(int i = 0;i < 10;i++)Arrays.fill(a[i],0);
		while(scan.hasNext()){
			int x = scan.nextInt();
			int y = scan.nextInt();
			int size = scan.nextInt();
			if(size >= 1){
				if(x - 1 >= 0)a[x-1][y]++;
				if(y - 1 >= 0)a[x][y-1]++;
				if(x + 1 >= 0)a[x+1][y]++;
				if(y + 1 >= 0)a[x][y+1]++;
				if(size >= 2){
					if(x - 1 >= 0&&y - 1 >=0)a[x-1][y-1]++;
					if(x - 1 >= 0&&y + 1 <=9)a[x-1][y+1]++;
					if(x + 1 <= 9&&y - 1 >=0)a[x+1][y-1]++;
					if(x + 1 <= 9&&y + 1 <=9)a[x+1][y+1]++;
					if(size >= 3){
						if(x - 2 >= 0)a[x-2][y]++;
						if(y - 2 >= 0)a[x][y-2]++;
						if(x + 2 <= 9)a[x+2][y]++;
						if(y + 2 <= 9)a[x][y+2]++;
					}
				}
			}
		}
		int n = 0,m = 0;
		for(int i = 0;i < 10;i++){
			for(int j = 0;j < 10;j++){
				if(a[i][j] == 0)n++;
				m = Math.max(a[i][j], m);
			}
		}
		System.out.println(n);
		System.out.println(m);
		System.exit(0);
	}

}

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

import java.util.*;
public class Main{
	public static void main(String[] args){
		new P0026DroppingInk().run();
	}
	Scanner sc = new Scanner(System.in);
	int[][] map;
	int h = 10;
	int w = 10;
	int[] a = {1, 0, -1, 0, 1, -1, 1, -1, 2, 0, -2, 0};
	int[] b = {0, 1, 0, -1, 1, 1, -1, -1, 0, 2, 0, -2};
	int count;
	int max;
	void run(){
		map = new int[h][w];
		max = 0;
		count = h*w;
		while(sc.hasNext()){
			String[] i = sc.next().split(",");
			int x = Integer.parseInt(i[0]);
			int y = Integer.parseInt(i[1]);
			int s = Integer.parseInt(i[2]);
			drop(x, y, s);
		}
		System.out.println(count+"\n"+max);
	}
	void drop(int x, int y, int s){
		ink(x, y);
		for(int i=0; i<s*4; i++)
			ink(x+a[i], y+b[i]);
		}
	void ink(int x, int y){
		if(x>=0 && y>=0 && x<10 && y<10){
			map[x][y]++;
			if(max < map[x][y]) max = map[x][y];
			if(map[x][y]==1) count--;
		}
	}
}

Compiler output:
Main.java:4: error: cannot find symbol
		new P0026DroppingInk().run();
		    ^
  symbol:   class P0026DroppingInk
  location: class Main
1 error
Language: C

/*                          /
/      2014.08.26           /
/                          */

//真っ白な紙にインクを垂らしインク絵汚れていない部分の数を出力し、汚れる回数が多いエリアを出力する。
//落とすインク液は少しならば１、中ぐらいなら２、多いならば３とする。
#include<stdio.h>

void littleDrop(int,int,int *,int);
void midiumDrop(int,int *,int,int);
void largeDrop(int,int *,int);
void showArray(int [][10]);

void largeDrop(int center,int *tbl ,int round){
	if(center >= 20)//二つ上に配列があるか確認
		*(tbl - 20) += 1;
	if(round >= 2)//二つ左に配列があるか確認
		*(tbl - 2) += 1;
	if(round <= 7)//二つ右に配列があるか確認
		*(tbl + 2) += 1;
	if(center <= 80)//二つ下に配列がある確認
		*(tbl + 20) += 1;
}

void midiumDrop(int center,int *tbl ,int size ,int round){
//真ん中と八方に+1//
	if(center > 10){
		if(round != 0)//左、上に配列があるか確認
			*(tbl - 11) += 1;
		if(round != 9)//右、上に配列があるか確認
			*(tbl - 9) += 1;
	if(center < 90){
		if(round != 0)//左、下に配列があるか確認
			*(tbl + 9) += 1;
		if(round != 9)//右、下に配列があるか確認
			*(tbl + 11) += 1;
	}
	if(size == 3)
		largeDrop(center,tbl,round);
}


void littleDrop(int x ,int y ,int *tbl,int size){
//インクを落とす場所は左上(0,0)から何番目かを求める。
	int center = x + y * 10;
	int round = center % 10;
//(0,0)から中央へと移動させる
	tbl = (tbl + center);

//真ん中に+1
	*(tbl) += 1;
//上に+1
	if(center >= 10)//上に配列があるか確認
		*(tbl - 10) += 1;
	if(center <= 90)//下に配列があるか確認
		*(tbl + 10) += 1;
	if(round != 0)//左に配列があるか確認
		*(tbl - 1) += 1;
	if(round != 9)//右に配列があるか確認
		*(tbl + 1) += 1;
	if(size >= 2)
		midiumDrop(center, tbl, size,round);
}

void showArray(int in[10][10]){
	int i,j;
	for(i = 0 ; i < 10 ;i ++){
		for(j = 0; j < 10; j ++){
			printf("%d ",in[i][j]);
		}
		printf("\n");
	}
}


int main(void){
	int i,j,clear=0,max=0;
	int x,y,size;
	int tbl[10][10] = {0};

	while(scanf("%d,%d,%d",&x ,&y ,&size) != EOF){
		getchar();//改行をとることでバッファに\nがたまるのを防ぐ
		if(x >= 0 && y >= 0 && size >= 0 && size <= 3 && x <= 9 && y <= 9)
			littleDrop(x,y,*tbl,size);
		//showArray(tbl);
	}

	for(i = 0 ; i < 10 ;i ++){
		for(j = 0; j < 10; j ++){
			//printf("%d ",tbl[i][j]);//確認用
			if(tbl[i][j] == 0)
				clear ++;
			else if(tbl[i][j] > max)
				max = tbl[i][j];
		}
		//printf("\n");
	}
	printf("%d\n",clear);//インクが落ちていない個所の合計
	printf("%d\n",max);//一番多くインクが落ちた量
	//getchar();//visual studio用
	return 0;
}

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

#include <cstdio>
using namespace std;
 
int main()
{
    int xy[10][10] = {'0'};
    int x,y,size;
    xy[0][0] = 0;
     
    while(scanf("%d,%d,%d", &x,&y,&size) != EOF){
         
        xy[y-1][x]++;
        xy[y][x-1]++;
        xy[y][x]++;
        xy[y][x+1]++;
        xy[y+1][x]++;
         
        if(size >= 2){
            xy[y-1][x-1]++;
            xy[y-1][x+1]++;
            xy[y+1][x-1]++;
            xy[y+1][x+1]++;
        }
        if(size == 3){
            xy[y-2][x]++;
            xy[y][x-2]++;
            xy[y][x+2]++;
            xy[y+2][x]++;
        }
    }
     
    int w=0,con = 0;
     
    for(int i=0; i < 10; i++){
        for(int j=0; j < 10; j++){
            if(xy[i][j] == 0)w++;
            if(con < xy[i][j])con = xy[i][j];
        }
    }
     
    printf("%d\n%d\n", w, con);
     
    return (0);
}

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

#include <stdio.h>

int main(void) {

	int a[10][10];
	int i, j, x, y;
	int size;
	int max = 0, cnt = 0;

	for(i = 0; i < 10; i++) {
		for(j = 0; j < 10; j++) {
			a[i][j] = 0;
		}
	}

	while(scanf(fp, "%d,%d,%d", &x, &y, &size) && size != 0 ) {
		switch(size) {
		case 3:
			if(x >= 2) a[x - 2][y]++;
			if(y >= 2) a[x][y - 2]++;
			if(x <= 7) a[x + 2][y]++;
			if(y <= 7) a[x][y + 2]++;
		case 2:
			if((x >= 1) && (y >= 1)) a[x - 1][y - 1]++;
			if((x >= 1) && (y <= 8)) a[x - 1][y + 1]++;
			if((x <= 8) && (y >= 1)) a[x + 1][y - 1]++;
			if((x <= 8) && (y <= 8)) a[x + 1][y + 1]++;
		case 1:
			if(x >= 1) a[x - 1][y]++;
			if(y >= 1) a[x][y - 1]++;
			if(x <= 8) a[x + 1][y]++;
			if(y <= 8) a[x][y + 1]++;
			a[x][y]++;
		}
	}

	for(i = 0; i < 10; i++) {
		for(j = 0; j < 10; j++) {
			if(a[i][j] == 0) {
				cnt++;
			} else {
				if(a[i][j] > max) max = a[i][j];
			}
		}
	}
	printf("%d\n", cnt);
	printf("%d\n", max);
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:16:21: error: 'fp' undeclared (first use in this function)
   16 |         while(scanf(fp, "%d,%d,%d", &x, &y, &size) && size != 0 ) {
      |                     ^~
main.c:16:21: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#include <stdio.h>

void paint(int b[][], int x, int y, int a);

int main(void) {
	int squares[10][10] = {0};
	int i, j;
	int x, y, size;
	while( scanf("%d %d %d", &x, &y, &size) != EOF) {
		switch( size) {
			case 1:
				squares[y][x]++;
				paint( squares, x, y, 1);
				break;
			case 3:
				paint( squares, x, y, 2);
			case 2:
				for( i = x-1; i <= x+1; i++)
					for( j = y-1; j <= y+1; j++)
						if( (i >= 0 && i < 10) && (j >= 0 && j < 10))
							squares[j][i]++;
				break;
		}
	}
	
	return 0;
}

void paint(int b[][], int x, int y, int a) {
	if( y - a >= 0)
		b[y-a][x]++;
	if( y + a < 10)
		b[y+a][y]++;
	if( x - a >= 0)
		b[y][x-a]++;
	if( x + a < 10)
		b[y][x+a]++;
}

Compiler output:
main.c:3:16: error: array type has incomplete element type 'int[]'
    3 | void paint(int b[][], int x, int y, int a);
      |                ^
main.c:3:16: note: declaration of 'b' as multidimensional array must have bounds for all dimensions except the first
main.c: In function 'main':
main.c:13:40: error: type of formal parameter 1 is incomplete
   13 |                                 paint( squares, x, y, 1);
      |                                        ^~~~~~~
main.c:16:40: error: type of formal parameter 1 is incomplete
   16 |                                 paint( squares, x, y, 2);
      |                                        ^~~~~~~
main.c: At top level:
main.c:29:16: error: array type has incomplete element type 'int[]'
   29 | void paint(int b[][], int x, int y, int a) {
      |                ^
main.c:29:16: note: declaration of 'b' as multidimensional array must have bounds for all dimensions except the first
Language: C

#include <stdio.h>
 
void color(int map[10][10], int x, int y)
{
  if (0 <= x && x <= 9 && 0 <= y && y <= 9){
    map[y][x]++;
  }
}
 
int main(void)
{
  int map[10][10] = {0};
  int x, y, size;
  int i, j;
  int white = 0, darkest = 0;
 
  while (scanf("%d,%d,%d", &x, &y, &size) != EOF){
    map[y][x]++;
    if (size == 3){
      color(map, x + 2, y);
      color(map, x - 2, y);
      color(map, x, y + 2);
      color(map, x, y - 2);
    }
    if (size >= 2){
      color(map, x + 1, y + 1);
      color(map, x - 1, y + 1);
      color(map, x + 1, y - 1);
      color(map, x - 1, y - 1);
    }
    if (size >= 1){
      color(map, x, y + 1);
      color(map, x, y - 1);
      color(map, x + 1, y);
      color(map, x - 1, y);
    }
  }
 
  for (i = 0; i < 10; i++){
    for (j = 0; j < 10; j++){
      if (map[i][j] == 0){
        white++;
      }
      if (mostdark < map[i][j]){
        mostdark = map[i][j];
      }
    }
  }
 
  printf("%d\n%d\n", white, darkest);
 
  return (0);
}

Compiler output:
main.c: In function 'main':
main.c:44:11: error: 'mostdark' undeclared (first use in this function)
   44 |       if (mostdark < map[i][j]){
      |           ^~~~~~~~
main.c:44:11: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#include <stdio.h>
 
void color(int map[10][10], int x, int y)
{
  if (0 <= x && x <= 9 && 0 <= y && y <= 9){
    map[y][x]++;
  }
}
 
int main(void)
{
  int map[10][10] = {0};
  int x, y, size;
  int i, j;
  int white = 0, darkest = 0;
 
  while (scanf("%d,%d,%d", &x, &y, &size) != EOF){
    map[y][x]++;
    if (size == 3){
      color(map, x + 2, y);
      color(map, x - 2, y);
      color(map, x, y + 2);
      color(map, x, y - 2);
    }
    if (size >= 2){
      color(map, x + 1, y + 1);
      color(map, x - 1, y + 1);
      color(map, x + 1, y - 1);
      color(map, x - 1, y - 1);
    }
    if (size >= 1){
      color(map, x, y + 1);
      color(map, x, y - 1);
      color(map, x + 1, y);
      color(map, x - 1, y);
    }
  }
 
  for (i = 0; i < 10; i++){
    for (j = 0; j < 10; j++){
      if (map[i][j] == 0){
        white++;
      }
      if (mostdark < map[i][j]){
        darkest = map[i][j];
      }
    }
  }
 
  printf("%d\n%d\n", white, darkest);
 
  return (0);
}

Compiler output:
main.c: In function 'main':
main.c:44:11: error: 'mostdark' undeclared (first use in this function)
   44 |       if (mostdark < map[i][j]){
      |           ^~~~~~~~
main.c:44:11: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#include <stdio.h>

int main(void)
{
	int size;
	int x, y;
	int white, black;
	int i, j;
	int seat[10][10] = {
		{0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
		{0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
		{0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
		{0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
		{0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
		{0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
		{0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
		{0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
		{0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
		{0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
	}
	
	while (1){
		scanf("%d %d %d", &x, &y, &size);
		
		switch (size){
		  case 1:
		  	seat[y][x]++;
			seat[y][x - 1]++;
			seat[y][x + 1]++;
			seat[y - 1][x]++;
			seat[y + 1][x]++;
			break;
			
		  case 2:
		  	seat[y][x]++;
			seat[y][x - 1]++;
			seat[y][x + 1]++;
			seat[y - 1][x]++;
			seat[y + 1][x]++;
			seat[y - 1][x - 1]++;
			seat[y - 1][x + 1]++;
			seat[y + 1][x - 1]++;
			seat[y + 1][x + 1]++;
			break;
			
		  case 3:
		  	seat[y][x]++;
			seat[y][x - 1]++;
			seat[y][x + 1]++;
			seat[y - 1][x]++;
			seat[y + 1][x]++;
			seat[y - 1][x - 1]++;
			seat[y - 1][x + 1]++;
			seat[y + 1][x - 1]++;
			seat[y + 1][x + 1]++;
			seat[y - 2][x]++;
			seat[y + 2][x]++;
			seat[y][x - 2]++;
			seat[y][x + 2]++;
			break;
		}
		
		for (i = 0; i < 10; i++){
			for (j = 0; j < 10; j++){
				if (seat[i][j] == 0){
					white++;
				}
				if (seat[i][j] > black){
					black = seat[i][j];
				}
			}
		}
		printf("%d\n", white);
		printf("%d\n", black);
	}
	return (0);
}

Compiler output:
main.c: In function 'main':
main.c:22:9: error: expected ',' or ';' before 'while'
   22 |         while (1){
      |         ^~~~~
Language: C

#include<stdio.h>

void small(int a[][10],int x,int y);
void mid(int a[][10],int x,int y);
void large(int a[][10],int x,int y);

int main(void){
  int paper[10][10];
  int x,y,q,i,j,count;
  int max=0;

  for(j=0;j<10;j++){
    for(i=0;i<10;i++){
      paper[i][j]=0;
    }
  }

  while(scanf("%d,%d,%d",&x,&y,&q)!=EOF){

    if(q==1){
      small(paper,x,y);
    }else if(q==2){
      mid(paper,x,y);
    }else{
      large(paper,x,y);
    }
  }
  for(j=0;j<10;j++){
    for(i=0;i<10;i++){
      if(paper[j][i]==0){
	count++;
      }
      if(map[y][x]>max){
	max=paper[y][x];
      }
    }
  }

  printf("%d\n",count);


  return 0;
}

void small(int a[][10],int x,int y){

  
  a[x][y]++;
  if(y>0){
    a[x][y-1]++;
  }
  if(y<9){
    a[x][y+1]++;
  }
  if(x<9){
    a[x+1][y]++;
  }
  if(x>0){
    a[x-1][y]++;
  }
  return;
}

void mid(int a[][10],int x,int y){
  
  a[y][x]++;
  if(x>0){
    a[y][x-1]++;
    if(x>0&&y>0){
      a[y-1][x-1]++;
    }
    if(x>0&&y<9){
      a[y+1][x-1]++;
    }
  }
  if(x<9){
    a[y][x+1]++;
    if(x<9&&y>0){
      a[y-1][x+1]++;
    }
    if(x<9&&y<9){
      a[y+1][x+1]++;
    }
  }
  if(y<9){
    a[y+1][x]++;
  }
  if(y>0){
    a[y-1][x]++;
  }
  return;
}

void large(int a[][10],int x,int y){
  
  a[y][x]++;
  if(x>0){
    a[y][x-1]++;
    if(x>0&&y>0){
      a[y-1][x-1]++;
    }
    if(x>0&&y<9){
      a[y+1][x-1]++;
    }
    if(x>1){
      a[y][x-2]++; 
    }
  }
  if(x<9){
    a[y][x+1]++;
    if(x<9&&y>0){
      a[y-1][x+1]++;
    }
    if(x<9&&y<9){
      a[y+1][x+1]++;
    }
    if(x<8){
      a[y][x+2]++; 
    }
  }
  if(y<9){
    a[y+1][x]++;
    if(x<8){
      a[y+2][x]++; 
    }
  }
  if(y>0){
    a[y-1][x]++;
    if(y>1){
      a[y-2][x]++; 
    }
  }
  return;
}

Compiler output:
main.c: In function 'main':
main.c:33:10: error: 'map' undeclared (first use in this function); did you mean 'max'?
   33 |       if(map[y][x]>max){
      |          ^~~
      |          max
main.c:33:10: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#include<stdio.h>

int main(void){
  int paper[10][10];
  int x,y,q,i,j,count,a;
  int px,py;
  int max=0;
  int xplus[] = {0,0,-1,1,-1,-1,1,1,0,0,-2,2};
  int yplus[] = {-1,1,0,0,-1,1,-1,1,-2,2,0,0};

  for(j=0;j<10;j++){
    for(i=0;i<10;i++){
      paper[i][j]=0;
    }
  }


  for( scanf("%d,%d,%d",&x,&y,&q)!=EOF){
    paper[y][x]++;
    for(i=0;i<q*4;i++){
      px=x+xplus[i];
      py=y+yplus[i];
      if(px>=0&&px<10&&py>=0&&py<10){
	paper[py][px]++;
      }
    }
  }
  for(j=0;j<10;j++){
    for(i=0;i<10;i++){
      if(paper[j][i]==0){
	count++;
      }
      if(paper[j][i]>max){
	max=paper[j][i];
      }
    }
  }

  printf("%d\n",count);
  printf("%d\n",max);


  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:18:39: error: expected ';' before ')' token
   18 |   for( scanf("%d,%d,%d",&x,&y,&q)!=EOF){
      |                                       ^
main.c:18:39: error: expected expression before ')' token
Language: C

#include <stdio.h>
#define rep(i,j,k) for(i = j;i <= k;i++)

int paper[14][14];
  rep(i,0,13){
    rep(j,0,13){
      paper[i][j] = 0;
    }
  }

void Ink(int,int,int);
int main(){
  int x,y,size,i,j,count,depth;

  while(scanf("%d,%d,%d",&x,&y,&size) != EOF){
    Ink(x+2,y+2,size);
  }
  count = 0;
  depth = 0;
  rep(i,2,11){
    rep(j,2,11){
      if(paper[i][j] == 0) count++;
      if(depth < paper[i][j]) depth = paper[i][j];
    }
  }

  printf("%d\n%d\n",count,depth);

  return 0;
}

void Ink(int x,int y,int size){
  if(size == 1){
    paper[x+1][y]++;paper[x-1][y]++;paper[x][y+1]++;paper[x][y-1]++;
  }

  if(size == 2){
    paper[x+1][y]++;paper[x-1][y]++;paper[x][y+1]++;paper[x][y-1]++;
    paper[x+1][y+1]++;paper[x-1][y-1]++;paper[x-1][y+1]++;paper[x+1][y-1]++;
  }

  if(size == 3){
        paper[x+1][y]++;paper[x-1][y]++;paper[x][y+1]++;paper[x][y-1]++;
    paper[x+1][y+1]++;paper[x-1][y-1]++;paper[x-1][y+1]++;paper[x+1][y-1]++;
    paper[x][y+2]++;paper[x][y-2]++;paper[x+2][y]++;paper[x-2][y]++;
  }

}

Compiler output:
main.c:2:20: error: expected identifier or '(' before 'for'
    2 | #define rep(i,j,k) for(i = j;i <= k;i++)
      |                    ^~~
main.c:5:3: note: in expansion of macro 'rep'
    5 |   rep(i,0,13){
      |   ^~~
main.c:2:32: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<=' token
    2 | #define rep(i,j,k) for(i = j;i <= k;i++)
      |                                ^~
main.c:5:3: note: in expansion of macro 'rep'
    5 |   rep(i,0,13){
      |   ^~~
main.c:2:38: error: expected '=', ',', ';', 'asm' or '__attribute__' before '++' token
    2 | #define rep(i,j,k) for(i = j;i <= k;i++)
      |                                      ^~
main.c:5:3: note: in expansion of macro 'rep'
    5 |   rep(i,0,13){
      |   ^~~
Language: C

#include <stdio.h>
#define rep(i,j,k) for(i = j;i <= k;i++)
int i,j;
int paper[14][14];
  rep(i,0,13){
    rep(j,0,13){
      paper[i][j] = 0;
    }
  }

void Ink(int,int,int);
int main(){
  int x,y,size,i,j,count,depth;

  while(scanf("%d,%d,%d",&x,&y,&size) != EOF){
    Ink(x+2,y+2,size);
  }
  count = 0;
  depth = 0;
  rep(i,2,11){
    rep(j,2,11){
      if(paper[i][j] == 0) count++;
      if(depth < paper[i][j]) depth = paper[i][j];
    }
  }

  printf("%d\n%d\n",count,depth);

  return 0;
}

void Ink(int x,int y,int size){
  if(size == 1){
    paper[x+1][y]++;paper[x-1][y]++;paper[x][y+1]++;paper[x][y-1]++;
  }

  if(size == 2){
    paper[x+1][y]++;paper[x-1][y]++;paper[x][y+1]++;paper[x][y-1]++;
    paper[x+1][y+1]++;paper[x-1][y-1]++;paper[x-1][y+1]++;paper[x+1][y-1]++;
  }

  if(size == 3){
        paper[x+1][y]++;paper[x-1][y]++;paper[x][y+1]++;paper[x][y-1]++;
    paper[x+1][y+1]++;paper[x-1][y-1]++;paper[x-1][y+1]++;paper[x+1][y-1]++;
    paper[x][y+2]++;paper[x][y-2]++;paper[x+2][y]++;paper[x-2][y]++;
  }

}

Compiler output:
main.c:2:20: error: expected identifier or '(' before 'for'
    2 | #define rep(i,j,k) for(i = j;i <= k;i++)
      |                    ^~~
main.c:5:3: note: in expansion of macro 'rep'
    5 |   rep(i,0,13){
      |   ^~~
main.c:2:32: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<=' token
    2 | #define rep(i,j,k) for(i = j;i <= k;i++)
      |                                ^~
main.c:5:3: note: in expansion of macro 'rep'
    5 |   rep(i,0,13){
      |   ^~~
main.c:2:38: error: expected '=', ',', ';', 'asm' or '__attribute__' before '++' token
    2 | #define rep(i,j,k) for(i = j;i <= k;i++)
      |                                      ^~
main.c:5:3: note: in expansion of macro 'rep'
    5 |   rep(i,0,13){
      |   ^~~
Language: C

#include <stdio.h>
/** Problem 0026 : Dropping Ink **/
int board[10][10];

void init(void)
{
	int i, j;
	
	for (i=0; i<10; i++) {
		for (j=0; j<10; j++) {
			board[i][j] = 0;
		}
	}
}

int main(void)
{
	int i, j, ii, jj, size;
	init();
	
	while (scanf("%d,%d,%d", &i, &j, &size) != EOF) {
		switch (size) {
			case 1:
				board[i][j] += 1; 
				if (i-1 >= 0) board[i-1][j] += 1; 
				if (i+1 < 10) board[i+1][j] += 1; 
				if (j-1 >= 0)  board[i][j-1] += 1; 
				if (j+1 < 10) board[i][j+1] += 1;
				break;
				
			case 3:
				if (i-2 >= 0)  board[i-2][j] += 1; 
				if (i+2 < 10) board[i+2][j] += 1; 
				if (j-2 >= 0)  board[i][j-2] += 1; 
				if (j+2 < 10) board[i][j+2] += 1;
				
			case 2:
				for (ii=i-1; ii<=i+1; ii++) {
					for (jj=j-1; jj<=j+1; jj++) {
						if (ii => 0 && ii < 10 && jj => 0 && jj < 10) board[ii][jj] += 1;
					}
				}
		}
	}
	
	int zero = 0, max = 0;
	for (i=0; i<10; i++) {
		for (j=0; j<10; j++) {
			if (board[i][j] == 0) zero += 1;
			else if (max < board[i][j]) max = board[i][j];
		}
	}
	
	printf("%d\n%d\n", zero, max);
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:40:57: error: expected expression before '>' token
   40 |                                                 if (ii => 0 && ii < 10 && jj => 0 && jj < 10) board[ii][jj] += 1;
      |                                                         ^
Language: C

#define a(x,y) a[x][y]++
a[99][99],x,y,z,i;
main()
{
  for(;~scanf("%d,%d,%d",&x,&y,&z);)
    {
      x+=10;y+=10;
      a(x,y);
      a(x-1,y);
      a(x,y-1);
      a(x+1,y);
      a(x,y+1);
      if(z>1)
	a(x+1,y+1),a(x+1,y-1),a(x-1,y+1),a(x-1,y-1);
      if(z>2)
	a(x-2,y),a(x+2,y),a(x,y-2),a(x,y+2);
      
    }
  for(z=0,x=9;x++<20;)
    for(y=9;y++<20;)
      {
	a[x][y]&&z++;
	a[x][y]>i&&i=a[x][y];
      }
  printf("%d\n%d\n",z,i);
  exit(0);
}

Compiler output:
main.c:2:1: warning: data definition has no type or storage class
    2 | a[99][99],x,y,z,i;
      | ^
main.c:2:1: error: type defaults to 'int' in declaration of 'a' [-Wimplicit-int]
main.c:2:11: error: type defaults to 'int' in declaration of 'x' [-Wimplicit-int]
    2 | a[99][99],x,y,z,i;
      |           ^
main.c:2:13: error: type defaults to 'int' in declaration of 'y' [-Wimplicit-int]
    2 | a[99][99],x,y,z,i;
      |             ^
main.c:2:15: error: type defaults to 'int' in declaration of 'z' [-Wimplicit-int]
    2 | a[99][99],x,y,z,i;
      |               ^
main.c:2:17: error: type defaults to 'int' in declaration of 'i' [-Wimplicit-int]
    2 | a[99][99],x,y,z,i;
      |                 ^
main.c:3:1: error: return type defaults to 'int' [-Wimplicit-int]
    3 | main()
      | ^~~~
main.c: In function 'main':
main.c:5:9: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    5 |   for(;~scanf("%d,%d,%d",&x,&y,&z);)
      |         ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | #define a(x,y) a[x][y]++
main.c:5:9: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    5 |   for(;~scanf("%d,%d,%d",&x,&y,&z);)
      |         ^~~~~
main.c:5:9: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:23:21: error: lvalue required as left operand of assignment
   23 |         a[x][y]>i&&i=a[x][y];
      |                     ^
main.c:25:3: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
   25 |   printf("%d\n%d\n",z,i);
      |   ^~~~~~
main.c:25:3: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:25:3: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:25:3: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:26:3: error: implicit declaration of function 'exit' [-Wimplicit-function-declaration]
   26 |   exit(0);
      |   ^~~~
main.c:1:1: note: include '<stdlib.h>' or provide a declaration of 'exit'
  +++ |+#include <stdlib.h>
    1 | #define a(x,y) a[x][y]++
main.c:26:3: warning: incompatible implicit declaration of built-in function 'exit' [-Wbuiltin-declaration-mismatch]
   26 |   exit(0);
      |   ^~~~
main.c:26:3: note: include '<stdlib.h>' or provide a declaration of 'exit'
Language: C

#include<stdio.h>

void main(){
printf("77\n5\n);
}

Compiler output:
main.c: In function 'main':
main.c:4:8: warning: missing terminating " character
    4 | printf("77\n5\n);
      |        ^
main.c:4:8: error: missing terminating " character
    4 | printf("77\n5\n);
      |        ^~~~~~~~~~
main.c:5:1: error: expected expression before '}' token
    5 | }
      | ^
main.c:4:8: error: expected ';' before '}' token
    4 | printf("77\n5\n);
      |        ^
      |        ;
    5 | }
      | ~
Language: C

int main()
{
	int x,y,size,nasi=0,max=0,map[10][10]={0};
	while(scanf("%d,%d,%d",&x,&y,&size)!=EOF)
	{
		if(size==1)
		{
			map[y][x]++;
			if(y-1>=0)
				map[y-1][x]++;
			if(x-1>=0)
				map[y][x-1]++;
			if(x+1>=0)
				map[y][x+1]++;
			if(y+1>=0)
				map[y+1][x]++;
		}
		if(size==2)
		{
			map[y][x]++;
			if(y-1>=0 && x-1>=0)
				map[y-1][x-1]++;
			if(y-1>=0)
				map[y-1][x]++;
			if(y-1>=0 && x+1>=0)
				map[y-1][x+1]++;
			if(x-1>=0)
				map[y][x-1]++;
			if(x+1>=0)
				map[y][x+1]++;
			if(y+1>=0 && x-1>=0)
				map[y+1][x-1]++;
			if(y+1>=0)
				map[y+1][x]++;
			if(y+1>=0 && x+1>=0)
				map[y+1][x+1]++;
		}
		if(size==3)
		{
			map[y][x]++;
			if(y-2>=0)
				map[y-2][x]++;
			if(x-2>=0)
				map[y][x-2]++;
			if(x+2>=0)
				map[y][x+2]++;
			if(y+2>=0)
				map[y+2][x]++;
			if(y-1>=0 && x-1>=0)
				map[y-1][x-1]++;
			if(y-1>=0)
				map[y-1][x]++;
			if(y-1>=0 && x+1>=0)
				map[y-1][x+1]++;
			if(x-1>=0)
				map[y][x-1]++;
			if(x+1>=0)
				map[y][x+1]++;
			if(y+1>=0 && x-1>=0)
				map[y+1][x-1]++;
			if(y+1>=0)
				map[y+1][x]++;
			if(y+1>=0 && x+1>=0)
				map[y+1][x+1]++;
		}
	}
	for(y=0; y<10; y++)
	{
		for(x=0; x<10; x++)
		{
			if(map[y][x]==0)
				nasi++;
			if(max<map[y][x])
				max=map[y][x];
		}
	}
	printf("%d\n%d\n",nasi,max);
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:4:15: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    4 |         while(scanf("%d,%d,%d",&x,&y,&size)!=EOF)
      |               ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | int main()
main.c:4:15: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    4 |         while(scanf("%d,%d,%d",&x,&y,&size)!=EOF)
      |               ^~~~~
main.c:4:15: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:4:46: error: 'EOF' undeclared (first use in this function)
    4 |         while(scanf("%d,%d,%d",&x,&y,&size)!=EOF)
      |                                              ^~~
main.c:4:46: note: 'EOF' is defined in header '<stdio.h>'; this is probably fixable by adding '#include <stdio.h>'
main.c:4:46: note: each undeclared identifier is reported only once for each function it appears in
main.c:77:9: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
   77 |         printf("%d\n%d\n",nasi,max);
      |         ^~~~~~
main.c:77:9: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:77:9: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:77:9: note: include '<stdio.h>' or provide a declaration of 'printf'
Language: C

////#include <stdio.h>
////#include <math.h>
////int main(){
////double v;
////while(scanf("%lf",&v) != EOF){
////double y=v*v/19.6;
////int z=y;
////if(y==z){
////if(z%5==0){
////	z=y/5+1;
////printf("%d\n",z);
////continue;
////}
////}
////int q=y/5;
////q += 2;
////printf("%d\n",q);
////}
////return 0;
//
//#include <stdio.h>
//  int main(){ 
//	  int a[5],b[5],i,j;
//	  int hit=0,blow=0;
//	  while(scanf("%d %d %d %d %d %d %d %d",&a[1],&a[2],&a[3],&a[4],&b[1],&b[2],&b[3],&b[4]) != EOF){
//		  for(i=1;i<=4;i++){
//			  if(a[i]==b[i]){
//				  hit++;
//			  }
//		  }
//		  for(i=1;i<=4;i++){
//			  for(j=1;j<= 4;j++){
//				  if(j != i){
//				  if(a[i]==b[j]){
//					  blow++;
//				  }	  
//			  }
//			  }
//		  }
//		  printf("%d %d\n",hit,blow);
//		  hit=0; blow=0;
//	  }
//	  return 0;
//  }
#include <stdio.h>
  int main(){
               int x,y,s;
	  while(scanf("%d,%d,%d\n",&x,&y,&s) != EOF){
int i,j,num=0;
int xy[10][10]={};
		  if(s==1){
			  xy[x][y]++;
			  xy[x-1][y]++;
			  xy[x+1][y]++;
			  xy[x][y-1]++;
			  xy[x][y+1]++;
		  }else if(s==2){
			  xy[x-1][y-1]++;
			  xy[x-1][y]++;
			  xy[x-1][y+1]++;
			  xy[x][y-1]++;
			  xy[x][y]++;
			  xy[x][y+1]++;
			  xy[x+1][y-1]++;
			  xy[x+1][y]++;
			  xy[x+1][y+1]++;
		  }else if(s==3){
			  xy[x-2][y]++;
			  xy[x-1][y-1]++;
			  xy[x-1][y]++;
			  xy[x-1][y+1]++;
			  xy[x][y-2]++;
			  xy[x][y-1]++;
			  xy[x][y]++;
			  xy[x][y+1]++;
			  xy[x][y+2]++;
			  xy[x+1][y-1]++;
			  xy[x+1][y]++;
			  xy[x+1][y+1]++;
			  xy[x+2][y]++;
		  }
	  }
	  int max=xy[0][0];
	  for(i=0;i<10;i++){
		  for(j=0;j<10;j++){
			  if(xy[i][j]==0) num++;
			  if(xy[i][j]>max) max=xy[i][j];
		  }
	  }
	  printf("%d\n%d\n",num,max);
	  return 0;
  }

Compiler output:
main.c: In function 'main':
main.c:83:19: error: 'xy' undeclared (first use in this function); did you mean 'y'?
   83 |           int max=xy[0][0];
      |                   ^~
      |                   y
main.c:83:19: note: each undeclared identifier is reported only once for each function it appears in
main.c:84:15: error: 'i' undeclared (first use in this function)
   84 |           for(i=0;i<10;i++){
      |               ^
main.c:85:23: error: 'j' undeclared (first use in this function)
   85 |                   for(j=0;j<10;j++){
      |                       ^
main.c:86:43: error: 'num' undeclared (first use in this function)
   86 |                           if(xy[i][j]==0) num++;
      |                                           ^~~
Language: C

#include<stdio.h>

int main(){
  int i,j,x,y,size;
  int data[N][N];
  int ptnx1[]={0,0,0,1,-1},ptny1[]={0,-1,1,0,0};
  int ptnx2[]={0,0,0,-1,-1,-1,1,1,1},ptny2[]={0,-1,1,-1,0,1,-1,0,1};
  int ptnx3[]={0,0,0,-1,-1,-1,1,1,1,0,0,-2,2},ptny3[]={0,-1,1,-1,0,1,-1,0,1,2,-\
2,0,0};
  for (i=0;i<N;i++)
    for (j=0;j<N;j++)
      data[i][j]=0;

  while (scanf("%d,%d,%d",&x,&y,&size)!=EOF){
  if (size==1){
    for (i=0;i<5;i++)
      if ((x+ptnx1[i]<N) && (y+ptny1[i]<N)){
        data[x+ptnx1[i]][y+ptny1[i]]++;
      }
  }

  if (size==2){
    for (i=0;i<9;i++)
      if ((x+ptnx2[i]<N) && (y+ptny2[i]<N)){
        data[x+ptnx2[i]][y+ptny2[i]]++;
      }
  }

  if (size==3){
    for (i=0;i<13;i++)
      if ((x+ptnx3[i]<N) && (y+ptny3[i]<N)){
        data[x+ptnx3[i]][y+ptny3[i]]++;
      }
  }
  }

  int max=0;
  int cnt=0;
  for (i=0;i<N;i++)
    for (j=0;j<N;j++){
      if (data[i][j]==0)
        cnt++;
      if (data[i][j]>max)
        max=data[i][j];
    }
  printf("%d\n%d\n",cnt,max);
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:5:12: error: 'N' undeclared (first use in this function)
    5 |   int data[N][N];
      |            ^
main.c:5:12: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#include <stdio.h>

#define WIDTH 10
#define HEIGHT 10

int field[ WIDTH + 4 ][ HEIGHT + 4 ] = {};
const int dx[ 3 ][ 4 ] = { { -1, 0, 1, 0 }, { -1, 1, -1, 1 }, { -2, 0, 2, 0 } };
const int dy[ 3 ][ 4 ] = { { 0, -1, 0, 1 }, { -1, -1, 1, 1 }, { 0, -2, 0, 2 } };

int main( void ) {
	int i, x, y, size, white, max;

	while ( scanf( "%d,%d,%d", &x, &y, &size ) == 3 ) {
		x += 2;
		y += 2;

		field[ x ][ y ]++;

		while ( size-- )
			for ( i = 4; i--; field[ x + dx[ size ][ i ] ][ y + dy[ size ][ i ] ]++ ) ;
	}

	white = max = 0;
	for ( y = HEIGHT + 2; y-- > 2;  )
		for ( x = WIDTH + 2; x-- > 2; white += !field[ x ][ y ] ) {
			if ( max < field[ x ][ y ] )
				max = field[ x ][ y ];

	printf( "%d\n%d\n", white, max );

	return 0;
}

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

#include <stdio.h>

////(-"-;)ミスッテ…タ…////

void s(int x, int y, int pap[][10])
{
	int i, j;
	int x_dif, y_dif;
	
	for (j = 0; j < 3; j++){
		for (i = 0; i < 3; i++){
			x_dif = x + (i % 3) - 1;
			y_dif = y + (j - 1);
			
			if (x_dif >= 0 && x_dif < 10){
				if (y_dif >= 0 && y_dif < 10){
					if ((i % 3) - 1 == 0 || (j - 1) == 0){
						pap[y_dif][x_dif]++;
					}
				}
			}
		}
	}
	
}

void m(int x, int y, int pap[][10])
{
	int i, j;
	int x_dif, y_dif;
	
	for (j = 0; j < 3; j++){
		for (i = 0; i < 3; i++){
			x_dif = x + (i % 3) - 1;
			y_dif = y + (j - 1);
			
			if (x_dif >= 0 && x_dif < 10){
				if (y_dif >= 0 && y_dif < 10){
					pap[y_dif][x_dif]++;
				}
			}
		}
	}
	
}

void l(int x, int y, int pap[][10])
{
	int i, j;
	int x_dif, y_dif;
	
	for (j = 0; j < 3; j++){
		for (i = 0; i < 3; i++){
			x_dif = x + (i % 3) - 1;
			y_dif = y + (j - 1);
			
			if (x_dif >= 0 && x_dif < 10){
				if (y_dif >= 0 && y_dif < 10){
					pap[y_dif][x_dif]++;
				}
			}
		}
	}
	if (x - 2 >= 0){
		pap[y][x - 2]++;
	}
	if (x + 2 < 10){
		pap[y][x + 2]++;
	}
	
	if (y - 2 >= 0){
		pap[y - 2][x]++;
	}
	if (y + 2 < 10){
		pap[y + 2][x]++;
	}
}

int main(void)
{
	int pap[10][10] = {0};
	int x, y , size, i, j;
	int big, count;
	
	big = 0;
	count = 0;
	
	while (scanf("%d,%d,%d", &x, &y, &size) != EOF){
		switch (size){
		  case 1:
		  	s(x, y, pap);
			break;
		  case 2:
		  	m(x, y, pap);
		  	break;
		  case 3:
		  	l(x, y, pap);
			break;
			
		}
		
		
		/*グラフィカルー
		for (i = 0; i < 10; i++){
			for (j = 0; j < 10; j++){
				printf("%d", pap[i][j]);
			}
			printf("\n");
		}
		*//
	}
	
	for (i = 0; i < 10; i++){
		for (j = 0; j < 10; j++){
			if (pap[i][j] > big){
				big = pap[i][j];
			}
			if (pap[i][j] == 0){
				count++;
			}
		}
	}
	printf("%d\n%d\n", count, big);
	
	
	return (0);
}

Compiler output:
main.c: In function 'main':
main.c:110:19: error: expected expression before '/' token
  110 |                 *//
      |                   ^
Language: C++

#include <iostream>
#include <string>
#include <vector>

#define REP(i,k,n) for(int i=k;i<n;i++)
#define rep(i,n) for(int i=0;i<n;i++)

using namespace std;

vector<string> split(const string &str, char delim)
{
  vector<string> res;
  size_t current = 0, found;
  while((found = str.find_first_of(delim, current)) != string::npos)
  {
    res.push_back(string(str, current, found - current));
    current = found + 1;
  }
  res.push_back(string(str, current, str.size() - current));
  return res;
}

int f[10][10];

bool checkf(int x,int y)
{
	if(0 <= x && x < 10 && 0 <= y && y < 10)
	{
		return true;
	}
	else
	{
		return false;
	}
}

void dropInk(int x,int y,int size)
{
	if(size == 1)
	{
		f[x][y]++;
		if(checkf(x+1,y)) f[x+1][y]++;
		if(checkf(x-1,y)) f[x-1][y]++;
		if(checkf(x,y+1)) f[x][y+1]++;
		if(checkf(x,y-1)) f[x][y-1]++;
	}
	else if(size == 2)
	{
		REP(i,-1,2)
		{
			REP(j,-1,2)
			{
				if(checkf(x+i,y+j)) f[x+i][y+j]++;
			}
		}
	}
	else if(size == 3)
	{
		REP(i,-1,2)
		{
			REP(j,-1,2)
			{
				if(checkf(x+i,y+j)) f[x+i][y+j]++;
			}
		}
		if(checkf(x+2,y)) f[x+2][y]++;
		if(checkf(x-2,y)) f[x-2][y]++;
		if(checkf(x,y+2)) f[x][y+2]++;
		if(checkf(x,y-2)) f[x][y-2]++;
	}
}

int main()
{
	memset(f,0,sizeof(f));
	string s;
	while(cin >> s)
	{
		vector<string> _s = split(s,',');
		int x = atoi(_s[0].c_str());
		int y = atoi(_s[1].c_str());
		int size = atoi(_s[2].c_str());

		dropInk(y,x,size);
	}

	int count = 0;
	int ans = 0;
	rep(i,10)
	{
		rep(j,10)
		{
			if(f[i][j] == 0)
			{
				count++;
			}
			ans = max(ans,f[i][j]);
		}
	}

	cout << count << endl << ans << endl;
	return 0;
}

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

#include <iostream>
#include <string>
#include <vector>
#include <cstdlib>

#define REP(i,k,n) for(int i=k;i<n;i++)
#define rep(i,n) for(int i=0;i<n;i++)

using namespace std;

vector<string> split(const string &str, char delim)
{
  vector<string> res;
  size_t current = 0, found;
  while((found = str.find_first_of(delim, current)) != string::npos)
  {
    res.push_back(string(str, current, found - current));
    current = found + 1;
  }
  res.push_back(string(str, current, str.size() - current));
  return res;
}

int f[10][10];

bool checkf(int x,int y)
{
	if(0 <= x && x < 10 && 0 <= y && y < 10)
	{
		return true;
	}
	else
	{
		return false;
	}
}

void dropInk(int x,int y,int size)
{
	if(size == 1)
	{
		f[x][y]++;
		if(checkf(x+1,y)) f[x+1][y]++;
		if(checkf(x-1,y)) f[x-1][y]++;
		if(checkf(x,y+1)) f[x][y+1]++;
		if(checkf(x,y-1)) f[x][y-1]++;
	}
	else if(size == 2)
	{
		REP(i,-1,2)
		{
			REP(j,-1,2)
			{
				if(checkf(x+i,y+j)) f[x+i][y+j]++;
			}
		}
	}
	else if(size == 3)
	{
		REP(i,-1,2)
		{
			REP(j,-1,2)
			{
				if(checkf(x+i,y+j)) f[x+i][y+j]++;
			}
		}
		if(checkf(x+2,y)) f[x+2][y]++;
		if(checkf(x-2,y)) f[x-2][y]++;
		if(checkf(x,y+2)) f[x][y+2]++;
		if(checkf(x,y-2)) f[x][y-2]++;
	}
}

int main()
{
	memset(f,0,sizeof(f));
	string s;
	while(cin >> s)
	{
		vector<string> _s = split(s,',');
		int x = atoi(_s[0].c_str());
		int y = atoi(_s[1].c_str());
		int size = atoi(_s[2].c_str());

		dropInk(y,x,size);
	}

	int count = 0;
	int ans = 0;
	rep(i,10)
	{
		rep(j,10)
		{
			if(f[i][j] == 0)
			{
				count++;
			}
			ans = max(ans,f[i][j]);
		}
	}

	cout << count << endl << ans << endl;
	return 0;
}

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

#include <iostream>
#include <iomanip>
#include <sstream>
#include <stdio.h>
#include <vector>
#include <stack>
#include <queue>
#include <algorithm>
#include <math.h>
#include <utility>
#include <string>
#include <ctype.h>
#include <cstring>
#include <cstdio>
#include <sstream>
#include <functional>

using namespace std;

#define FOR(i,k,n) for(int i = (k); i < (n); i++)
#define REP(i,n) FOR(i,0,n)
#define INF 114514810
#define ll long long
#define scanf scanf_s

int i, j, s;
int p[15][15];

void nuri(int i, int j)
{
	if (i >= 0 && i < 10 && j >= 0 && j < 10) p[i][j]++;
}

void shou(int i, int j)
{
	nuri(i, j);
	nuri(i - 1, j);
	nuri(i, j - 1);
	nuri(i, j + 1);
	nuri(i + 1, j);
}

void chu(int i, int j)
{
	shou(i, j);
	nuri(i - 1, j - 1);
	nuri(i - 1, j + 1);
	nuri(i + 1, j - 1);
	nuri(i + 1, j + 1);
}

void dai(int i, int j)
{
	chu(i, j);
	nuri(i - 2, j);
	nuri(i, j - 2);
	nuri(i, j + 2);
	nuri(i + 2, j);
}

int main()
{
	REP(i, 15)REP(j, 15) p[i][j] = 0;
	while (scanf("%d,%d,%d", &i, &j, &s))
	{
		if (s == 1) shou(i, j);
		if (s == 2) chu(i, j);
		if (s == 3) dai(i, j);
	}
	int cnt = 0; int mx = 0;
	REP(i, 10)REP(j, 10)
	{
		if (p[i][j] == 0) cnt++;
		mx = max(p[i][j], mx);
	}
	cout << cnt << endl << mx << endl;
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:24:15: error: 'scanf_s' was not declared in this scope; did you mean 'scanf'?
   24 | #define scanf scanf_s
      |               ^~~~~~~
a.cc:64:16: note: in expansion of macro 'scanf'
   64 |         while (scanf("%d,%d,%d", &i, &j, &s))
      |                ^~~~~
Language: C++

#include <iostream>
#include <iomanip>
#include <sstream>
#include <stdio.h>
#include <vector>
#include <stack>
#include <queue>
#include <algorithm>
#include <math.h>
#include <utility>
#include <string>
#include <ctype.h>
#include <cstring>
#include <cstdio>
#include <sstream>
#include <functional>

using namespace std;

#define FOR(i,k,n) for(int i = (k); i < (n); i++)
#define REP(i,n) FOR(i,0,n)
#define INF 114514810
#define ll long long
#define scanf scanf_s

int i, j, s;
int p[15][15];

void nuri(int i, int j)
{
	if (i >= 0 && i < 10 && j >= 0 && j < 10) p[i][j]++;
}

void shou(int i, int j)
{
	nuri(i, j);
	nuri(i - 1, j);
	nuri(i, j - 1);
	nuri(i, j + 1);
	nuri(i + 1, j);
}

void chu(int i, int j)
{
	shou(i, j);
	nuri(i - 1, j - 1);
	nuri(i - 1, j + 1);
	nuri(i + 1, j - 1);
	nuri(i + 1, j + 1);
}

void dai(int i, int j)
{
	chu(i, j);
	nuri(i - 2, j);
	nuri(i, j - 2);
	nuri(i, j + 2);
	nuri(i + 2, j);
}

int main()
{
	REP(i, 15)REP(j, 15) p[i][j] = 0;
	while (scanf("%d,%d,%d", &i, &j, &s) != EOF)
	{
		if (s == 1) shou(i, j);
		if (s == 2) chu(i, j);
		if (s == 3) dai(i, j);
	}
	int cnt = 0; int mx = 0;
	REP(i, 10)REP(j, 10)
	{
		if (p[i][j] == 0) cnt++;
		mx = max(p[i][j], mx);
	}
	cout << cnt << endl << mx << endl;
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:24:15: error: 'scanf_s' was not declared in this scope; did you mean 'scanf'?
   24 | #define scanf scanf_s
      |               ^~~~~~~
a.cc:64:16: note: in expansion of macro 'scanf'
   64 |         while (scanf("%d,%d,%d", &i, &j, &s) != EOF)
      |                ^~~~~
Language: C++

#include <stdio.h>

int main()
{
	int ans1 = 0;
	int ans2 = 0;
	int x,y,size;
	int paper[14][14];
	for(int i = 0; i < 14; i++){
		for(int j = 0; j < 14; j++){
			paper[i][j] = 0;
		}
	}
	while(scanf("%d,%d,%d",&x,&y,&size) != EOF){
		paper[x + 2][y + 2] ++;
		paper[x + 1][y + 2] ++;
		paper[x + 2][y + 1] ++;
		paper[x + 3][y + 2] ++;
		paper[x + 2][y + 3] ++;
		if(size > 1){
			paper[x + 1][y + 3] ++;
			paper[x + 1][y + 1] ++;
			paper[x + 3][y + 1] ++;
			paper[x + 3][y + 3] ++;
		}
		if(size > 2){
			paper[x + 2][y + 4] ++;
			paper[x + 2][y] ++;
			paper[x + 4][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){
				ans1++;
			}
			if(ans2 < paper[i][j]){
				ans2 = paper[i][j];
			}

		}
	}
	printf("%d\n%d\n",ans1,ans2);
	Sleep(2000);
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:45:9: error: 'Sleep' was not declared in this scope
   45 |         Sleep(2000);
      |         ^~~~~