table = (int **)malloc(sizeof(int)*column);
for(i=0;i<column;i++){
table[i] = (int *)malloc(sizeof(int)*input);
}
実際ここのコードで落ちますがデバッグしても原因不明です。