void outdata(int sp[N][M], float a[]) 二维数组的参数,会转为一维数组。(int sp[N][M]可以转为引用或者指针
貌似没什么问题,试试把outdata的float a[]改成float *a