Language: C

#include <stdio.h>

int main(void) {
	int i,j,x,y,s,max;
	int board[14][14]={0};
	int sibuki_x[13][3]={{0,1,0,-1,0},{0,1,1,1,0,-1,-1,-1,0},{0,1,1,1,0,-1,-1,-1,0,0,2,0,-2}};
	int sibuki_y[13][3]={{-1,0,1,0,0},{-1,-1,0,1,1,1,0,-1,0},{-1,-1,0,1,1,1,0,-1,0,2,0,-2,0}};
	
	while(scanf("%d",&x)!=EOF){
		scanf("%d%d",&y,&s);
		for(i=0;s==1?i<5:s==2?i<9:i<13;i++){
			board[x+sibuki_x[i][s]][y+sibuki_y[i][s]]++;
		}
	}
	for(i=0,count=0,max=0;i<10;i++){
		for(j=0;j<10;j++){
			if(max<board[i][j])max=board[i][j];
			if(board[i][j]==0)count++;
		}
	}
	printf("%d\n%d\n",count,max);
	
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:6:37: warning: excess elements in array initializer
    6 |         int sibuki_x[13][3]={{0,1,0,-1,0},{0,1,1,1,0,-1,-1,-1,0},{0,1,1,1,0,-1,-1,-1,0,0,2,0,-2}};
      |                                     ^
main.c:6:37: note: (near initialization for 'sibuki_x[0]')
main.c:6:40: warning: excess elements in array initializer
    6 |         int sibuki_x[13][3]={{0,1,0,-1,0},{0,1,1,1,0,-1,-1,-1,0},{0,1,1,1,0,-1,-1,-1,0,0,2,0,-2}};
      |                                        ^
main.c:6:40: note: (near initialization for 'sibuki_x[0]')
main.c:6:50: warning: excess elements in array initializer
    6 |         int sibuki_x[13][3]={{0,1,0,-1,0},{0,1,1,1,0,-1,-1,-1,0},{0,1,1,1,0,-1,-1,-1,0,0,2,0,-2}};
      |                                                  ^
main.c:6:50: note: (near initialization for 'sibuki_x[1]')
main.c:6:52: warning: excess elements in array initializer
    6 |         int sibuki_x[13][3]={{0,1,0,-1,0},{0,1,1,1,0,-1,-1,-1,0},{0,1,1,1,0,-1,-1,-1,0,0,2,0,-2}};
      |                                                    ^
main.c:6:52: note: (near initialization for 'sibuki_x[1]')
main.c:6:54: warning: excess elements in array initializer
    6 |         int sibuki_x[13][3]={{0,1,0,-1,0},{0,1,1,1,0,-1,-1,-1,0},{0,1,1,1,0,-1,-1,-1,0,0,2,0,-2}};
      |                                                      ^
main.c:6:54: note: (near initialization for 'sibuki_x[1]')
main.c:6:57: warning: excess elements in array initializer
    6 |         int sibuki_x[13][3]={{0,1,0,-1,0},{0,1,1,1,0,-1,-1,-1,0},{0,1,1,1,0,-1,-1,-1,0,0,2,0,-2}};
      |                                                         ^
main.c:6:57: note: (near initialization for 'sibuki_x[1]')
main.c:6:60: warning: excess elements in array initializer
    6 |         int sibuki_x[13][3]={{0,1,0,-1,0},{0,1,1,1,0,-1,-1,-1,0},{0,1,1,1,0,-1,-1,-1,0,0,2,0,-2}};
      |                                                            ^
main.c:6:60: note: (near initialization for 'sibuki_x[1]')
main.c:6:63: warning: excess elements in array initializer
    6 |         int sibuki_x[13][3]={{0,1,0,-1,0},{0,1,1,1,0,-1,-1,-1,0},{0,1,1,1,0,-1,-1,-1,0,0,2,0,-2}};
      |                                                               ^
main.c:6:63: note: (near initialization for 'sibuki_x[1]')
main.c:6:73: warning: excess elements in array initializer
    6 |         int sibuki_x[13][3]={{0,1,0,-1,0},{0,1,1,1,0,-1,-1,-1,0},{0,1,1,1,0,-1,-1,-1,0,0,2,0,-2}};
      |                                                                         ^
main.c:6:73: note: (near initialization for 'sibuki_x[2]')
main.c:6:75: warning: excess elements in array initializer
    6 |         int sibuki_x[13][3]={{0,1,0,-1,0},{0,1,1,1,0,-1,-1,-1,0},{0,1,1,1,0,-1,-1,-1,0,0,2,0,-2}};
      |                                                                           ^
main.c:6:75: note: (near initialization for 'sibuki_x[2]')
main.c:6:77: warning: excess elements in array initializer
    6 |         int sibuki_x[13][3]={{0,1,0,-1,0},{0,1,1,1,0,-1,-1,-1,0},{0,1,1,1,0,-1,-1,-1,0,0,2,0,-2}};
      |                                                                             ^
main.c:6:77: note: (near initialization for 'sibuki_x[2]')
main.c:6:80: warning: excess elements in array initializer
    6 |         int sibuki_x[13][3]={{0,1,0,-1,0},{0,1,1,1,0,-1,-1,-1,0},{0,1,1,1,0,-1,-1,-1,0,0,2,0,-2}};
      |                                                                                ^
main.c:6:80: note: (near initialization for 'sibuki_x[2]')
main.c:6:83: warning: excess elements in array initializer
    6 |         int sibuki_x[13][3]={{0,1,0,-1,0},{0,1,1,1,0,-1,-1,-1,0},{0,1,1,1,0,-1,-1,-1,0,0,2,0,-2}};
      |                                                                                   ^
main.c:6:83: note: (near initialization for 'sibuki_x[2]')
main.c:6:86: warning: excess elements in array initializer
    6 |         int sibuki_x[13][3]={{0,1,0,-1,0},{0,1,1,1,0,-1,-1,-1,0},{0,1,1,1,0,-1,-1,-1,0,0,2,0,-2}};
      |                                                                                      ^
main.c:6:86: note: (near initialization for 'sibuki_x[2]')
main.c:6:88: warning: excess elements in array initializer
    6 |         int sibuki_x[13][3]={{0,1,0,-1,0},{0,1,1,1,0,-1,-1,-1,0},{0,1,1,1,0,-1,-1,-1,0,0,2,0,-2}};
      |                                                                                        ^
main.c:6:88: note: (near initialization for 'sibuki_x[2]')
main.c:6:90: warning: excess elements in array initializer
    6 |         int sibuki_x[13][3]={{0,1,0,-1,0},{0,1,1,1,0,-1,-1,-1,0},{0,1,1,1,0,-1,-1,-1,0,0,2,0,-2}};
      |                                                                                          ^
main.c:6:90: note: (near initialization for 'sibuki_x[2]')
main.c:6:92: warning: excess elements in array initializer
    6 |         int sibuki_x[13][3]={{0,1,0,-1,0},{0,1,1,1,0,-1,-1,-1,0},{0,1,1,1,0,-1,-1,-1,0,0,2,0,-2}};
      |                                                                                            ^
main.c:6:92: note: (near initialization for 'sibuki_x[2]')
main.c:6:94: warning: excess elements in array initializer
    6 |         int sibuki_x[13][3]={{0,1,0,-1,0},{0,1,1,1,0,-1,-1,-1,0},{0,1,1,1,0,-1,-1,-1,0,0,2,0,-2}};
      |                                                                                              ^
main.c:6:94: note: (near initialization for 'sibuki_x[2]')
main.c:7:38: warning: excess elements in array initializer
    7 |         int sibuki_y[13][3]={{-1,0,1,0,0},{-1,-1,0,1,1,1,0,-1,0},{-1,-1,0,1,1,1,0,-1,0,2,0,-2,0}};
      |                                      ^
main.c:7:38: note: (near initialization for 'sibuki_y[0]')
main.c:7:40: warning: excess elements in array initializer
    7 |         int sibuki_y[13][3]={{-1,0,1,0,0},{-1,-1,0,1,1,1,0,-1,0},{-1,-1,0,1,1,1,0,-1,0,2,0,-2,0}};
      |                                        ^
main.c:7:40: note: (near initialization for 'sibuki_y[0]')
main.c:7:52: warning: excess elements in array initializer
    7 |         int sibuki_y[13][3]={{-1,0,1,0,0},{-1,-1,0,1,1,1,0,-1,0},{-1,-1,0,1,1,1,0,-1,0,2,0,-2,0}};
      |                                                    ^
main.c:7:52: note: (near initialization for 'sibuki_y[1]')
main.c:7:54: warning: excess elements in array initializer
    7 |         int sibuki_y[13][3]={{-1,0,1,0,0},{-1,-1,0,1,1,1,0,-1,0},{-1,-1,0,1,1,1,0,-1,0,2,0,-2,0}};
      |                                                      ^
main.c:7:54: note: (near initialization for 'sibuki_y[1]')
main.c:7:56: warning: excess elements in array initializer
    7 |         int sibuki_y[13][3]={{-1,0,1,0,0},{-1,-1,0,1,1,1,0,-1,0},{-1,-1,0,1,1,1,0,-1,0,2,0,-2,0}};
      |                                                        ^
main.c:7:56: note: (near initialization for 'sibuki_y[1]')
main.c:7:58: warning: excess elements in array initializer
    7 |         int sibuki_y[13][3]={{-1,0,1,0,0},{-1,-1,0,1,1,1,0,-1,0},{-1,-1,0,1,1,1,0,-1,0,2,0,-2,0}};
      |                                                          ^
main.c:7:58: note: (near initialization for 'sibuki_y[1]')
main.c:7:60: warning: excess elements in array initializer
    7 |         int sibuki_y[13][3]={{-1,0,1,0,0},{-1,-1,0,1,1,1,0,-1,0},{-1,-1,0,1,1,1,0,-1,0,2,0,-2,0}};
      |                                                            ^
main.c:7:60: note: (near initialization for 'sibuki_y[1]')
main.c:7:63: warning: excess elements in array initializer
    7 |         int sibuki_y[13][3]={{-1,0,1,0,0},{-1,-1,0,1,1,1,0,-1,0},{-1,-1,0,1,1,1,0,-1,0,2,0,-2,0}};
      |                                                               ^
main.c:7:63: note: (near initialization for 'sibuki_y[1]')
main.c:7:75: warning: excess elements in array initializer
    7 |         int sibuki_y[13][3]={{-1,0,1,0,0},{-1,-1,0,1,1,1,0,-1,0},{-1,-1,0,1,1,1,0,-1,0,2,0,-2,0}};
      |                                                                           ^
main.c:7:75: note: (near initialization for 'sibuki_y[2]')
main.c:7:77: warning: excess elements in array initializer
    7 |         int sibuki_y[13][3]={{-1,0,1,0,0},{-1,-1,0,1,1,1,0,-1,0},{-1,-1,0,1,1,1,0,-1,0,2,0,-2,0}};
      |                                                                             ^
main.c:7:77: note: (near initialization for 'sibuki_y[2]')
main.c:7:79: warning: excess elements in array initializer
    7 |         int sibuki_y[13][3]={{-1,0,1,0,0},{-1,-1,0,1,1,1,0,-1,0},{-1,-1,0,1,1,1,0,-1,0,2,0,-2,0}};
      |                                                                               ^
main.c:7:79: note: (near initialization for 'sibuki_y[2]')
main.c:7:81: warning: excess elements in array initializer
    7 |         int sibuki_y[13][3]={{-1,0,1,0,0},{-1,-1,0,1,1,1,0,-1,0},{-1,-1,0,1,1,1,0,-1,0,2,0,-2,0}};
      |                                                                                 ^
main.c:7:81: note: (near initialization for 'sibuki_y[2]')
main.c:7:83: warning: excess elements in array initializer
    7 |         int sibuki_y[13][3]={{-1,0,1,0,0},{-1,-1,0,1,1,1,0,-1,0},{-1,-1,0,1,1,1,0,-1,0,2,0,-2,0}};
      |                                                                                   ^
main.c:7:83: note: (near initialization for 'sibuki_y[2]')
main.c:7:86: warning: excess elements in array initializer
    7 |         int sibuki_y[13][3]={{-1,0,1,0,0},{-1,-1,0,1,1,1,0,-1,0},{-1,-1,0,1,1,1,0,-1,0,2,0,-2,0}};
      |                                                                                      ^
main.c:7:86: note: (near initialization for 'sibuki_y[2]')
main.c:7:88: warning: excess elements in array initializer
    7 |         int sibuki_y[13][3]={{-1,0,1,0,0},{-1,-1,0,1,1,1,0,-1,0},{-1,-1,0,1,1,1,0,-1,0,2,0,-2,0}};
      |                                                                                        ^
main.c:7:88: note: (near initialization for 'sibuki_y[2]')
main.c:7:90: warning: excess elements in array initializer
    7 |         int sibuki_y[13][3]={{-1,0,1,0,0},{-1,-1,0,1,1,1,0,-1,0},{-1,-1,0,1,1,1,0,-1,0,2,0,-2,0}};
      |