error: invalid use of array with unspecified bounds
です。

大域にh[][]を宣言して

int hairetsu(void)
{
int x;
h[0][0]=1;

return x;
}

だとエラーなしです。