>>940 見難いなら適度に改行入れてちょ
#include <stdio.h>
int main(void)
{
  int array[8][8] = {
    {0, 2, 1, 3, 0, 1, 1, 2},
    {2, 2, 2, 1, 1, 2, 3, 3},
    {3, 0, 2, 1, 2, 3, 2, 2},
    {1, 1, 1, 2, 1, 0, 0, 1},
    {2, 3, 3, 2, 1, 0, 1, 0},
    {2, 1, 1, 2, 2, 3, 0, 1},
    {1, 1, 2, 1, 2, 0, 3, 1},
    {1, 3, 3, 3, 0, 0, 1, 1}
  };
  int row, col, count, i;

  /* 注目する行・列を指定 */
  do {
    printf("行(row) 列(col):"); scanf("%d%d", &row, &col);
  } while (!((row >= 0 && row < 8) && (col >= 0 && col < 8)));
  
  /* 同じ値の個数を数える */
  count = 0;
  /* 縦方向に数える */
  for (i = 0; i < 8; i++) if (i != row) if (array[i][col] == array[row][col]) count++;
  /* 横方向に数える */
  for (i = 0; i < 8; i++) if (i != col) if (array[row][i] == array[row][col]) count++;
  count++; /* 注目する位置分の加算 */
  
  printf("%d\n", count);
  return 0;
}