printf("%6d",&a[i][j]);改成printf("%6d",a[i][j]);
把printf("%d", &a[i][j]);改成printf("%d", a[i][j]);应该就行了
for后不要加括号,最后少了冒号。