a的输入不正确,int型数组需要逐个输入
输入数组元素是这样的
for(int i=0;i<3;i++){ for(int j=0;j<3;j++){ scanf("%d",&a[i][j]); } }