avpsnr0=avpsnr0/(j-1); avpsnr1=avpsnr1/(j-1); avpsnr2=avpsnr2/(j-1); avbit=avbit/(j-1);这几个地方的j是没有定义的。你在for()循环中的j离开循环之后就不存在了
没有定义j
44554545458