写合约的时候遇到了如标题的这个问题,自己找不出问题,想问一下怎么解决
function Shapley_A1_VS_rest() public view returns (uint[] memory m){
uint len;
uint temp=0;
uint temp_VS;
uint temp_VS_A1;
for(len=0;len<VS_A1.length;len++){
temp_VS=VS[len];
temp_VS_A1=VS_A1[len];
temp=temp_VS-temp_VS_A1;
VS_A1_rest.push(temp);
}
m = new uint[](VS_A1_rest.length);
for(uint i = 0; i < VS_A1_rest.length; i++){
m[i] = VS_A1_rest[i];
}
}